*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; background: #f1f5f9; min-height: 100vh; display: flex; align-items: center; justify-content: center; color: #1e293b; }
.auth-card { background: #fff; border-radius: 12px; box-shadow: 0 4px 24px rgba(0,0,0,.08); padding: 40px 36px; width: 100%; max-width: 400px; }
.auth-logo { font-size: 22px; font-weight: 800; color: #6366f1; letter-spacing: -0.5px; margin-bottom: 8px; }
.auth-title { font-size: 18px; font-weight: 700; color: #0f172a; margin-bottom: 6px; }
.auth-sub { font-size: 13px; color: #64748b; margin-bottom: 28px; }
.auth-field { margin-bottom: 16px; }
.auth-field label { display: block; font-size: 12px; font-weight: 600; color: #475569; margin-bottom: 6px; }
.auth-field input { width: 100%; padding: 10px 12px; border: 1px solid #cbd5e1; border-radius: 8px; font-size: 14px; color: #0f172a; outline: none; transition: border-color .15s; }
.auth-field input:focus { border-color: #6366f1; box-shadow: 0 0 0 3px #e0e7ff; }
.auth-btn { width: 100%; padding: 11px; border: none; border-radius: 8px; font-size: 14px; font-weight: 700; cursor: pointer; transition: opacity .15s; }
.auth-btn-primary { background: #6366f1; color: #fff; margin-bottom: 10px; }
.auth-btn-primary:hover { opacity: .88; }
.auth-btn-passkey { background: #f8fafc; color: #374151; border: 1px solid #e2e8f0; display: flex; align-items: center; justify-content: center; gap: 8px; }
.auth-btn-passkey:hover { background: #f1f5f9; }
.auth-divider { display: flex; align-items: center; gap: 10px; margin: 16px 0; color: #94a3b8; font-size: 12px; }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: #e2e8f0; }
.auth-footer { margin-top: 20px; text-align: center; font-size: 13px; color: #64748b; }
.auth-footer a { color: #6366f1; text-decoration: none; font-weight: 600; }
.auth-footer a:hover { text-decoration: underline; }
.auth-error { background: #fef2f2; border: 1px solid #fecaca; color: #dc2626; padding: 10px 12px; border-radius: 8px; font-size: 13px; margin-bottom: 16px; display: none; }
.auth-error.show { display: block; }
.auth-success { background: #f0fdf4; border: 1px solid #bbf7d0; color: #16a34a; padding: 10px 12px; border-radius: 8px; font-size: 13px; margin-bottom: 16px; display: none; }
.auth-success.show { display: block; }
.passkey-remember-wrap { margin-top: 10px; }
.passkey-remember-label { display: flex; align-items: center; justify-content: space-between; font-size: 13px; color: #64748b; cursor: pointer; user-select: none; }
.toggle-switch { position: relative; display: inline-block; width: 36px; height: 20px; flex-shrink: 0; }
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-slider { position: absolute; inset: 0; background: #cbd5e1; border-radius: 20px; transition: background .2s; }
.toggle-slider::before { content: ''; position: absolute; left: 2px; top: 2px; width: 16px; height: 16px; background: #fff; border-radius: 50%; transition: transform .2s; }
.toggle-switch input:checked + .toggle-slider { background: #6366f1; }
.toggle-switch input:checked + .toggle-slider::before { transform: translateX(16px); }
.passkey-offer-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.4);
  display: flex; align-items: center; justify-content: center;
  z-index: 1000;
}
.passkey-offer-card {
  background: #fff; border-radius: 16px;
  padding: 28px 24px; width: calc(100% - 48px); max-width: 320px;
  text-align: center;
}
.passkey-offer-icon { font-size: 36px; margin-bottom: 12px; }
.passkey-offer-title { font-size: 17px; font-weight: 600; color: #1e293b; margin-bottom: 8px; }
.passkey-offer-desc { font-size: 14px; color: #64748b; line-height: 1.5; margin-bottom: 24px; }
.passkey-offer-btn-primary {
  width: 100%; padding: 12px;
  background: #4f46e5; color: #fff;
  border: none; border-radius: 8px;
  font-size: 15px; font-weight: 500; cursor: pointer; margin-bottom: 12px;
}
.passkey-offer-btn-skip {
  background: none; border: none;
  color: #94a3b8; font-size: 14px; cursor: pointer;
}
