:root {
  --navy-950: #102142;
  --navy-900: #16315f;
  --navy-700: #2450a4;
  --sky-100: #eef5ff;
  --sky-200: #d9e8ff;
  --orange-500: #f37f20;
  --orange-400: #ff9f45;
  --surface: #ffffff;
  --surface-soft: rgba(255, 255, 255, 0.08);
  --text-900: #1e293b;
  --text-700: #475569;
  --text-500: #64748b;
  --border: #d7e2f0;
  --shadow-lg: 0 28px 80px rgba(16, 33, 66, 0.18);
  --shadow-md: 0 14px 30px rgba(36, 80, 164, 0.14);
  --radius-xl: 28px;
  --radius-lg: 18px;
  --radius-md: 14px;
  --transition: 180ms ease;
  --auth-page-padding: clamp(14px, 1.9vw, 22px);
  --auth-card-width: min(860px, calc(100vw - clamp(22px, 5vw, 68px)));
  --auth-panel-padding: clamp(20px, 2.4vw, 30px);
  --auth-control-height: 44px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  color: var(--text-900);
  background:
    radial-gradient(circle at top left, rgba(255, 159, 69, 0.14), transparent 28%),
    radial-gradient(circle at bottom right, rgba(36, 80, 164, 0.18), transparent 35%),
    linear-gradient(145deg, #e9f1ff 0%, #f6f9ff 45%, #edf6ff 100%);
}

.auth-page {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--auth-page-padding);
}

.auth-card {
  width: var(--auth-card-width);
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  background: var(--surface);
  border: 1px solid rgba(215, 226, 240, 0.6);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.auth-card--compact {
  max-width: 960px;
}

.auth-card--login {
  min-height: min(610px, calc(100dvh - (var(--auth-page-padding) * 2)));
}

.brand-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: var(--auth-panel-padding);
  color: #fff;
  background:
    radial-gradient(circle at top right, rgba(255, 159, 69, 0.18), transparent 28%),
    linear-gradient(160deg, var(--navy-900) 0%, var(--navy-950) 100%);
}

.brand-panel::after {
  content: "";
  position: absolute;
  inset: auto -60px -100px auto;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  filter: blur(4px);
}

.brand-panel--compact {
  justify-content: center;
}

.brand-panel--login {
  align-items: center;
  text-align: center;
}

.logo-row {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
}

.logo-row img {
  width: 142px;
  height: 142px;
  object-fit: contain;
  border-radius: 26px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.24);
}

.logo-row strong {
  font-size: 0.96rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  color: #fff;
}

.logo-row small {
  display: block;
  max-width: 26ch;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.74rem;
  line-height: 1.45;
  font-weight: 700;
  text-align: center;
}

.brand-title {
  margin: 0;
  font-size: clamp(1.28rem, 1.82vw, 1.64rem);
  line-height: 1.15;
  font-weight: 800;
  max-width: 18ch;
  text-align: center;
}

.brand-subtitle {
  margin: 0;
  max-width: 38ch;
  color: rgba(255, 255, 255, 0.76);
  line-height: 1.55;
  font-size: 0.84rem;
}

.brand-devotional-card {
  display: grid;
  gap: 8px;
  padding: 14px 16px;
  width: 100%;
  max-width: 420px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.05));
  backdrop-filter: blur(10px);
  text-align: left;
}

.brand-devotional-card__verse {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.6;
  font-weight: 700;
  color: #fff;
}

.brand-devotional-card__reference {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.78rem;
}

.feature-list {
  display: grid;
  gap: 8px;
}

.feature {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  background: var(--surface-soft);
  color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  font-size: 0.84rem;
}

.feature-dot {
  width: 9px;
  height: 9px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--orange-500);
  box-shadow: 0 0 18px rgba(243, 127, 32, 0.45);
}

.brand-footnote {
  margin-top: auto;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.82rem;
  font-weight: 700;
  text-align: center;
}

.form-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--auth-panel-padding);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 1)),
    var(--surface);
}

.form-panel--compact {
  max-width: 100%;
}

.access-badge {
  display: inline-flex;
  align-self: flex-start;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid #bfd5ff;
  background: var(--sky-100);
  color: var(--navy-700);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.auth-panel-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 2px;
  flex-wrap: wrap;
}

