/* ============================================
   MONSITEAI — Auth Page
   ============================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary:      #6665DD;
  --primary-dark: #5453C4;
  --bg:           #0C0A1E;
  --white:        #FFFFFF;
  --text:         #0C0A1E;
  --text-muted:   #524F7A;
  --border:       #E5E3F8;
  --radius:       10px;
}

body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
  position: relative;
  overflow: hidden;
}

/* ── Background orbs ────────────────────────────────────────────────────────── */
.auth-bg { position: fixed; inset: 0; pointer-events: none; z-index: 0; }

.auth-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.35;
}
.auth-orb-1 {
  width: 550px; height: 550px;
  background: radial-gradient(circle, #6665DD, transparent 65%);
  top: -150px; left: -150px;
}
.auth-orb-2 {
  width: 450px; height: 450px;
  background: radial-gradient(circle, #8B5CF6, transparent 65%);
  bottom: -100px; right: -100px;
}
.auth-orb-3 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, #A78BFA, transparent 65%);
  top: 50%; right: 15%;
  opacity: 0.2;
}

/* ── Card ───────────────────────────────────────────────────────────────────── */
.auth-card {
  position: relative;
  z-index: 1;
  background: rgba(255,255,255,0.98);
  border-radius: 20px;
  padding: 36px 40px 32px;
  width: 100%;
  max-width: 420px;
  margin: 20px;
  box-shadow: 0 32px 80px rgba(0,0,0,0.42), 0 8px 32px rgba(102,101,221,0.28);
  border: 1px solid rgba(229,227,248,0.4);
}

/* ── Logo ───────────────────────────────────────────────────────────────────── */
.auth-logo {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 6px;
  font-family: 'Lexend', sans-serif;
  font-size: 1.1rem;
  color: var(--text);
}
.auth-logo-icon {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, #6665DD, #A78BFA);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  box-shadow: 0 4px 14px rgba(102,101,221,0.5);
}
.auth-logo span  { font-weight: 400; }
.auth-logo strong { font-weight: 700; }

.auth-tagline {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 24px;
  line-height: 1.5;
}

/* ── Tabs ───────────────────────────────────────────────────────────────────── */
.auth-tabs {
  display: flex;
  background: #F5F4FF;
  border-radius: 10px;
  padding: 4px;
  margin-bottom: 22px;
  gap: 0;
}
.auth-tab {
  flex: 1;
  padding: 9px;
  border: none;
  background: none;
  border-radius: 7px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.16s ease;
  font-family: 'Inter', sans-serif;
}
.auth-tab.active {
  background: var(--white);
  color: var(--text);
  box-shadow: 0 1px 4px rgba(102,101,221,0.12), 0 2px 8px rgba(0,0,0,0.06);
}

/* ── Alert ──────────────────────────────────────────────────────────────────── */
.auth-alert {
  padding: 10px 14px;
  border-radius: var(--radius);
  font-size: 0.82rem;
  font-weight: 500;
  margin-bottom: 16px;
  line-height: 1.5;
}
.auth-alert.error   { background: #FEE2E2; color: #B91C1C; }
.auth-alert.success { background: #DCFCE7; color: #15803D; }

/* ── Form ───────────────────────────────────────────────────────────────────── */
.auth-form { display: flex; flex-direction: column; gap: 16px; }
.auth-form.hidden { display: none; }

.auth-field { display: flex; flex-direction: column; gap: 6px; }

.auth-field label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.auth-forgot {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--primary);
  text-decoration: none;
}
.auth-forgot:hover { text-decoration: underline; }

.auth-hint {
  font-size: 0.72rem;
  font-weight: 400;
  color: var(--text-muted);
}

.auth-field input {
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: #F5F4FF;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}
.auth-field input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(102,101,221,0.12);
  background: var(--white);
}
.auth-field input::placeholder { color: #9895BC; }

/* ── Submit button ──────────────────────────────────────────────────────────── */
.auth-btn {
  margin-top: 4px;
  width: 100%;
  padding: 13px;
  background: linear-gradient(135deg, #6665DD 0%, #8B5CF6 100%);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 700;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 18px rgba(102,101,221,0.4);
}
.auth-btn:hover {
  background: linear-gradient(135deg, #5453C4 0%, #7C3AED 100%);
  box-shadow: 0 6px 26px rgba(102,101,221,0.54);
  transform: translateY(-1px);
}
.auth-btn:disabled {
  background: #C5C4F0;
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
}

/* ── Footer ─────────────────────────────────────────────────────────────────── */
.auth-footer {
  margin-top: 20px;
  text-align: center;
  font-size: 0.73rem;
  color: var(--text-muted);
  line-height: 1.6;
}
.auth-footer a { color: var(--primary); font-weight: 600; }
.auth-footer a:hover { text-decoration: underline; }

/* ── Responsive ─────────────────────────────────────────────────────────────── */
@media (max-width: 480px) {
  .auth-card { padding: 28px 24px; }
}
