/* ===================================================================
   AUTH-KRENDE — Override auth.css → Krende Deck palette
   Scoped: body.auth-page (loaded after auth.css)
   Fonts : Bricolage Grotesque · JetBrains Mono · Outfit
   =================================================================== */

.auth-page {
  /* ── remap legacy vars → Krende palette ── */
  --accent:           #c6f74e;
  --accent-alt:       #4fe6ff;
  --accent-hover:     #9fd313;
  --accent-on:        #0a0f04;
  --bg-body:          #090b0f;
  --bg-elevated:      #12151c;
  --bg-elevated-soft: #171b24;
  --border-subtle:    rgba(132, 148, 170, 0.16);
  --text-main:        #e9eef4;
  --text-muted:       #5e6b7d;
  --text-soft:        #93a0b2;
  --radius-lg:        16px;
  --radius-md:        10px;

  --font-display: "Bricolage Grotesque", "Outfit", system-ui, sans-serif;
  --font-mono:    "JetBrains Mono", ui-monospace, monospace;
  --font-body:    "Outfit", system-ui, sans-serif;
  font-family: var(--font-body);
}

.auth-page ::selection {
  background: var(--accent);
  color: var(--accent-on);
}

/* ================================================================
   BRAND PANEL (left)
   ================================================================ */
.auth-brand {
  background: linear-gradient(145deg, #090b0f 0%, #0c100c 50%, #0d1a06 100%);
  position: relative;
  overflow: hidden;
}

/* replace blue glows with lime/cyan */
.auth-brand::before {
  background:
    radial-gradient(ellipse at 20% 60%, rgba(198, 247, 78, 0.12) 0%, transparent 55%),
    radial-gradient(ellipse at 80% 15%, rgba(79, 230, 255, 0.08) 0%, transparent 50%);
}
.auth-brand::after {
  background: radial-gradient(circle, rgba(198, 247, 78, 0.07) 0%, transparent 70%);
}

/* grid-dot overlay on brand panel */
.auth-brand-inner::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(198, 247, 78, 0.06) 1px, transparent 0);
  background-size: 28px 28px;
  pointer-events: none;
  z-index: 0;
}
.auth-brand-inner { position: relative; z-index: 1; }

/* logo icon — lime gradient */
.auth-logo-icon {
  background: linear-gradient(135deg, #c6f74e 0%, #4fe6ff 100%);
  color: var(--accent-on);
  box-shadow: 0 8px 24px rgba(198, 247, 78, 0.35);
}

/* logo text — lime gradient */
.auth-logo-text {
  background: linear-gradient(135deg, #c6f74e 0%, #9fd313 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-family: var(--font-display);
  font-weight: 800;
}

/* brand heading */
.auth-brand h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 760;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--text-main);
}

/* brand sub */
.auth-brand > .auth-brand-inner > p {
  color: var(--text-soft);
  line-height: 1.65;
}

/* feature icons — lime tinted */
.auth-features li .feat-icon {
  background: rgba(198, 247, 78, 0.12);
  border: 1px solid rgba(198, 247, 78, 0.28);
  color: var(--accent);
}
.auth-features li { color: var(--text-soft); }

/* decorative kicker line at top of brand */
.auth-brand-inner::after {
  content: "KRENDE // ACCESS";
  position: absolute;
  top: -36px;
  left: 0;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.18em;
  color: rgba(198, 247, 78, 0.35);
  pointer-events: none;
}

/* ================================================================
   FORM PANEL (right)
   ================================================================ */
.auth-panel {
  background: var(--bg-body);
  border-left: 1px solid rgba(132, 148, 170, 0.10);
}

/* ================================================================
   TABS
   ================================================================ */
.auth-tabs {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(132, 148, 170, 0.14);
  border-radius: var(--radius-lg);
}

.auth-tab { color: var(--text-soft); font-family: var(--font-body); }

.auth-tab.active {
  background: var(--accent);
  color: var(--accent-on);
  box-shadow: 0 4px 18px rgba(198, 247, 78, 0.28);
  font-weight: 700;
}

.auth-tab:not(.active):hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
}

/* ================================================================
   FORM ELEMENTS
   ================================================================ */
.auth-sub {
  font-size: 0.88rem;
  color: var(--text-soft);
}

.auth-form-group label {
  font-family: var(--font-body);
  color: var(--text-soft);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}

.auth-input {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(132, 148, 170, 0.25);
  border-radius: var(--radius-md);
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 0.92rem;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.auth-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(198, 247, 78, 0.12);
  background: rgba(198, 247, 78, 0.03);
}

.auth-input::placeholder { color: var(--text-muted); }

/* ================================================================
   BUTTONS
   ================================================================ */
.auth-btn {
  background: var(--accent);
  color: var(--accent-on);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  box-shadow: 0 8px 24px rgba(198, 247, 78, 0.28);
  border-radius: var(--radius-md);
  /* override gradient from auth.css */
  background-image: none;
}

.auth-btn:hover {
  background: var(--accent-hover);
  box-shadow: 0 14px 32px rgba(198, 247, 78, 0.40);
  filter: none;
  transform: translateY(-2px);
}

.auth-btn-secondary {
  background: rgba(255, 255, 255, 0.05) !important;
  color: var(--text-main) !important;
  border: 1px solid rgba(132, 148, 170, 0.22) !important;
  box-shadow: none !important;
}
.auth-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: var(--accent) !important;
  color: var(--accent) !important;
  transform: none;
}

/* ================================================================
   LINKS
   ================================================================ */
.auth-forgot-link { color: var(--accent); }
.auth-forgot-link:hover { color: var(--accent-hover); }
.auth-switch a { color: var(--accent); }
.auth-switch a:hover { color: var(--accent-hover); }
.auth-switch { color: var(--text-soft); }

.auth-checkbox-label { color: var(--text-soft); }
.auth-checkbox-label input[type="checkbox"] { accent-color: var(--accent); }

/* ================================================================
   ALERTS
   ================================================================ */
.auth-alert-error {
  background: rgba(255, 93, 114, 0.08);
  border: 1px solid rgba(255, 93, 114, 0.28);
  color: #ff9aaa;
  border-radius: var(--radius-md);
}
.auth-alert-success {
  background: rgba(198, 247, 78, 0.08);
  border: 1px solid rgba(198, 247, 78, 0.28);
  color: var(--accent);
  border-radius: var(--radius-md);
}

/* ================================================================
   LOGGED-IN STATE
   ================================================================ */
.auth-logged-avatar {
  border: 3px solid var(--accent);
  box-shadow: 0 0 0 6px rgba(198, 247, 78, 0.12);
}

.auth-logged-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 720;
  color: var(--text-main);
}

.auth-logged-sub { color: var(--text-soft); }

.auth-logged-balance {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(132, 148, 170, 0.14);
  border-radius: var(--radius-md);
  color: var(--text-soft);
}
.auth-logged-balance strong { color: var(--accent); font-size: 1rem; }

.auth-logout-link { color: var(--text-soft); }
.auth-logout-link:hover { color: #ff5d72; }

/* eye button */
.auth-eye-btn { color: var(--text-soft); }

/* ================================================================
   RESPONSIVE OVERRIDES
   ================================================================ */
@media (max-width: 860px) {
  .auth-brand {
    border-bottom: 1px solid rgba(132, 148, 170, 0.12);
  }
  .auth-panel {
    border-left: none;
    border-top: 1px solid rgba(132, 148, 170, 0.10);
  }
}
