/* Homepage-aligned auth pages for login/register. */
:root {
  --auth-bg: #f6f3fb;
  --auth-ink: #211a2f;
  --auth-muted: #625875;
  --auth-line: #e5ddf0;
  --auth-brand: #8f63b8;
  --auth-brand-deep: #7449a1;
  --auth-accent: #c46d9a;
  --auth-panel: #ffffff;
  --auth-max: 1160px;
  --auth-shadow: 0 18px 42px rgba(67, 35, 102, 0.12);
}

.auth-modern-page {
  font-family: "Manrope", sans-serif;
  color: var(--auth-ink);
  background: var(--auth-bg);
  min-height: 100vh;
}

.auth-modern-page a {
  color: inherit;
}

.auth-wrap {
  width: min(var(--auth-max), calc(100% - 32px));
  margin: 0 auto;
}

.auth-site-head {
  position: sticky;
  top: 0;
  z-index: 70;
  background: rgba(246, 243, 251, 0.92);
  backdrop-filter: blur(9px);
  border-bottom: 1px solid rgba(33, 26, 47, 0.08);
}

.auth-head-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  gap: 14px;
}

.auth-logo {
  font-family: "Syne", sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.2px;
  color: var(--auth-ink);
}

.auth-menu {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.auth-menu a,
.auth-menu span {
  color: var(--auth-muted);
  font-weight: 700;
}

.auth-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 800;
  padding: 10px 16px;
  border: 1px solid transparent;
}

.auth-btn-main {
  background: var(--auth-brand);
  color: #fff !important;
}

.auth-btn-main:hover {
  background: var(--auth-brand-deep);
}

.auth-btn-sub {
  border-color: var(--auth-line);
  background: #fff;
  color: var(--auth-ink) !important;
}

