* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f6f8fb;
  color: #172033;
}

body {
  min-height: 100vh;
}

.flash {
  margin: 0;
  padding: 12px 16px;
  font-size: 14px;
}

.flash-notice {
  background: #e8f5e9;
  color: #1b5e20;
}

.flash-alert {
  background: #ffebee;
  color: #b71c1c;
}

.auth-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  background:
    radial-gradient(circle at top left, rgba(47, 111, 237, 0.18), transparent 32%),
    linear-gradient(135deg, #f8fbff 0%, #eef4ff 45%, #f7fafc 100%);
}

.auth-panel {
  padding: 56px;
}

.auth-panel--brand {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 24px;
}

.brand-badge {
  display: inline-flex;
  width: fit-content;
  padding: 8px 14px;
  border-radius: 999px;
  background: #dbeafe;
  color: #1d4ed8;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.auth-panel--brand h1 {
  margin: 0;
  font-size: clamp(2.2rem, 4vw, 4rem);
  line-height: 1.05;
  max-width: 620px;
}

.auth-panel--brand p {
  margin: 0;
  max-width: 560px;
  font-size: 1.05rem;
  line-height: 1.7;
  color: #475569;
}

.auth-highlights {
  display: grid;
  gap: 16px;
  max-width: 580px;
}

.auth-highlight {
  padding: 18px 20px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(203, 213, 225, 0.9);
  backdrop-filter: blur(6px);
}

.auth-highlight strong {
  display: block;
  margin-bottom: 6px;
}

.auth-highlight span {
  color: #475569;
}

.auth-panel--form {
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-card {
  width: min(100%, 460px);
  padding: 36px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid #e2e8f0;
  box-shadow: 0 24px 64px rgba(15, 23, 42, 0.10);
}

.auth-eyebrow {
  margin: 0 0 10px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #2563eb;
}

.auth-card h2 {
  margin: 0;
  font-size: 2rem;
}

.auth-subtitle {
  margin: 10px 0 28px;
  color: #64748b;
  line-height: 1.6;
}

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

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

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

.auth-input {
  width: 100%;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid #cbd5e1;
  background: #fff;
  font-size: 1rem;
  color: #172033;
}

.auth-input:focus {
  outline: none;
  border-color: #2f6fed;
  box-shadow: 0 0 0 4px rgba(47, 111, 237, 0.14);
}

.auth-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.auth-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #475569;
  font-size: 0.95rem;
}

.auth-button {
  width: 100%;
  border: 0;
  border-radius: 14px;
  padding: 14px 18px;
  background: linear-gradient(135deg, #2f6fed 0%, #1d4ed8 100%);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 14px 30px rgba(37, 99, 235, 0.24);
}

.auth-button:hover {
  filter: brightness(1.03);
}

.auth-links {
  margin-top: 20px;
}

.auth-link {
  color: #2563eb;
  text-decoration: none;
  font-weight: 600;
}

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

  .auth-panel {
    padding: 28px;
  }

  .auth-panel--brand {
    padding-bottom: 8px;
  }
}