.form-title {
  margin: 8px 0 5px;
  font-size: clamp(1.28rem, 1.85vw, 1.56rem);
  font-weight: 800;
  color: var(--navy-950);
}

.form-description {
  margin: 0 0 14px;
  color: var(--text-500);
  line-height: 1.6;
  font-size: 0.84rem;
}

.auth-form {
  display: grid;
  gap: 2px;
}

.form-label {
  margin-bottom: 5px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-900);
}

.form-control,
.form-select {
  min-height: var(--auth-control-height);
  padding: 10px 12px;
  border-color: var(--border);
  border-radius: var(--radius-md);
  font-size: 0.86rem;
  color: var(--text-900);
  background-color: #fff;
  transition:
    border-color var(--transition),
    box-shadow var(--transition),
    transform var(--transition);
}

.form-control::placeholder {
  color: #94a3b8;
}

.form-control:focus,
.form-select:focus {
  border-color: #7da6ff;
  box-shadow: 0 0 0 4px rgba(36, 80, 164, 0.12);
}

.password-row {
  position: relative;
}

.password-row .form-control {
  padding-right: 68px;
}

.toggle-password {
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  border: none;
  background: transparent;
  color: var(--navy-700);
  font-size: 0.7rem;
  font-weight: 700;
  cursor: pointer;
  padding: 3px 5px;
  border-radius: 10px;
  transition:
    color var(--transition),
    background-color var(--transition);
}

.toggle-password:hover,
.toggle-password:focus-visible {
  color: var(--navy-950);
  background: var(--sky-100);
}

.auth-check {
  cursor: pointer;
}

.remember-text,
.terms-text,
.switch-auth {
  color: var(--text-700);
  font-size: 0.8rem;
  line-height: 1.55;
}

.auth-link {
  color: var(--navy-700);
  text-decoration: none;
  font-weight: 700;
  transition:
    color var(--transition),
    opacity var(--transition);
}

.auth-link:hover,
.auth-link:focus-visible {
  color: var(--navy-950);
}

.form-meta-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.form-meta-row .auth-link {
  flex-shrink: 0;
}

.btn-navy {
  background: linear-gradient(135deg, var(--navy-900), var(--navy-700));
  color: #fff;
  border: none;
  min-height: 44px;
  padding: 0 16px;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  box-shadow: var(--shadow-md);
  transition:
    transform var(--transition),
    box-shadow var(--transition),
    filter var(--transition);
}

.btn-navy:hover,
.btn-navy:focus-visible {
  color: #fff;
  transform: translateY(-1px);
  filter: brightness(1.02);
  box-shadow: 0 18px 34px rgba(22, 49, 95, 0.22);
}

.btn-google {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text-900);
  font-size: 0.93rem;
  font-weight: 600;
  transition:
    border-color var(--transition),
    transform var(--transition),
    box-shadow var(--transition);
}

.btn-auth-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(36, 80, 164, 0.18);
  background: #fff;
  color: var(--navy-700);
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  transition:
    transform var(--transition),
    border-color var(--transition),
    box-shadow var(--transition);
}

.btn-auth-outline:hover,
.btn-auth-outline:focus-visible {
  color: var(--navy-950);
  transform: translateY(-1px);
  border-color: rgba(36, 80, 164, 0.3);
  box-shadow: 0 12px 24px rgba(36, 80, 164, 0.12);
}

.btn-google:hover,
.btn-google:focus-visible {
  color: var(--text-900);
  border-color: #b9cceb;
  transform: translateY(-1px);
  box-shadow: 0 14px 26px rgba(15, 23, 42, 0.08);
}

.google-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 10px 0 8px;
  color: #94a3b8;
  font-size: 0.82rem;
}

.divider::before,
.divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}

.login-hint {
  margin: 8px 0 0;
  color: #7b8ba1;
  font-size: 0.84rem;
  text-align: center;
}

.login-hint strong {
  color: var(--navy-900);
}

.auth-feedback {
  margin-bottom: 12px;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  font-size: 0.8rem;
  line-height: 1.55;
}

.auth-feedback p {
  margin: 0;
}

.auth-feedback--error {
  border: 1px solid rgba(220, 38, 38, 0.16);
  background: rgba(220, 38, 38, 0.06);
  color: #b91c1c;
}

