/* ─────────────────────────────────────────────────────────
   Auth Page Shared Styles (login.css & signup.css use this too)
   Shared via identical classes
───────────────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  --font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --primary: #0066ff;
  --primary-hover: #0052cc;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-tertiary: #94a3b8;
  --border: #e2e8f0;
  --border-2: #cbd5e1;
  --surface: #ffffff;
  --bg: #f8fafc;
  --danger: #ef4444;
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 25px -5px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.05);
}

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

html, body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text-primary);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* Two-column layout: left = branding, right = form */
.auth-root {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

/* Left Panel */
.auth-left {
  background: #0f172a;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 48px;
  position: relative;
  overflow: hidden;
}

.auth-left::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 20%, rgba(0,102,255,0.2) 0%, transparent 60%),
              radial-gradient(ellipse at 80% 80%, rgba(99,102,241,0.15) 0%, transparent 60%);
}

.auth-left-content { position: relative; z-index: 1; }

.auth-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 64px;
  text-decoration: none;
}

.auth-logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, #0066ff, #6366f1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-logo-icon svg {
  width: 20px;
  height: 20px;
  color: #fff;
  stroke: currentColor;
}

.auth-logo-name {
  font-size: 18px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.3px;
}

.auth-left-headline {
  font-size: 38px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.15;
  letter-spacing: -0.75px;
  margin-bottom: 16px;
}

.auth-left-sub {
  font-size: 16px;
  color: #94a3b8;
  line-height: 1.6;
}

.auth-left-features {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.auth-feature {
  display: flex;
  align-items: center;
  gap: 12px;
}

.auth-feature-icon {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.auth-feature-icon svg {
  width: 17px;
  height: 17px;
  color: #60a5fa;
  stroke: currentColor;
}

.auth-feature-text {
  font-size: 14px;
  color: #cbd5e1;
  font-weight: 500;
}

.auth-left-footer {
  position: relative;
  z-index: 1;
  font-size: 12px;
  color: #475569;
}

/* Right Panel */
.auth-right {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 40px;
  background: var(--bg);
}

.auth-card {
  width: 100%;
  max-width: 420px;
}

.auth-card-header {
  margin-bottom: 32px;
}

.auth-card-title {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 6px;
}

.auth-card-sub {
  font-size: 14px;
  color: var(--text-secondary);
}

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

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

.field-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.field-input {
  width: 100%;
  padding: 11px 14px;
  background: var(--surface);
  border: 1.5px solid var(--border-2);
  border-radius: 9px;
  color: var(--text-primary);
  font-size: 14px;
  font-family: var(--font);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.field-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.1);
}

.btn-submit {
  width: 100%;
  padding: 12px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 9px;
  font-size: 15px;
  font-weight: 700;
  font-family: var(--font);
  cursor: pointer;
  transition: all 0.2s;
  margin-top: 4px;
}

.btn-submit:hover {
  background: var(--primary-hover);
  box-shadow: 0 4px 14px rgba(0, 102, 255, 0.25);
}

.auth-error {
  background: rgba(239, 68, 68, 0.08);
  color: var(--danger);
  border: 1px solid rgba(239,68,68,0.2);
  border-radius: 9px;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 500;
}

.auth-footer {
  text-align: center;
  font-size: 13.5px;
  color: var(--text-secondary);
  margin-top: 24px;
}

.auth-footer a {
  color: var(--primary);
  font-weight: 700;
  text-decoration: none;
}

.auth-footer a:hover { text-decoration: underline; }

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 4px 0;
  color: var(--text-tertiary);
  font-size: 12px;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* Responsive */
@media (max-width: 768px) {
  .auth-root { grid-template-columns: 1fr; }
  .auth-left { display: none; }
  .auth-right { padding: 32px 24px; align-items: flex-start; padding-top: 60px; }
}
