@import url("https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=Plus+Jakarta+Sans:wght@400;500;600&display=swap");

:root {
  --auth-bg: #0f172a;
  --auth-card: #ffffff;
  --auth-ink: #0f172a;
  --auth-muted: #64748b;
  --auth-accent: #f97316;
  --auth-accent-2: #ef4444;
  --auth-line: #e2e8f0;
  --auth-shadow: 0 20px 60px rgba(15, 23, 42, 0.2);
}

* {
  box-sizing: border-box;
}

html,
body.auth-page {
  margin: 0;
  min-height: 100vh;
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
  color: var(--auth-ink);
  background: radial-gradient(circle at top left, #1f2937 0%, #0f172a 55%, #0b1020 100%);
  position: relative;
  overflow-x: hidden;
  width: 100%;
}

#google-signin {
  width: 100%;
  display: flex;
  justify-content: center;
}

#google-signin iframe {
  display: block;
  max-width: 100% !important;
}

body.auth-page::before,
body.auth-page::after {
  content: "";
  position: absolute;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  filter: blur(0);
  opacity: 0.2;
  z-index: 0;
}

body.auth-page::before {
  background: radial-gradient(circle, #f97316 0%, transparent 70%);
  top: -180px;
  left: -120px;
}

body.auth-page::after {
  background: radial-gradient(circle, #38bdf8 0%, transparent 70%);
  bottom: -200px;
  right: -120px;
}

.auth-shell {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 48px 20px;
  width: 100%;
}

.auth-card {
  width: min(520px, 92vw);
  background: var(--auth-card);
  border-radius: 20px;
  padding: 32px;
  box-shadow: var(--auth-shadow);
  border: 1px solid rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(6px);
}

.auth-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: rgba(249, 115, 22, 0.12);
  color: #c2410c;
}

.auth-logo {
  display: flex;
  justify-content: center;
  margin: 18px 0 8px;
}

.auth-logo img {
  height: 48px;
  width: auto;
  display: block;
  filter: drop-shadow(0 6px 18px rgba(15, 23, 42, 0.2));
}

.auth-title {
  font-family: "Space Grotesk", "Plus Jakarta Sans", sans-serif;
  font-size: 1.9rem;
  margin: 16px 0 6px;
  text-align: center;
}

.auth-subtitle {
  margin: 0 0 24px;
  color: var(--auth-muted);
  font-size: 0.98rem;
  text-align: center;
}

.auth-form {
  display: grid;
  gap: 16px;
}

.auth-field {
  display: grid;
  gap: 8px;
}

.auth-field label {
  font-weight: 600;
  font-size: 0.95rem;
}

.auth-input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--auth-line);
  background: #f8fafc;
  font-size: 0.98rem;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

.auth-input:focus {
  outline: none;
  border-color: #f97316;
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.2);
  background: #fff;
}

.auth-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.auth-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.92rem;
  color: var(--auth-muted);
}

.auth-actions {
  margin-top: 6px;
}

.auth-social {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 12px 0 16px;
  color: var(--auth-muted);
  font-size: 0.85rem;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--auth-line);
}

.auth-button {
  width: 100%;
  padding: 12px 16px;
  border-radius: 12px;
  border: none;
  background: linear-gradient(135deg, #f97316, #ef4444);
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.auth-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.auth-button:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 12px 20px rgba(249, 115, 22, 0.25);
}

.auth-links {
  margin-top: 20px;
  display: grid;
  gap: 8px;
  color: var(--auth-muted);
  font-size: 0.92rem;
  text-align: center;
}

.auth-links a {
  color: #0f172a;
  font-weight: 600;
  text-decoration: none;
}

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

.auth-alert {
  margin: 12px 0 0;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid #fca5a5;
  background: #fef2f2;
  color: #991b1b;
  font-size: 0.92rem;
}

.field-msg {
  display: none;
  margin: 4px 0 0;
  font-size: 0.85rem;
  color: #991b1b;
}

.field-msg.ok {
  color: #065f46;
}

.field-msg.show {
  display: block;
}

@media (max-width: 540px) {
  .auth-card {
    padding: 26px 20px;
  }
  .auth-title {
    font-size: 1.6rem;
  }
}
