/* ============================================================
   NumanOS — Auth (sign-in) styles. Reuses variables from style.css.
   ============================================================ */
.auth-body {
  font-family: 'Manrope', 'Inter', ui-sans-serif, system-ui, sans-serif;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  position: relative;
  overflow: hidden;
}

.auth-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(700px circle at 15% 20%, rgba(17, 24, 39, 0.12), transparent 45%),
    radial-gradient(600px circle at 85% 80%, rgba(195, 154, 78, 0.10), transparent 45%),
    var(--bg-dark);
}

.auth-card {
  width: 100%;
  max-width: 430px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  box-shadow: var(--shadow-lg);
  animation: authIn 0.5s ease both;
}

@keyframes authIn {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

.auth-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-bottom: 18px;
}
.auth-back:hover { color: var(--primary); }

.auth-logo {
  display: inline-block;
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 18px;
}

.auth-card h1 {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}
.auth-sub {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-top: 4px;
  margin-bottom: 22px;
}

.auth-error {
  background: var(--danger-bg);
  border: 1px solid var(--danger-border);
  color: var(--danger);
  font-size: 0.85rem;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
}

.auth-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 7px;
}

.auth-field {
  position: relative;
  margin-bottom: 16px;
}
.auth-field > i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 0.9rem;
}
.auth-field input {
  width: 100%;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.92rem;
  padding: 12px 14px 12px 40px;
  transition: var(--transition);
}
.auth-field input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(17, 24, 39, 0.15);
}
.auth-eye {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 6px;
}
.auth-eye:hover { color: var(--text-primary); }

.auth-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  font-size: 0.84rem;
}
.auth-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
  cursor: pointer;
}
.auth-check input { accent-color: var(--primary); }
.auth-link { color: var(--primary); }
.auth-link:hover { color: var(--primary-light); }

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
  color: var(--text-muted);
  font-size: 0.75rem;
}
.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border-light);
}

.auth-mfa {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
  color: var(--text-secondary);
  font-size: 0.8rem;
}
.auth-mfa i { color: #22c55e; }

.auth-note {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.76rem;
  margin-top: 12px;
}

.btn-google {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  color: var(--text-primary);
}
.btn-google:hover { border-color: var(--text-muted); }

/* MFA setup box (settings) */
.mfa-secret {
  font-family: monospace;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  word-break: break-all;
  color: var(--primary-light);
}

/* ============================================================
   PREMIUM POLISH — auth
   ============================================================ */
.auth-bg {
  background:
    radial-gradient(900px circle at 12% 12%, rgba(17, 24, 39, 0.10), transparent 42%),
    radial-gradient(760px circle at 88% 88%, rgba(195, 154, 78, 0.13), transparent 45%),
    linear-gradient(180deg, #fbfbfc, #f3f4f6);
}

.auth-card {
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.auth-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-accent);
}

/* Gold focus ring to match the brand accent */
.auth-field input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(195, 154, 78, 0.15);
}
