/* ═══════════════════════════════════════
   Accurate Event Group – Login & Dashboard Styles
═══════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --yellow:       #F5C518;
  --yellow-light: #FDE68A;
  --yellow-pale:  #FFFBEB;
  --yellow-dark:  #D97706;
  --yellow-hover: #EAB308;
  --white:        #FFFFFF;
  --gray-100:     #F3F4F6;
  --gray-200:     #E5E7EB;
  --gray-400:     #9CA3AF;
  --gray-700:     #374151;
  --gray-900:     #111827;
  --text-muted:   #6B7280;
  --radius:       12px;
  --radius-lg:    20px;
  --shadow:       0 4px 16px rgba(0,0,0,.09);
  --shadow-lg:    0 20px 60px rgba(0,0,0,.15);
}

html, body {
  height: 100%;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--gray-900);
  -webkit-font-smoothing: antialiased;
}

/* ─── AUTH LAYOUT ─── */
.auth-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.auth-left {
  background: linear-gradient(155deg, #111827 0%, #1F2937 50%, #111827 100%);
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 48px 56px;
  position: relative; overflow: hidden;
}
.auth-left::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 30% 60%, rgba(245,197,24,.12) 0%, transparent 65%);
}
.auth-left-content { position: relative; z-index: 1; }
.auth-logo { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-bottom: 60px; }
.auth-logo-mark {
  width: 44px; height: 44px; background: var(--yellow); border-radius: 10px;
  display: grid; place-items: center; font-weight: 900; font-size: 20px; color: var(--gray-900);
}
.auth-logo-name { font-weight: 800; font-size: 18px; color: var(--white); letter-spacing: -.4px; line-height: 1.2; }
.auth-logo-name span { display: block; font-size: 12px; font-weight: 400; color: rgba(255,255,255,.45); letter-spacing: .02em; }
.auth-headline { font-size: clamp(28px, 3vw, 42px); font-weight: 900; color: var(--white); line-height: 1.12; letter-spacing: -1px; margin-bottom: 18px; }
.auth-headline em { color: var(--yellow); font-style: normal; }
.auth-subline  { font-size: 15px; color: rgba(255,255,255,.5); line-height: 1.7; max-width: 360px; }

.auth-features { margin-top: 52px; display: flex; flex-direction: column; gap: 18px; }
.auth-feature  { display: flex; align-items: flex-start; gap: 14px; }
.af-icon {
  width: 36px; height: 36px; background: rgba(245,197,24,.15);
  border-radius: 10px; display: grid; place-items: center; font-size: 16px; flex-shrink: 0;
}
.af-text h4 { font-size: 14px; font-weight: 600; color: var(--white); margin-bottom: 2px; }
.af-text p  { font-size: 12px; color: rgba(255,255,255,.4); line-height: 1.5; }

.auth-footer { position: relative; z-index: 1; font-size: 12px; color: rgba(255,255,255,.25); }

/* ─── AUTH RIGHT ─── */
.auth-right {
  background: var(--white);
  display: flex; align-items: center; justify-content: center;
  padding: 48px 56px;
}
.auth-box { width: 100%; max-width: 400px; }
.auth-box h2 { font-size: 28px; font-weight: 800; color: var(--gray-900); margin-bottom: 6px; letter-spacing: -.5px; }
.auth-box .auth-desc { font-size: 15px; color: var(--text-muted); margin-bottom: 32px; }

