:root {
  --auth-bg-start: #152238;
  --auth-bg-end: #1a2b4b;
  --auth-primary: #2b63e1;
  --auth-primary-hover: #2456c7;
  --auth-navy-text: #0f2744;
  --auth-muted: #6b7280;
  --auth-border: #d1d5db;
  --auth-card-radius: 14px;
}

.auth-page {
  min-height: 100vh;
  margin: 0;
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  background: linear-gradient(160deg, var(--auth-bg-start) 0%, var(--auth-bg-end) 55%, #0f1a2e 100%);
  color: #1a1f2e;
}

.auth-topbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  padding: 1.1rem 1.5rem;
  z-index: 2;
}

.auth-topbar .brand-logo {
  height: 44px;
  width: auto;
  display: block;
}

.auth-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5.5rem 1.25rem 2.5rem;
  box-sizing: border-box;
}

.auth-card {
  width: 100%;
  max-width: 440px;
  background: #fff;
  border-radius: var(--auth-card-radius);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
  padding: 2rem 2rem 1.75rem;
  box-sizing: border-box;
}

.auth-card.auth-card-wide {
  max-width: 720px;
}

.auth-card h1 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--auth-navy-text);
  margin: 0 0 0.35rem;
  letter-spacing: -0.02em;
}

.auth-card .subtitle {
  font-size: 0.9rem;
  color: var(--auth-muted);
  margin: 0 0 1.35rem;
}

.auth-alert {
  font-size: 0.875rem;
  padding: 0.65rem 0.85rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

.auth-alert.auth-alert-info {
  background: #eff6ff;
  color: #1d4ed8;
  border-color: #bfdbfe;
}

.btn-google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  width: 100%;
  padding: 0.65rem 1rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: #374151;
  background: #fff;
  border: 1px solid var(--auth-border);
  border-radius: 8px;
  text-decoration: none;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.btn-google:hover {
  background: #f9fafb;
  border-color: #c4c9d1;
  color: #1f2937;
}

.btn-google svg {
  flex-shrink: 0;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1.25rem 0;
  color: #9ca3af;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #e5e7eb;
}

.auth-field {
  margin-bottom: 0.9rem;
}

.auth-field label {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  color: #374151;
  margin-bottom: 0.35rem;
}

.auth-field input[type="text"],
.auth-field input[type="email"],
.auth-field input[type="password"],
.auth-field input[type="date"],
.auth-field input[type="tel"],
.auth-field input[type="file"],
.auth-field textarea {
  width: 100%;
  padding: 0.55rem 0.75rem;
  font-size: 0.9rem;
  border: 1px solid var(--auth-border);
  border-radius: 8px;
  font-family: inherit;
  box-sizing: border-box;
}

.auth-field textarea {
  min-height: 72px;
  resize: vertical;
}

.auth-field input:focus,
.auth-field textarea:focus {
  outline: none;
  border-color: var(--auth-primary);
  box-shadow: 0 0 0 3px rgba(43, 99, 225, 0.15);
}

.btn-auth-primary {
  width: 100%;
  padding: 0.7rem 1rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  background: var(--auth-primary);
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-family: inherit;
  margin-top: 0.25rem;
  transition: background 0.15s ease;
}

.btn-auth-primary:hover {
  background: var(--auth-primary-hover);
}

.auth-links {
  text-align: center;
  margin-top: 1rem;
  font-size: 0.875rem;
}

.auth-links a {
  color: var(--auth-primary);
  text-decoration: none;
  font-weight: 500;
}

.auth-links a:hover {
  text-decoration: underline;
}

.auth-back {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 1.25rem;
  font-size: 0.875rem;
  color: var(--auth-primary);
  text-decoration: none;
  font-weight: 500;
}

.auth-back:hover {
  text-decoration: underline;
}

.auth-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 1rem;
}

@media (max-width: 600px) {
  .auth-grid-2 {
    grid-template-columns: 1fr;
  }

  .auth-card {
    padding: 1.5rem 1.25rem 1.35rem;
  }
}

.auth-span-2 {
  grid-column: 1 / -1;
}
