/* ================================
   Global Layout
   ================================ */

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

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
    "Segoe UI", sans-serif;
}

body {
  color: #f9fafb;
  background: radial-gradient(circle at top, #1f2937 0, #020617 50%, #000 100%);
}

/* Full page center */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

/* Card */
.auth-card {
  width: 100%;
  max-width: 480px;
  padding: 32px 28px 28px;
  border-radius: 20px;
  background: radial-gradient(circle at top left, #111827 0, #020617 52%, #020617 100%);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.75);
  border: 1px solid rgba(148, 163, 184, 0.12);
}

/* Header */
.auth-header h1 {
  margin: 0 0 6px;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.auth-header p {
  margin: 0;
  font-size: 14px;
  color: #9ca3af;
}

/* Form */
.auth-form {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.auth-label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  color: #e5e7eb;
}

.auth-label span {
  font-weight: 500;
}

.auth-label input {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #374151;
  background: rgba(15, 23, 42, 0.9);
  color: #f9fafb;
  font-size: 14px;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease,
    background-color 0.15s ease;
}

.auth-label input::placeholder {
  color: #6b7280;
}

.auth-label input:focus {
  border-color: #4f46e5;
  box-shadow: 0 0 0 1px rgba(79, 70, 229, 0.7);
  background: rgba(15, 23, 42, 1);
}

/* Buttons */
.auth-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.15s ease, transform 0.05s ease,
    box-shadow 0.15s ease, border-color 0.15s ease;
}

/* Primary login button */
.auth-btn.primary {
  margin-top: 8px;
  background: linear-gradient(135deg, #4f46e5, #6366f1);
  color: #f9fafb;
  box-shadow: 0 12px 30px rgba(79, 70, 229, 0.4);
}

.auth-btn.primary:hover {
  background: linear-gradient(135deg, #4338ca, #4f46e5);
  transform: translateY(-1px);
  box-shadow: 0 16px 40px rgba(79, 70, 229, 0.55);
}

.auth-btn.primary:active {
  transform: translateY(0);
  box-shadow: 0 8px 20px rgba(79, 70, 229, 0.35);
}

/* Secondary SSO buttons */
.auth-btn.secondary {
  background: rgba(15, 23, 42, 0.95);
  color: #e5e7eb;
  border-color: #4b5563;
}

.auth-btn.secondary:hover {
  background: rgba(31, 41, 55, 0.95);
  border-color: #6b7280;
}

.auth-btn.secondary:active {
  background: rgba(17, 24, 39, 0.98);
}

/* Divider */
.auth-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 20px 0 14px;
  font-size: 13px;
  color: #6b7280;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  height: 1px;
  flex: 1;
  background: linear-gradient(
    to right,
    transparent,
    rgba(75, 85, 99, 0.7),
    transparent
  );
}

/* SSO group */
.sso-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Footer */
.auth-footer {
  margin-top: 20px;
  font-size: 13px;
  color: #9ca3af;
}

.auth-footer-row {
  margin: 4px 0;
}

.auth-footer a {
  color: #818cf8;
  text-decoration: none;
  font-weight: 500;
}

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

/* Status line */
.auth-status {
  margin-top: 12px;
  margin-bottom: 0;
  min-height: 18px;
  font-size: 13px;
  color: #f97373;
}

/* Responsive */
@media (max-width: 600px) {
  .auth-card {
    padding: 24px 20px 20px;
    border-radius: 16px;
  }

  .auth-header h1 {
    font-size: 22px;
  }
}
