.auth-page {
  font-family: "Inter", "Nunito", sans-serif;
  min-height: calc(100vh - 80px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 20px 48px;
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 40%);
}

.auth-card {
  width: 100%;
  max-width: 440px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 20px;
  padding: 32px 28px 28px;
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.06);
}

.auth-card h1 {
  margin: 0 0 8px;
  font-size: 1.65rem;
  font-weight: 900;
  color: #0f172a;
}

.auth-card .auth-lead {
  margin: 0 0 24px;
  color: #475569;
  font-size: 0.95rem;
  line-height: 1.55;
}

.auth-banner {
  background: #fff7ed;
  border: 1px solid #fed7aa;
  color: #9a3412;
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 20px;
}

.auth-field {
  margin-bottom: 14px;
}

.auth-field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: #334155;
  margin-bottom: 6px;
}

.auth-field input[type="text"],
.auth-field input[type="password"],
.auth-field input[type="number"] {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #d0d7de;
  font-size: 1rem;
}

.auth-role-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 20px;
}

.auth-role-option {
  position: relative;
}

.auth-role-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.auth-role-card {
  display: block;
  border: 2px solid #e5e7eb;
  border-radius: 14px;
  padding: 14px 12px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  text-align: center;
}

.auth-role-option input:checked + .auth-role-card {
  border-color: #ea580c;
  background: #fff7ed;
}

.auth-role-card strong {
  display: block;
  font-size: 0.95rem;
  color: #0f172a;
  margin-bottom: 4px;
}

.auth-role-card span {
  font-size: 0.78rem;
  color: #64748b;
  line-height: 1.4;
}

.auth-child-fields {
  margin-bottom: 8px;
}

.auth-child-fields[hidden] {
  display: none !important;
}

.auth-submit {
  width: 100%;
  margin-top: 8px;
  padding: 12px 16px;
  border: none;
  border-radius: 10px;
  background: #2563eb;
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
}

.auth-submit:hover {
  background: #1d4ed8;
}

.auth-divider {
  text-align: center;
  color: #94a3b8;
  font-size: 0.88rem;
  margin: 18px 0 14px;
}

.auth-google {
  display: flex;
  width: 100%;
  justify-content: center;
  text-decoration: none;
  box-sizing: border-box;
}

.auth-footer {
  text-align: center;
  margin-top: 22px;
  font-size: 0.92rem;
  color: #64748b;
}

.auth-footer a {
  color: #ea580c;
  font-weight: 700;
  text-decoration: none;
}

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

.auth-page-error {
  color: #dc2626;
  font-size: 0.88rem;
  margin-top: 10px;
  display: none;
}

.auth-page-error.visible {
  display: block;
}

.auth-topbar-guest {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.auth-top-link {
  font-size: 0.9rem;
  font-weight: 700;
  color: #334155;
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 8px;
}

.auth-top-link:hover {
  background: #f1f5f9;
}

.auth-top-link--accent {
  background: #ea580c;
  color: #fff;
}

.auth-top-link--accent:hover {
  background: #c2410c;
  color: #fff;
}

@media (max-width: 480px) {
  .auth-role-grid {
    grid-template-columns: 1fr;
  }
}
