/* ============================================
   Club720 Panel — Auth layout (shared)
   Used by: login, forgot password, signup
   ============================================ */

.auth {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  min-height: 100vh;
}

/* ---------- Left: brand ---------- */
.auth-brand {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: var(--sp-7);
  color: #fafafa;                       /* Chatbase: near-black panel */
  background: linear-gradient(160deg, #18181b 0%, #09090b 100%);
  overflow: hidden;
}

/* soft decorative glow */
.auth-brand::after {
  content: "";
  position: absolute;
  width: 420px; height: 420px;
  right: -140px; bottom: -140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(29, 155, 240, .18), transparent 70%);
  pointer-events: none;
}

.auth-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  align-self: flex-start;
}
.auth-logo:hover { text-decoration: none; opacity: .9; }

.auth-logo-text {
  font-size: var(--fs-lg);
  font-weight: 700;
  letter-spacing: -.01em;
}

.auth-story { max-width: 460px; }

.auth-tagline {
  font-size: var(--fs-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #71717a;
  margin-bottom: var(--sp-3);
}

.auth-title {
  font-size: 38px;
  font-weight: 800;
  letter-spacing: var(--ls-display);
  line-height: 1.15;
  margin-bottom: var(--sp-4);
  color: #fafafa;
}

.auth-sub {
  font-size: var(--fs-lg);        /* 16px */
  line-height: var(--lh-label);   /* 26px */
  color: #a1a1aa;
  margin-bottom: var(--sp-6);
}

.auth-points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.auth-points li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: var(--fs-md);        /* 15px */
  line-height: var(--lh-body);    /* 25px */
  color: #d4d4d8;
}

.point-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px; height: 22px;
  flex-shrink: 0;
  border-radius: 50%;
  background: rgba(29, 155, 240, .2);
  color: var(--primary);
}

.auth-foot {
  font-size: var(--fs-sm);
  color: #71717a;
}

/* ---------- Right: form panel ---------- */
.auth-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--sp-6);
  background: var(--surface);
  border-left: 1px solid var(--border);
}

.auth-card {
  width: 100%;
  max-width: 400px;
  padding: var(--sp-6) var(--sp-5);   /* Chatbase: roomy 20-24px card padding */
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.auth-card--wide { max-width: 560px; }

.auth-head { margin-bottom: var(--sp-5); }

.auth-head h2 {
  font-size: var(--fs-xl);        /* 22px */
  line-height: var(--lh-title);   /* 30px */
  font-weight: 700;
  letter-spacing: var(--ls-heading);
  margin-bottom: 6px;
}

.auth-head p {
  color: var(--slate);
  font-size: var(--fs-md);        /* 15px */
  line-height: var(--lh-body);
}

/* Forms */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}

.auth-form #loginError,
.auth-form .form-alert { margin-bottom: var(--sp-1); }

.label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.forgot-link {
  font-size: var(--fs-sm);
  line-height: var(--lh-label);   /* aligns with 26px label line */
  font-weight: 500;
}

.auth-submit { margin-top: var(--sp-2); }

/* Footer of the card */
.auth-card-foot {
  margin-top: var(--sp-5);
  padding-top: var(--sp-4);
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}
.register-line {
  font-size: var(--fs-sm);
  line-height: var(--lh-small);
  color: var(--slate);
}
.register-line strong { color: var(--ink); }

.legal {
  font-size: var(--fs-xs);
  line-height: var(--lh-small);
  color: var(--muted);
}
.legal a { color: inherit; }
.legal a:hover { color: var(--primary); }

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

  .auth-brand {
    padding: var(--sp-5);
    gap: var(--sp-5);
  }
  .auth-title { font-size: 28px; }
  .auth-sub { font-size: var(--fs-md); margin-bottom: 0; }
  .auth-points { display: none; }
  .auth-foot { display: none; }

  .auth-panel {
    padding: var(--sp-5);
    align-items: flex-start;
    padding-top: var(--sp-6);
  }
}

@media (max-width: 480px) {
  .auth-card { max-width: none; }
  .auth-title br { display: none; }
}