/* form */
.auth-form .form-group { margin-bottom: 18px; }
.auth-form label { display: block; font-size: 13px; font-weight: 600; color: var(--gray-700); margin-bottom: 7px; }
.auth-form input[type="email"],
.auth-form input[type="password"],
.auth-form input[type="text"] {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--gray-200);
  border-radius: 8px; font-size: 14px; font-family: inherit; outline: none;
  transition: border-color .15s; color: var(--gray-900); background: var(--white);
}
.auth-form input:focus { border-color: var(--yellow); box-shadow: 0 0 0 3px rgba(245,197,24,.15); }
.auth-form input.error { border-color: #EF4444; }
.auth-form .field-error { font-size: 12px; color: #EF4444; margin-top: 5px; display: none; }
.auth-form .field-error.show { display: block; }

.password-wrapper { position: relative; }
.password-wrapper input { padding-right: 42px; }
.toggle-pw {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  background: none; border: none; cursor: pointer; color: var(--gray-400);
  padding: 2px; display: grid; place-items: center;
}
.toggle-pw:hover { color: var(--gray-700); }
.toggle-pw svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.form-row-inline { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.remember-label  { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--gray-700); cursor: pointer; }
.remember-label input[type="checkbox"] { accent-color: var(--yellow); width: 15px; height: 15px; }
.forgot-link { font-size: 14px; font-weight: 600; color: var(--yellow-dark); text-decoration: none; }
.forgot-link:hover { text-decoration: underline; }

.btn-auth {
  width: 100%; padding: 14px; background: var(--yellow); color: var(--gray-900);
  font-weight: 700; font-size: 15px; border: none; border-radius: 8px;
  cursor: pointer; transition: all .2s; font-family: inherit;
}
.btn-auth:hover    { background: var(--yellow-hover); transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-auth:disabled { opacity: .6; cursor: not-allowed; transform: none; }
.btn-auth.loading  { position: relative; color: transparent; }
.btn-auth.loading::after {
  content: ''; position: absolute; inset: 0; margin: auto;
  width: 20px; height: 20px; border: 2px solid rgba(0,0,0,.2);
  border-top-color: var(--gray-900); border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.auth-switch { text-align: center; margin-top: 24px; font-size: 14px; color: var(--text-muted); }
.auth-switch a { font-weight: 600; color: var(--yellow-dark); text-decoration: none; }
.auth-switch a:hover { text-decoration: underline; }

.auth-alert {
  padding: 12px 14px; border-radius: 8px; font-size: 14px; margin-bottom: 20px;
  display: none; align-items: flex-start; gap: 10px;
}
.auth-alert.show   { display: flex; }
.auth-alert.error  { background: #FEF2F2; border: 1px solid #FECACA; color: #991B1B; }
.auth-alert.info   { background: var(--yellow-pale); border: 1px solid var(--yellow-light); color: var(--yellow-dark); }
.auth-alert svg    { width: 18px; height: 18px; flex-shrink: 0; margin-top: 1px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ─── DASHBOARD ─── */
.dash-page { min-height: 100vh; background: var(--gray-100); display: flex; flex-direction: column; }
.dash-nav  {
  background: var(--white); border-bottom: 1px solid var(--gray-200);
  padding: 0 28px; height: 64px; display: flex; align-items: center;
  justify-content: space-between; position: sticky; top: 0; z-index: 100;
}
.dash-nav .nav-logo { display: flex; align-items: center; gap: 11px; text-decoration: none; }
.dash-nav .nav-logo-mark {
  width: 36px; height: 36px; background: var(--yellow); border-radius: 8px;
  display: grid; place-items: center; font-weight: 900; font-size: 16px; color: var(--gray-900);
}
.dash-nav .nav-logo-name  { font-weight: 700; font-size: 15px; color: var(--gray-900); }
.dash-nav .nav-logo-name span { display: block; font-size: 11px; font-weight: 400; color: var(--text-muted); }
.dash-nav-right { display: flex; align-items: center; gap: 16px; }
.dash-nav-right .user-pill {
  display: flex; align-items: center; gap: 8px;
  background: var(--gray-100); border-radius: 100px; padding: 6px 14px 6px 6px;
  font-size: 13px; font-weight: 600; color: var(--gray-700);
}
.dash-nav-right .user-avatar {
  width: 28px; height: 28px; border-radius: 50%; background: var(--yellow);
  display: grid; place-items: center; font-weight: 700; font-size: 12px; color: var(--gray-900);
}
.dash-logout {
  font-size: 13px; font-weight: 600; color: var(--text-muted);
  background: none; border: none; cursor: pointer; transition: color .15s;
}
.dash-logout:hover { color: var(--gray-900); }

.dash-body { flex: 1; max-width: 960px; margin: 0 auto; width: 100%; padding: 48px 24px; }

/* paywall card */
.paywall-card {
  background: var(--white); border-radius: var(--radius-lg);
  padding: 56px 48px; text-align: center; box-shadow: var(--shadow);
  border-top: 4px solid var(--yellow); max-width: 600px; margin: 0 auto;
}
.paywall-icon { font-size: 64px; margin-bottom: 20px; display: block; }
.paywall-card h2 { font-size: 26px; font-weight: 800; color: var(--gray-900); margin-bottom: 12px; }
.paywall-card p  { font-size: 15px; color: var(--text-muted); line-height: 1.7; max-width: 420px; margin: 0 auto 28px; }
.paywall-plans { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 32px 0; }
.plan-card {
  border: 2px solid var(--gray-200); border-radius: var(--radius);
  padding: 22px 18px; text-align: left; transition: all .2s;
}
.plan-card:hover { border-color: var(--yellow); }
.plan-card.featured { border-color: var(--yellow); background: var(--yellow-pale); }
.plan-card .plan-name  { font-size: 13px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 6px; }
.plan-card .plan-price { font-size: 28px; font-weight: 900; color: var(--gray-900); line-height: 1; }
.plan-card .plan-price span { font-size: 14px; font-weight: 500; color: var(--text-muted); }
.plan-card .plan-desc  { font-size: 13px; color: var(--text-muted); margin-top: 8px; }
.plan-card .plan-badge {
  display: inline-block; background: var(--yellow); color: var(--gray-900);
  font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 4px; margin-bottom: 8px;
}
.paywall-cta { background: var(--yellow); color: var(--gray-900); font-weight: 700; font-size: 15px; padding: 14px 32px; border: none; border-radius: 8px; cursor: pointer; transition: all .2s; font-family: inherit; }
.paywall-cta:hover { background: var(--yellow-hover); transform: translateY(-1px); box-shadow: var(--shadow); }
.paywall-note { font-size: 12px; color: var(--text-muted); margin-top: 14px; }
.back-home { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--text-muted); text-decoration: none; margin-bottom: 32px; }
.back-home:hover { color: var(--gray-900); }
.back-home svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ─── RESPONSIVE ─── */
@media (max-width: 768px) {
  .auth-page   { grid-template-columns: 1fr; }
  .auth-left   { display: none; }
  .auth-right  { padding: 48px 28px; }
  .paywall-plans { grid-template-columns: 1fr; }
  .paywall-card  { padding: 36px 24px; }
}
