/* ═══════════════════════════════════════════════
   SENSOR — Auth Pages Styles
   ═══════════════════════════════════════════════ */

:root {
  --bg-page: #F9FAFB;
  --bg-card: #FFFFFF;
  --bg-hover: #F9FAFB;
  --bg-muted: #F3F4F6;

  --text-primary: #111827;
  --text-secondary: #374151;
  --text-tertiary: #6B7280;
  --text-muted: #9CA3AF;
  --text-placeholder: #D1D5DB;

  --brand: #0E7490;
  --brand-subtle: #155E75;
  --brand-muted: rgba(14,116,144,0.08);
  --brand-cyan-light: #F0FDFA;

  --accent: #D97706;

  --success: #059669;
  --success-bg: #ECFDF5;
  --warning: #D97706;
  --warning-bg: #FFFBEB;
  --danger: #DC2626;
  --danger-bg: #FEF2F2;

  --border: #E5E7EB;
  --border-strong: #D1D5DB;
  --radius: 8px;
  --radius-sm: 6px;

  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --font-heading: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 14px; -webkit-font-smoothing: antialiased; }
body {
  font-family: var(--font-body);
  color: var(--text-secondary);
  line-height: 1.5;
  min-height: 100vh;
}
a { text-decoration: none; color: inherit; }

/* ───── AUTH LAYOUT ───── */
.auth-layout { display: flex; min-height: 100vh; }
.auth-left {
  flex: 1; display: flex; align-items: center; justify-content: center;
  padding: 48px 32px; background: var(--bg-card);
}
.auth-right {
  flex: 1; background: var(--brand-cyan-light);
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}
@media (max-width: 767px) {
  .auth-right { display: none; }
  .auth-left { padding: 32px 20px; }
}

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

/* ───── LOGO ───── */
.auth-logo {
  display: flex; align-items: center; gap: 8px; margin-bottom: 32px;
  font-family: var(--font-heading); font-weight: 700; font-size: 16px;
  color: var(--brand-subtle); letter-spacing: -0.02em;
}
.auth-logo svg { width: 24px; height: 24px; }

/* ───── BADGE ───── */
.trial-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 14px; border-radius: 20px;
  background: var(--brand-muted); color: var(--brand);
  font-size: 13px; font-weight: 500; margin-bottom: 16px;
}

/* ───── HEADINGS ───── */
.auth-title {
  font-family: var(--font-heading); font-size: 24px; font-weight: 700;
  color: var(--text-primary); margin-bottom: 28px; letter-spacing: -0.02em;
}
.auth-subtitle {
  font-size: 14px; color: var(--text-tertiary); margin-bottom: 28px;
}