.auth-main {
  padding: 42px 0;
  background:
    radial-gradient(circle at 0% 0%, #f0e4ff 0%, transparent 38%),
    radial-gradient(circle at 100% 8%, #fbe5f0 0%, transparent 34%),
    var(--auth-bg);
}

.auth-shell {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  background: #fff;
  border: 1px solid var(--auth-line);
  border-radius: 28px;
  box-shadow: var(--auth-shadow);
  overflow: hidden;
}

.auth-shell-login {
  grid-template-columns: 1fr 430px;
}

.auth-story {
  padding: 30px;
  background:
    radial-gradient(circle at 0% 0%, #f0e4ff 0%, transparent 52%),
    #fff;
  border-right: 1px solid var(--auth-line);
}

.auth-form-panel {
  padding: clamp(22px, 4vw, 42px);
  background:
    radial-gradient(circle at 100% 0%, #fbe5f0 0%, transparent 45%),
    #fff;
}

.auth-kicker {
  display: inline-block;
  border: 1px solid #d9c5eb;
  color: var(--auth-brand-deep);
  font-weight: 800;
  font-size: .78rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 6px 10px;
  background: #f5edfd;
}

.auth-story h1,
.auth-form-panel h1,
.auth-form-panel h2 {
  font-family: "Syne", sans-serif;
  color: var(--auth-ink);
  letter-spacing: -0.01em;
}

.auth-story h1 {
  margin: 12px 0 8px;
  font-size: clamp(2rem, 3.7vw, 3rem);
  line-height: 1.08;
}

.auth-form-panel h1,
.auth-form-panel h2 {
  margin: 0 0 8px;
  font-size: clamp(1.55rem, 3vw, 2rem);
}

.auth-lead,
.auth-subtitle {
  color: var(--auth-muted);
}

.auth-lead {
  max-width: 58ch;
  margin: 0 0 18px;
}

.auth-subtitle {
  margin: 0 0 18px;
}

.auth-media {
  position: relative;
  margin-top: 18px;
}

.auth-media-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 10px;
}

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

.auth-media figure {
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #e3d5f0;
  background: #f7f1fc;
  box-shadow: 0 10px 24px rgba(55, 26, 15, 0.12);
}

.auth-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.auth-media-tall {
  min-height: 330px;
}

.auth-media-short {
  min-height: 160px;
}

.auth-media-badge {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  border-radius: 12px;
  border: 1px solid #eadff3;
  background: rgba(255, 252, 255, 0.95);
  backdrop-filter: blur(4px);
  padding: 10px 12px;
  box-shadow: 0 10px 20px rgba(55, 26, 15, 0.14);
}

.auth-media-badge strong,
.auth-media-badge span {
  display: block;
}

.auth-media-badge strong {
  color: #3c2f52;
  font-size: .92rem;
  margin-bottom: 2px;
}

.auth-media-badge span {
  color: var(--auth-muted);
  font-size: .84rem;
  font-weight: 700;
}

.auth-proof {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.auth-proof p {
  margin: 0;
  padding: 10px 12px;
  background: #fff;
  border: 1px solid var(--auth-line);
  border-radius: 12px;
  color: var(--auth-muted);
  font-weight: 700;
  font-size: .92rem;
}

.auth-modern-page .free-badge-large {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #d9c5eb;
  background: #f5edfd;
  color: var(--auth-brand-deep);
  box-shadow: none;
  border-radius: 999px;
  padding: 10px 14px;
  margin: 0 0 18px;
  font-size: .92rem;
}

.auth-modern-page .benefits-list {
  display: grid;
  gap: 10px;
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
}

.auth-modern-page .benefits-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin: 0;
  padding: 12px;
  border: 1px solid var(--auth-line);
  border-radius: 12px;
  background: rgba(255,255,255,.78);
}

.auth-modern-page .benefits-list i {
  color: var(--auth-brand);
  font-size: 1.2rem;
  margin-top: 2px;
}

.auth-modern-page .benefits-list strong {
  display: block;
  color: var(--auth-ink);
  margin-bottom: 2px;
}

.auth-modern-page .benefits-list p {
  margin: 0;
  color: var(--auth-muted);
  font-size: .9rem;
}

.auth-modern-page .testimonial-mini {
  border: 1px solid var(--auth-line);
  border-left: 0;
  border-radius: 16px;
  box-shadow: none;
  background: #fbf8ff;
  padding: 16px;
}

.auth-modern-page .testimonial-mini i {
  color: var(--auth-brand);
}

.auth-modern-page .testimonial-mini p {
  color: var(--auth-muted);
}

.auth-modern-page .form-warning,
.auth-modern-page .auth-note {
  border: 1px solid #f0d1d1;
  border-radius: 12px;
  background: #fff7f7;
  color: #8a2438;
  padding: 10px 12px;
  margin-bottom: 16px;
}

.auth-modern-page .form-group,
.auth-modern-page .input-group {
  margin-bottom: 15px;
}

.auth-modern-page .form-label,
.auth-modern-page .input-group label {
  display: block;
  color: var(--auth-ink);
  font-weight: 800;
  margin-bottom: 7px;
}

.auth-modern-page .form-control {
  border: 1px solid var(--auth-line);
  border-radius: 12px;
  background: #fff;
  color: var(--auth-ink);
  padding: 13px 14px;
}

.auth-modern-page .form-control:focus {
  border-color: var(--auth-brand);
  box-shadow: 0 0 0 3px rgba(143, 99, 184, 0.12);
}

.auth-modern-page .input-with-icon i {
  color: #827890;
}

.auth-modern-page .input-with-icon .form-control {
  padding-left: 45px;
}

.auth-modern-page .toggle-password,
.auth-modern-page .password-toggle {
  color: #827890;
}

.auth-modern-page .radio-group {
  gap: 10px;
}

.auth-modern-page .radio-label span {
  border: 1px solid var(--auth-line);
  border-radius: 12px;
  background: #fff;
}

.auth-modern-page .radio-label input[type="radio"]:checked + span {
  border-color: var(--auth-brand);
  background: #f5edfd;
  color: var(--auth-brand-deep);
}

.auth-modern-page .form-check {
  align-items: flex-start;
  flex-wrap: wrap;
}

.auth-modern-page .form-check .form-text {
  width: 100%;
  margin-left: 28px;
}

.auth-modern-page .form-text,
.auth-modern-page small {
  color: #827890;
}

.auth-modern-page .auth-submit,
.auth-modern-page .btn-login {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  border: 0;
  border-radius: 999px;
  background: var(--auth-brand);
  color: #fff;
  font-weight: 800;
  padding: 13px 18px;
  cursor: pointer;
  box-shadow: none;
}

.auth-modern-page .auth-submit:hover,
.auth-modern-page .btn-login:hover {
  background: var(--auth-brand-deep);
  transform: none;
  box-shadow: none;
}

.auth-modern-page .auth-submit:disabled,
.auth-modern-page .btn-login:disabled {
  opacity: .65;
  cursor: not-allowed;
}

.auth-modern-page .form-footer,
.auth-modern-page .register-cta {
  margin-top: 14px;
  text-align: center;
  color: var(--auth-muted);
}

.auth-modern-page .form-footer a,
.auth-modern-page .register-cta a,
.auth-modern-page .link-forgot,
.auth-modern-page .resend-verify button {
  color: var(--auth-brand-deep);
  font-weight: 800;
}

.auth-modern-page .notice,
.auth-modern-page .alert {
  border-radius: 12px;
  padding: 11px 12px;
  margin-bottom: 16px;
  text-align: center;
  font-weight: 800;
}

.auth-modern-page .notice {
  background: #ecfdf3;
  color: #146c43;
  border: 1px solid #bde7ca;
}

.auth-modern-page .alert,
.auth-modern-page .alert-error {
  background: #fff7f7;
  color: #9f2345;
  border: 1px solid #f0d1d1;
}

.auth-modern-page .alert-success {
  background: #ecfdf3;
  color: #146c43;
  border: 1px solid #bde7ca;
}

.auth-modern-page .password-group {
  position: relative;
}

.auth-modern-page .password-toggle {
  position: absolute;
  right: 13px;
  top: 68%;
  transform: translateY(-50%);
  cursor: pointer;
  font-size: 1.05em;
}

.auth-modern-page .link-forgot {
  display: block;
  margin: 13px 0 9px;
  text-align: center;
}

.auth-modern-page .site-logo-box {
  display: inline-flex;
  padding: 10px 16px;
  border-radius: 16px;
  border: 1px solid #d9c5eb;
  background: #f5edfd;
  margin-bottom: 16px;
}

.auth-modern-page .site-logo-box img {
  width: 54px;
  height: 54px;
  object-fit: contain;
  border-radius: 12px;
  background: #fff;
}

.auth-modern-page .login-card {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  text-align: left;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
}

.auth-modern-page .login-card h2 {
  font-family: "Syne", sans-serif;
  color: var(--auth-ink);
  font-size: clamp(1.55rem, 3vw, 2rem);
  margin: 0 0 8px;
}

.auth-modern-page .login-card .tagline {
  color: var(--auth-muted);
  margin-bottom: 18px;
}

@media (max-width: 980px) {
  .auth-shell,
  .auth-shell-login {
    grid-template-columns: 1fr;
  }

  .auth-story {
    border-right: 0;
    border-bottom: 1px solid var(--auth-line);
  }
}

@media (max-width: 720px) {
  .auth-head-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .auth-menu {
    width: 100%;
  }

  .auth-main {
    padding: 24px 0 34px;
  }

  .auth-shell {
    border-radius: 20px;
  }

  .auth-story,
  .auth-form-panel {
    padding: 22px;
  }

  .auth-media-grid,
  .auth-proof {
    grid-template-columns: 1fr;
  }

  .auth-media-tall,
  .auth-media-short {
    min-height: 190px;
  }

  .auth-media-badge {
    position: static;
    margin-top: 10px;
  }

  .auth-modern-page .radio-group {
    flex-direction: column;
  }
}
