@import url('https://fonts.googleapis.com/css2?family=Sora:wght@400;500;600;700;800&display=swap');

:root {
  --navy: #1a2f56;
  --orange: #e8913a;
  --ink: #152238;
  --muted: #617089;
  --line: #cfd8e8;
}

body.auth-body {
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  padding: max(64px, calc(44px + env(safe-area-inset-top, 0px))) 14px max(20px, env(safe-area-inset-bottom, 0px));
  font-family: "Sora", "Segoe UI", sans-serif;
  font-size: 14px;
  line-height: 1.35;
  letter-spacing: -.01em;
  -webkit-font-smoothing: antialiased;
  background:
    radial-gradient(700px 380px at 15% 20%, rgba(232,145,58,.22), transparent 45%),
    radial-gradient(700px 380px at 90% 80%, rgba(26,47,86,.14), transparent 48%),
    linear-gradient(165deg, #edf2fa 0%, #e4ebf6 45%, #fff4e8 100%);
}

/* Keep trial bar out of the centering flow */
body.auth-body > .trial-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1040;
}

.auth-card {
  width: min(400px, 100%);
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  background: rgba(247, 249, 253, .96);
  border: 1px solid rgba(207, 216, 232, .9);
  border-radius: 18px;
  padding: 20px 18px;
  box-shadow: 0 14px 32px rgba(26, 47, 86, .12);
  box-sizing: border-box;
}

@media (max-width: 420px) {
  body.auth-body {
    padding-left: 12px;
    padding-right: 12px;
  }

  .auth-card {
    padding: 16px 14px;
    border-radius: 16px;
  }
}

.auth-brand { text-align: center; margin-bottom: 14px; }
.auth-brand .logo-main {
  width: min(220px, 78%);
  height: auto;
  display: block;
  margin: 0 auto 8px;
  background: #f7f9fd;
  border-radius: 12px;
  padding: .4rem .55rem;
}
.auth-brand .tagline {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.auth-brand .society {
  margin: 4px 0 0;
  color: var(--navy);
  font-weight: 700;
  font-size: 13px;
}

.btn-primary {
  background: var(--navy);
  border-color: var(--navy);
  font-weight: 700;
  font-size: .92rem;
  border-radius: 12px;
  min-height: 44px;
}
.btn-primary:hover {
  background: #2b4674;
  border-color: #2b4674;
}

.auth-body .btn-lg {
  font-size: .92rem;
  padding: .65rem 1rem;
  min-height: 44px;
}

.form-control {
  border-radius: 12px;
  border-color: var(--line);
  font-size: 16px; /* avoid iOS zoom */
  min-height: 44px;
}
.form-control:focus {
  border-color: #9eb0cc;
  box-shadow: 0 0 0 .2rem rgba(26, 47, 86, .1);
}
.form-label {
  font-size: 12px;
  font-weight: 600;
  color: #334663;
  margin-bottom: .3rem;
}

.auth-body .form-text {
  font-size: .7rem;
  margin-top: .3rem;
}

.auth-body .alert {
  font-size: .8rem;
  padding: .6rem .75rem;
  border-radius: 12px;
}

.demo-box {
  background: #edf2fa;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
  color: #475467;
  font-size: 12px;
}
.demo-box strong { color: var(--navy); }
.demo-box ul { padding-left: 1.1rem; margin-top: .35rem; }
.demo-box li { margin-bottom: .1rem; }

.demo-otp-banner {
  border-radius: 12px;
  font-size: 13px;
  padding: .65rem .75rem;
}
.demo-otp-banner .otp-code {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: .16em;
  color: var(--navy);
}

.otp-input {
  letter-spacing: .28em;
  font-weight: 700;
  font-size: 1.15rem !important;
  min-height: 46px;
}

.resend-btn:disabled {
  color: var(--muted);
  text-decoration: none;
  opacity: .75;
}

.powered-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.powered-row span {
  color: #7b879c;
  font-size: 9px;
  letter-spacing: .1em;
  text-transform: uppercase;
  font-weight: 700;
}
.powered-row .logo-plate {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 5px 8px;
  line-height: 0;
}
.powered-row .logo-rs {
  width: 48px;
  height: auto;
  display: block;
}