.auth-feedback--success {
  border: 1px solid rgba(22, 163, 74, 0.18);
  background: rgba(22, 163, 74, 0.08);
  color: #166534;
}

.auth-action-stack {
  display: grid;
  gap: 10px;
}

.auth-contact-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 15px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.96), rgba(255, 255, 255, 0.98));
}

.auth-contact-copy {
  display: grid;
  gap: 3px;
}

.auth-contact-kicker {
  color: #0f766e;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.auth-contact-number {
  color: var(--navy-950);
  font-size: 1rem;
  font-weight: 800;
}

.auth-contact-copy p {
  margin: 0;
  color: var(--text-700);
  font-size: 0.78rem;
  line-height: 1.45;
}

.btn-auth-whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  gap: 8px;
  min-height: 38px;
  padding: 0 12px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(18, 140, 76, 0.18);
  background: rgba(37, 211, 102, 0.1);
  color: #128c4a;
  font-size: 0.8rem;
  font-weight: 800;
  text-decoration: none;
  transition:
    transform var(--transition),
    box-shadow var(--transition),
    border-color var(--transition),
    background var(--transition),
    color var(--transition);
}

.btn-auth-whatsapp:hover,
.btn-auth-whatsapp:focus-visible {
  color: #0f6d3a;
  transform: translateY(-1px);
  border-color: rgba(18, 140, 76, 0.28);
  background: rgba(37, 211, 102, 0.16);
  box-shadow: 0 10px 20px rgba(18, 140, 76, 0.12);
}

.btn-auth-whatsapp svg {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  fill: currentColor;
}

.btn-auth-whatsapp span {
  white-space: nowrap;
}

.field-error {
  margin: 5px 0 0;
  color: #dc2626;
  font-size: 0.74rem;
}

.form-help {
  color: var(--text-500);
  font-size: 0.72rem;
  max-width: 28ch;
  line-height: 1.5;
}

.form-alert {
  min-height: 22px;
  margin: 8px 0 0;
  text-align: center;
  font-size: 0.86rem;
  color: var(--text-500);
}

.form-alert.error {
  color: #dc2626;
}

.form-alert.success {
  color: #15803d;
}

[data-stagger] {
  opacity: 0;
  transform: translateY(14px);
  animation: rise-in 480ms ease forwards;
}

[data-stagger="1"] {
  animation-delay: 50ms;
}

[data-stagger="2"] {
  animation-delay: 110ms;
}

[data-stagger="3"] {
  animation-delay: 170ms;
}

[data-stagger="4"] {
  animation-delay: 230ms;
}

[data-stagger="5"] {
  animation-delay: 290ms;
}

@keyframes rise-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.register-card {
  width: min(660px, calc(100vw - clamp(22px, 5vw, 68px)));
  background: #fff;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid rgba(215, 226, 240, 0.6);
  box-shadow: var(--shadow-lg);
}

.reg-header {
  padding: 26px 32px 22px;
  text-align: center;
  color: #fff;
  background:
    radial-gradient(circle at top right, rgba(255, 159, 69, 0.18), transparent 34%),
    linear-gradient(160deg, var(--navy-900) 0%, var(--navy-950) 100%);
}

.reg-header .logo-row {
  justify-content: center;
  margin-bottom: 14px;
}

.reg-title {
  margin: 0 0 6px;
  font-size: 1.64rem;
  font-weight: 800;
}

.reg-subtitle {
  margin: 0 0 20px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.92rem;
}

.step-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 280px;
  margin: 0 auto;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.step span {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(255, 255, 255, 0.26);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.86rem;
  font-weight: 800;
  transition: all var(--transition);
}

.step small {
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.7rem;
  white-space: nowrap;
}

.step.active span {
  border-color: var(--orange-500);
  background: linear-gradient(135deg, var(--orange-500), var(--orange-400));
  color: #fff;
  box-shadow: 0 0 18px rgba(243, 127, 32, 0.35);
}

.step.active small,
.step.done small {
  color: rgba(255, 255, 255, 0.86);
}

