/* =========================
   RESET / BASE
========================= */

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI",
    Roboto, Oxygen, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  background: radial-gradient(1200px 600px at 50% -200px, #1e293b, #020617);
  color: #e5e7eb;
}

/* =========================
   LAYOUT
========================= */

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

.auth-card {
  width: 100%;
  max-width: 420px;
  background: rgba(15, 23, 42, 0.92);
  border-radius: 18px;
  padding: 34px;
  box-shadow:
    0 30px 60px rgba(0, 0, 0, 0.65),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

/* =========================
   TEXT
========================= */

.auth-title {
  margin: 0 0 10px;
  font-size: 30px;
  font-weight: 700;
  text-align: center;
  letter-spacing: 0.2px;
}

.auth-subtitle {
  margin: 0 0 26px;
  font-size: 14px;
  line-height: 1.45;
  color: #9ca3af;
  text-align: center;
}

/* =========================
   SOCIAL AUTH
========================= */

.social-auth {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.btn-social {
  height: 46px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.15s ease;
}

.btn-social.google {
  background: #ffffff;
  color: #020617;
}

.btn-social.google:hover {
  background: #f3f4f6;
  transform: translateY(-1px);
}

/* =========================
   DIVIDER
========================= */

.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 22px 0;
  font-size: 13px;
  color: #6b7280;
}

.divider::before,
.divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #1f2937;
}

/* =========================
   FORM
========================= */

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

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

.label {
  font-size: 13px;
  color: #9ca3af;
}

.input {
  height: 46px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid #1f2937;
  background: #020617;
  color: #e5e7eb;
  font-size: 14px;
}

.input::placeholder {
  color: #4b5563;
}

.input:focus {
  outline: none;
  border-color: #38bdf8;
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.45);
}

/* =========================
   PRIMARY BUTTON
========================= */

.btn-primary {
  margin-top: 8px;
  height: 48px;
  border-radius: 14px;
  border: none;
  background: linear-gradient(135deg, #38bdf8, #0ea5e9);
  color: #020617;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: transform 0.1s ease, box-shadow 0.1s ease;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(56, 189, 248, 0.35);
}

/* =========================
   FOOTER
========================= */

.auth-footer {
  margin-top: 22px;
  font-size: 13px;
  text-align: center;
  color: #9ca3af;
}

.auth-footer a {
  color: #38bdf8;
  text-decoration: none;
  font-weight: 600;
}

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

/* =========================
   MOBILE
========================= */

@media (max-width: 480px) {
  .auth-card {
    padding: 26px;
  }

  .auth-title {
    font-size: 26px;
  }
}
/* =========================
   EMAIL FALLBACK
========================= */

.email-fallback {
  margin-top: 20px;
}

.email-fallback summary {
  cursor: pointer;
  font-size: 13px;
  color: #9ca3af;
  text-align: center;
  margin-bottom: 12px;
}

.email-fallback summary:hover {
  color: #38bdf8;
}

.email-fallback[open] summary {
  margin-bottom: 16px;
}
