/* ============================================================
   SEO Fury — Auth Pages (Login, Register, Forgot, Reset)
   ============================================================ */

.sf-auth-root {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.sf-auth-bg {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f0f4ff 0%, #faf5ff 50%, #fff1f2 100%);
  padding: 24px;
}

.sf-auth-container {
  width: 100%;
  max-width: 440px;
}

/* Logo */
.sf-auth-logo {
  text-align: center;
  margin-bottom: 32px;
}
.sf-auth-logo img {
  height: 40px;
  width: auto;
}
.sf-auth-logo span {
  font-size: 28px;
  font-weight: 800;
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Card */
.sf-auth-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 40px;
  box-shadow:
    0 1px 3px rgba(0, 0, 0, 0.04),
    0 6px 24px rgba(0, 0, 0, 0.06),
    0 16px 48px rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(226, 232, 240, 0.6);
}

/* Title */
.sf-auth-title {
  font-size: 24px;
  font-weight: 700;
  color: #111827;
  margin: 0 0 6px;
  text-align: center;
  letter-spacing: -0.02em;
}

.sf-auth-subtitle {
  font-size: 14px;
  color: #64748b;
  margin: 0 0 28px;
  text-align: center;
}

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

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

.sf-auth-field label {
  font-size: 13px;
  font-weight: 600;
  color: #374151;
  letter-spacing: 0.01em;
}

.sf-auth-field-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.sf-auth-link-sm {
  font-size: 13px;
  color: #6366f1;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.15s;
}
.sf-auth-link-sm:hover {
  color: #4f46e5;
}

.sf-auth-field input {
  display: block;
  width: 100%;
  padding: 12px 16px;
  font-size: 15px;
  font-family: inherit;
  color: #1e293b;
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  transition: all 0.2s ease;
  box-sizing: border-box;
  outline: none;
}
.sf-auth-field input:focus {
  background: #fff;
  border-color: #6366f1;
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}
.sf-auth-field input::placeholder {
  color: #94a3b8;
}

/* Row (for name fields) */
.sf-auth-row {
  display: flex;
  gap: 12px;
}

/* Button */
.sf-auth-btn {
  display: block;
  width: 100%;
  padding: 13px 24px;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  color: #ffffff;
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  letter-spacing: 0.01em;
  margin-top: 4px;
}
.sf-auth-btn:hover {
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.35);
  transform: translateY(-1px);
}
.sf-auth-btn:active {
  transform: translateY(0);
}
.sf-auth-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Divider */
.sf-auth-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 24px 0;
  color: #94a3b8;
  font-size: 13px;
}
.sf-auth-divider::before,
.sf-auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #e2e8f0;
}

/* Switch link */
.sf-auth-switch {
  text-align: center;
  font-size: 14px;
  color: #64748b;
  margin: 0;
}
.sf-auth-switch a {
  color: #6366f1;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.15s;
}
.sf-auth-switch a:hover {
  color: #4f46e5;
}

/* Alerts */
.sf-auth-alert {
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 14px;
  margin-bottom: 4px;
  line-height: 1.5;
}
.sf-auth-alert-error {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}
.sf-auth-alert-success {
  background: #f0fdf4;
  color: #166534;
  border: 1px solid #bbf7d0;
}

/* Footer */
.sf-auth-footer {
  text-align: center;
  margin-top: 32px;
}
.sf-auth-footer p {
  font-size: 13px;
  color: #94a3b8;
  margin: 0;
}

/* ─── Responsive ──────────────────────────────────── */
@media (max-width: 480px) {
  .sf-auth-card {
    padding: 28px 24px;
    border-radius: 12px;
  }
  .sf-auth-row {
    flex-direction: column;
    gap: 20px;
  }
  .sf-auth-title {
    font-size: 22px;
  }
}