.step.done span {
  border-color: rgba(255, 255, 255, 0.48);
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.step-line {
  flex: 1;
  height: 2px;
  margin: 0 12px 22px;
  background: rgba(255, 255, 255, 0.18);
}

.reg-form {
  display: grid;
  gap: 22px;
  padding: 28px 32px 32px;
}

.photo-upload-wrap {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 16px 18px;
  border: 1px dashed #bfd2ed;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, #fbfdff, #f6f9ff);
}

.photo-preview {
  width: 86px;
  height: 86px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 2px solid var(--border);
  border-radius: 999px;
  background: #ebf2ff;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  overflow: hidden;
  cursor: pointer;
  transition:
    border-color var(--transition),
    transform var(--transition);
}

.photo-preview:hover {
  border-color: var(--navy-700);
  transform: translateY(-1px);
}

.photo-info {
  display: grid;
  gap: 6px;
}

.photo-label {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-900);
}

.btn-photo-upload {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  padding: 8px 16px;
  border: 1px solid #bfd5ff;
  border-radius: 999px;
  background: var(--sky-100);
  color: var(--navy-700);
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  transition:
    transform var(--transition),
    background-color var(--transition),
    border-color var(--transition);
}

.btn-photo-upload:hover {
  transform: translateY(-1px);
  background: var(--sky-200);
  border-color: #9dbeff;
}

.photo-hint {
  margin: 0;
  font-size: 0.78rem;
  color: var(--text-500);
}

.form-section-title {
  margin: 0 0 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
  color: var(--text-500);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.auth-note-card {
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, #fbfdff, #f7faff);
  color: var(--text-700);
  line-height: 1.6;
}

.register-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.92rem;
}

.language-switcher--auth .language-switcher__current {
  gap: 8px;
  padding: 7px 10px;
  border-radius: 12px;
  font-size: 0.78rem;
  box-shadow: 0 10px 20px rgba(15, 31, 61, 0.06);
}

.language-switcher--auth .language-switcher__flag {
  font-size: 0.86rem;
}

.language-switcher--auth .language-switcher__menu {
  min-width: 180px;
}

@media (max-width: 1180px), (max-height: 880px) {
  :root {
    --auth-card-width: min(820px, calc(100vw - 30px));
    --auth-panel-padding: clamp(18px, 2.1vw, 26px);
    --auth-control-height: 42px;
  }

  .auth-card--login {
    min-height: min(570px, calc(100dvh - (var(--auth-page-padding) * 2)));
  }

  .brand-panel {
    gap: 14px;
  }

  .brand-title {
    font-size: clamp(1.34rem, 1.9vw, 1.68rem);
  }

  .feature {
    padding: 9px 11px;
    font-size: 0.8rem;
  }

  .form-description {
    margin-bottom: 12px;
  }
}

@media (max-height: 780px) and (min-width: 901px) {
  :root {
    --auth-page-padding: 12px;
    --auth-card-width: min(790px, calc(100vw - 24px));
    --auth-panel-padding: 18px;
    --auth-control-height: 40px;
  }

  .auth-card--login {
    min-height: auto;
  }

  .logo-row {
    gap: 10px;
  }

  .logo-row img {
    width: 98px;
    height: 98px;
  }

  .logo-row strong {
    font-size: 0.82rem;
    letter-spacing: 0.14em;
  }

  .brand-title {
    font-size: clamp(1.12rem, 1.55vw, 1.36rem);
  }

  .brand-subtitle {
    font-size: 0.78rem;
  }

  .feature-list {
    gap: 6px;
  }

  .feature {
    gap: 8px;
    padding: 8px 10px;
    font-size: 0.76rem;
  }

  .brand-footnote {
    font-size: 0.68rem;
  }

  .form-title {
    font-size: clamp(1.18rem, 1.5vw, 1.42rem);
  }

  .form-description {
    font-size: 0.78rem;
    margin-bottom: 10px;
  }
}

@media (max-width: 900px) {
  .auth-card {
    grid-template-columns: 1fr;
  }

  .brand-panel::after {
    display: none;
  }
}

@media (max-width: 640px) {
  .auth-page {
    padding: 14px;
  }

  .brand-panel,
  .form-panel {
    padding: 24px 20px;
  }

  .auth-panel-tools {
    flex-direction: column;
    align-items: flex-start;
  }

  .form-meta-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .auth-contact-card {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-auth-whatsapp {
    align-self: stretch;
  }

  .reg-header {
    padding: 24px 22px 22px;
  }

  .reg-form {
    padding: 24px 22px 28px;
  }

  .photo-upload-wrap {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}