/* ───── OAUTH BUTTONS ───── */
.oauth-stack { display: flex; flex-direction: column; gap: 8px; margin-bottom: 24px; }
.btn-oauth {
  display: flex; align-items: center; justify-content: center;
  gap: 12px; width: 100%; padding: 12px 24px; border-radius: 8px;
  font-size: 15px; font-weight: 500; cursor: pointer;
  transition: all 150ms ease; font-family: var(--font-body);
}
.btn-oauth svg { width: 20px; height: 20px; flex-shrink: 0; }
.btn-oauth-google { background: white; color: #1F1F1F; border: 1.5px solid #747775; }
.btn-oauth-google:hover { background: #F8F9FA; border-color: #1F1F1F; }
.btn-oauth-microsoft { background: white; color: #1F1F1F; border: 1.5px solid #8C8C8C; }
.btn-oauth-microsoft:hover { background: #F8F9FA; border-color: #1F1F1F; }
.btn-oauth-linkedin { background: #0A66C2; color: white; border: 1.5px solid #0A66C2; }
.btn-oauth-linkedin:hover { background: #004182; }
.btn-oauth[disabled] { opacity: 0.5; cursor: not-allowed; }
.btn-oauth[disabled]:hover { background: inherit; border-color: inherit; }

/* ───── DIVIDER ───── */
.divider { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; }
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.divider span { font-size: 13px; color: var(--text-muted); }

/* ───── FORM ───── */
.form-group { margin-bottom: 20px; }
.form-label {
  display: block; font-size: 13px; font-weight: 500;
  color: var(--text-primary); margin-bottom: 6px;
}
.form-input {
  width: 100%; padding: 12px 16px;
  border: 1.5px solid var(--border); border-radius: 8px;
  font-size: 14px; font-family: var(--font-body);
  color: var(--text-primary); background: var(--bg-card);
  transition: border-color 150ms ease; outline: none;
}
.form-input::placeholder { color: var(--text-placeholder); }
.form-input:focus { border-color: var(--brand); }
.form-input.error { border-color: var(--danger); }

.password-wrapper { position: relative; }
.password-wrapper .form-input { padding-right: 48px; }
.password-toggle {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  background: none; border: none; cursor: pointer;
  color: var(--text-muted); padding: 4px; display: flex; align-items: center;
}
.password-toggle:hover { color: var(--text-tertiary); }
.password-toggle svg { width: 18px; height: 18px; }

/* ───── PASSWORD STRENGTH ───── */
.password-strength { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.strength-track { flex: 1; height: 4px; border-radius: 2px; background: var(--bg-muted); overflow: hidden; }
.strength-fill {
  height: 100%; border-radius: 2px; width: 0%;
  background: var(--danger); transition: width 300ms ease, background 300ms ease;
}
.strength-label { font-size: 12px; font-weight: 500; color: var(--text-muted); }

/* ───── BUTTONS ───── */
.btn-primary {
  display: block; width: 100%; padding: 12px 24px;
  background: var(--brand); color: white; border: none;
  border-radius: 8px; font-size: 15px; font-weight: 600;
  font-family: var(--font-body); cursor: pointer;
  transition: background 150ms ease; margin-top: 24px;
}
.btn-primary:hover { background: var(--brand-subtle); }
.btn-primary:disabled { opacity: 0.6; cursor: not-allowed; }

.btn-ghost {
  display: block; width: 100%; padding: 12px 24px;
  background: transparent; color: var(--brand); border: 1.5px solid var(--border);
  border-radius: 8px; font-size: 15px; font-weight: 500;
  font-family: var(--font-body); cursor: pointer;
  transition: all 150ms ease;
}
.btn-ghost:hover { border-color: var(--brand); background: var(--brand-muted); }

/* ───── FOOTER / LINKS ───── */
.auth-footer { margin-top: 24px; text-align: center; }
.auth-footer p { font-size: 13px; color: var(--text-tertiary); }
.auth-footer a { color: var(--brand); font-weight: 500; }
.auth-footer a:hover { text-decoration: underline; }
.auth-legal { margin-top: 16px; font-size: 12px; color: var(--text-muted); text-align: center; }
.auth-legal a { color: var(--text-tertiary); text-decoration: underline; }

.forgot-link {
  display: inline-block; margin-top: 6px;
  font-size: 13px; color: var(--brand); font-weight: 500;
}
.forgot-link:hover { text-decoration: underline; }

.back-link {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 24px; font-size: 13px; color: var(--brand); font-weight: 500;
}
.back-link:hover { text-decoration: underline; }

/* ───── ERROR MESSAGE ───── */
.form-error {
  background: var(--danger-bg); color: var(--danger);
  padding: 10px 14px; border-radius: var(--radius-sm);
  font-size: 13px; font-weight: 500; margin-bottom: 20px;
  display: flex; align-items: center; gap: 8px;
}
.form-success {
  background: var(--success-bg); color: var(--success);
  padding: 10px 14px; border-radius: var(--radius-sm);
  font-size: 13px; font-weight: 500; margin-bottom: 20px;
}

/* ───── VERIFY PAGE ───── */
.verify-icon {
  display: flex; align-items: center; justify-content: center;
  width: 80px; height: 80px; margin: 0 auto 28px;
}
.verify-icon svg { width: 80px; height: 80px; }
.verify-text {
  font-size: 14px; color: var(--text-tertiary); margin-bottom: 32px; line-height: 1.6;
}
.verify-text strong { color: var(--text-primary); }
.change-email-link {
  display: inline-block; margin-top: 20px;
  font-size: 13px; color: var(--brand); font-weight: 500;
}
.change-email-link:hover { text-decoration: underline; }

/* ───── FORGOT PASSWORD STATES ───── */
.state { display: none; }
.state.active { display: block; animation: fadeIn 300ms ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

.success-icon {
  display: flex; align-items: center; justify-content: center;
  width: 64px; height: 64px; margin: 0 auto 24px;
}
.success-icon svg { width: 64px; height: 64px; }
.success-title {
  font-family: var(--font-heading); font-size: 24px; font-weight: 700;
  color: var(--text-primary); margin-bottom: 8px; letter-spacing: -0.02em;
  text-align: center;
}
.success-text {
  font-size: 14px; color: var(--text-tertiary); text-align: center; margin-bottom: 28px;
}
.success-text strong { color: var(--text-primary); }

/* ───── DECORATION ───── */
.deco-pattern { width: 100%; height: 100%; position: absolute; inset: 0; }
