/* =========================================================
   Balo — REGISTRATION (page-register.php)
   Full day/night support — clean & conflict-free
   ========================================================= */

/* ---------------------------------------------------------
   1) TOKENS (inherit from global Zen Calm)
--------------------------------------------------------- */
:root {
  --register-max: 860px;
  --radius: 18px;
  --gap: clamp(16px, 2.2vw, 24px);

  --text: var(--zen-text, #e9eefb);
  --muted: var(--zen-muted, #9aa6b0);

  --card-bg: var(--zen-card-bg, rgba(10,14,20,.88));
  --card-bd: var(--zen-card-bd, rgba(148,163,184,.08));
  --shadow: var(--zen-shadow, 0 10px 30px rgba(0,0,0,.36));

  --input-bg: color-mix(in srgb, #0b1224 72%, transparent);
  --input-bd: rgba(148,163,184,.22);
  --input-bd-focus: rgba(129,140,248,.65);
}

/* ---------------------------------------------------------
   2) DAY MODE OVERRIDES — clean light mode
--------------------------------------------------------- */
body.balo-day.page-register {
  --text: #0f172a;
  --muted: #475569;

  --card-bg: rgba(255,255,255,.94);
  --card-bd: rgba(15,23,42,.12);
  --shadow: 0 8px 24px rgba(0,0,0,.08);

  --input-bg: rgba(255,255,255,.75);
  --input-bd: rgba(15,23,42,.18);
  --input-bd-focus: rgba(99,102,241,.45);
}

/* ---------------------------------------------------------
   3) LOGO
--------------------------------------------------------- */
.site-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}
.balo-logo {
  display: block;
  width: clamp(100px,12vw,160px);
  height: auto;
  border-radius: 16px;
}

/* ---------------------------------------------------------
   4) HERO (text only — no backgrounds)
--------------------------------------------------------- */
.register-hero {
  position: relative;
  text-align: center;
  padding: clamp(48px, 8vw, 96px) 16px clamp(20px, 4vw, 40px);
  isolation: isolate;
}

.register-hero .shimmer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  mix-blend-mode: screen;
  background:
    radial-gradient(800px 480px at 20% -6%, rgba(255,255,255,.06), transparent 60%),
    radial-gradient(720px 420px at 80% -10%, rgba(255,214,165,.06), transparent 60%);
}

.hero-title {
  color: var(--text);
  font-size: clamp(28px, 5.2vw, 56px);
  line-height: 1.05;
  margin: 12px 0 8px;
  text-shadow: 0 2px 6px rgba(0,0,0,.45);

  /* Zen Glow Animation — "Create Your Account" */
  background: linear-gradient(
    110deg,
    #fce7f3 0%,
    #a5f3fc 14%,
    #c4b5fd 28%,
    #fbcfe8 42%,
    #bfdbfe 56%,
    #d8b4fe 70%,
    #a5f3fc 84%,
    #fce7f3 100%
  );
  background-size: 400% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: zenRegisterGlow 11s ease-in-out infinite;
  position: relative;
}

/* Soft aura behind registration title */
.register-hero .hero-title::after {
  content: '';
  position: absolute;
  inset: -6px -12px;
  background: radial-gradient(
    ellipse at center,
    rgba(165, 243, 252, 0.2) 0%,
    rgba(216, 180, 254, 0.15) 40%,
    transparent 70%
  );
  filter: blur(22px);
  opacity: 0.6;
  z-index: -1;
  pointer-events: none;
  animation: zenRegisterAura 6s ease-in-out infinite alternate;
}

@keyframes zenRegisterGlow {
  0% {
    background-position: 0% 50%;
  }
  33% {
    background-position: 50% 50%;
  }
  66% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

@keyframes zenRegisterAura {
  0% {
    opacity: 0.4;
    transform: scale(0.97);
  }
  100% {
    opacity: 0.75;
    transform: scale(1.03);
  }
}

/* Day mode — Registration title gradient */
body.balo-day.page-register .hero-title {
  background: linear-gradient(
    110deg,
    #ec4899 0%,
    #06b6d4 14%,
    #8b5cf6 28%,
    #f472b6 42%,
    #3b82f6 56%,
    #a855f7 70%,
    #06b6d4 84%,
    #ec4899 100%
  );
  background-size: 400% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: zenRegisterGlow 11s ease-in-out infinite;
}

body.balo-day.page-register .hero-title::after {
  background: radial-gradient(
    ellipse at center,
    rgba(6, 182, 212, 0.12) 0%,
    rgba(168, 85, 247, 0.08) 40%,
    transparent 70%
  );
  filter: blur(18px);
  opacity: 0.5;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .hero-title,
  .register-hero .hero-title::after {
    animation: none !important;
  }
}

.hero-subtitle {
  color: var(--text);
  opacity: .92;
  font-size: clamp(16px, 2.2vw, 19px);
  max-width: 70ch;
  margin: 0 auto;
}

/* ---------------------------------------------------------
   5) MAIN + CARD (glass / white surface)
--------------------------------------------------------- */
.register-main {
  padding: clamp(16px, 3.5vw, 32px) 16px clamp(28px, 5vw, 56px);
}

.register-card {
  max-width: var(--register-max);
  margin: 0 auto;

  background: var(--card-bg);
  border: 1px solid var(--card-bd);
  border-radius: var(--radius);
  box-shadow: var(--shadow);

  padding: clamp(18px, 2.2vw, 26px);
  backdrop-filter: blur(14px);
}

.card-title {
  color: var(--text);
  font-size: clamp(20px, 2.8vw, 26px);
  line-height: 1.2;
  margin: 0 0 10px;
  text-shadow: 0 2px 6px rgba(0,0,0,.35);
}

/* ---------------------------------------------------------
   6) FORM FIELDS
--------------------------------------------------------- */
.register-form {
  display: grid;
  gap: var(--gap);
}

.field {
  display: grid;
  gap: 8px;
}

.field label {
  color: var(--text);
  opacity: .9;
  font-weight: 600;
  font-size: 14px;
}

.field input[type=text],
.field input[type=email],
.field input[type=password] {
  appearance: none;
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;

  background: var(--input-bg);
  border: 1px solid var(--input-bd);
  color: var(--text);

  outline: none;
  transition: border-color .15s ease, box-shadow .2s ease;
}

.field input::placeholder {
  color: rgba(233,238,251,.65);
}

/* DAY MODE INPUT COLORS */
body.balo-day.page-register .field input {
  background: rgba(255,255,255,.75);
  border: 1px solid rgba(15,23,42,.18);
  color: #0f172a;
}

body.balo-day.page-register .field input::placeholder {
  color: rgba(15,23,42,.42);
}

.field input:focus {
  border-color: var(--input-bd-focus);
  box-shadow: 0 0 0 4px rgba(99,102,241,.22);
}

/* ---------------------------------------------------------
   7) BUTTONS
--------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 100%;
  padding: 12px 18px;
  border-radius: 999px;

  font-weight: 700;
  color: #fff;
  text-decoration: none;
  cursor: pointer;

  border: 1px solid rgba(148,163,184,.22);

  background:
    radial-gradient(60% 140% at 50% 0%, rgba(99,102,241,.20), rgba(99,102,241,0)),
    linear-gradient(180deg, rgba(39,55,110,.92), rgba(20,31,64,.95));

  box-shadow: 0 10px 24px rgba(0,0,0,.28);
  transition: transform .12s ease, box-shadow .2s ease, border-color .2s ease;
}

.btn:hover {
  transform: translateY(-1px);
  border-color: rgba(129,140,248,.55);
  box-shadow: 0 0 40px 6px rgba(99,102,241,.25);
}

.btn--google {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
}

.link {
  color: #c7d2fe;
  text-decoration: none;
}

.link:hover {
  text-decoration: underline;
}

/* ---------------------------------------------------------
   8) SEPARATOR + META
--------------------------------------------------------- */
.or {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 12px 0;
  color: var(--muted);
}

.or::before,
.or::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(148,163,184,.18);
}

.meta {
  color: var(--muted);
  text-align: center;
  margin-top: 10px;
}

/* ---------------------------------------------------------
   9) ERROR MESSAGE
--------------------------------------------------------- */
.form-error {
  color: #fecaca;
  margin: 6px 0 10px;
}

/* ---------------------------------------------------------
   10) FOOTER
--------------------------------------------------------- */
.site-footer.register-footer {
  color: var(--muted);
  text-align: center;
  padding: 16px;
  background: transparent;
}

/* ---------------------------------------------------------
   11) REDUCED MOTION
--------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .btn,
  .field input {
    transition: none;
  }
}
