.auth-body {
  min-height: 100vh;
  background:
    linear-gradient(135deg, rgba(2, 132, 199, 0.12), rgba(22, 163, 74, 0.08)),
    #f4f8fb;
}

.auth-shell {
  display: grid;
  grid-template-columns: minmax(320px, 0.92fr) minmax(420px, 1fr);
  min-height: 100vh;
}

.auth-brand {
  position: relative;
  display: flex;
  min-height: 100%;
  align-items: flex-end;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(5, 24, 42, 0.88) 0%, rgba(3, 105, 161, 0.76) 58%, rgba(22, 163, 74, 0.45) 100%),
    url("../assets/images/hero.png") center / cover;
  color: #fff;
  padding: clamp(2rem, 5vw, 4.5rem);
}

.auth-brand-content {
  position: relative;
  z-index: 1;
  width: min(35rem, 100%);
}

.auth-logo {
  width: min(230px, 64vw);
  height: auto;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.94);
  padding: 0.55rem 0.7rem;
}

.auth-kicker,
.panel-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border-radius: 999px;
  background: rgba(14, 165, 233, 0.12);
  color: var(--skyB);
  padding: 0.42rem 0.72rem;
  font-size: 0.77rem;
  font-weight: 800;
  text-transform: uppercase;
}

.auth-brand .auth-kicker {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  backdrop-filter: blur(8px);
}

.auth-brand h1 {
  margin: 1.5rem 0 0;
  max-width: 13ch;
  color: #fff;
  font-size: clamp(2.3rem, 5vw, 4.3rem);
  line-height: 1;
}

.auth-brand p {
  margin: 1rem 0 0;
  max-width: 34rem;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.03rem;
}

.auth-main {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1.25rem, 4vw, 3.5rem);
}

.auth-panel {
  width: min(100%, 31rem);
  border: 1px solid rgba(216, 227, 236, 0.95);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow-md);
  padding: clamp(1.25rem, 4vw, 2.1rem);
}

.auth-panel h2 {
  margin: 0.85rem 0 0;
  color: var(--ink);
  font-size: clamp(1.8rem, 3vw, 2.35rem);
  line-height: 1.08;
}

.auth-panel > p {
  margin: 0.75rem 0 0;
  color: var(--muted);
}

.auth-form {
  display: grid;
  gap: 1rem;
  margin-top: 1.35rem;
}

.auth-field {
  display: grid;
  gap: 0.4rem;
}

.auth-field label,
.auth-choice strong {
  color: #29465f;
  font-size: 0.9rem;
  font-weight: 800;
}

.auth-field input,
.auth-field select {
  width: 100%;
  min-height: 48px;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--ink);
  padding: 0.8rem 0.9rem;
}

.auth-field input:focus,
.auth-field select:focus {
  border-color: var(--skyA);
  box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.12);
  outline: 0;
}

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

.auth-check {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: #37526a;
  font-size: 0.9rem;
  font-weight: 650;
}

.auth-check input {
  width: 18px;
  height: 18px;
  accent-color: var(--skyB);
}

.auth-link {
  color: var(--skyB);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.auth-actions {
  display: grid;
  gap: 0.72rem;
}

.auth-submit {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--skyA), var(--skyB));
  color: #fff;
  font-weight: 850;
  box-shadow: 0 14px 28px rgba(3, 105, 161, 0.25);
}

.auth-secondary {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(3, 105, 161, 0.22);
  border-radius: var(--radius-md);
  background: #fff;
  color: var(--skyB);
  font-weight: 800;
}

.auth-secondary.is-disabled,
.auth-link.is-disabled {
  cursor: not-allowed;
  opacity: 0.58;
  pointer-events: none;
}

.auth-note {
  border: 1px solid rgba(245, 158, 11, 0.32);
  border-radius: var(--radius-sm);
  background: rgba(255, 251, 235, 0.92);
  color: #7c4a03;
  padding: 0.82rem 0.9rem;
  font-size: 0.86rem;
  line-height: 1.45;
}

.auth-feedback {
  border-radius: var(--radius-sm);
  padding: 0.78rem 0.9rem;
  font-size: 0.9rem;
  font-weight: 750;
}

.auth-feedback[hidden] {
  display: none;
}

.auth-feedback.is-success {
  background: rgba(22, 163, 74, 0.12);
  color: #166534;
}

.auth-feedback.is-error {
  background: rgba(220, 38, 38, 0.1);
  color: #991b1b;
}

.auth-footer {
  margin-top: 1.15rem;
  color: var(--muted);
  font-size: 0.92rem;
  text-align: center;
}

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

  .auth-brand {
    min-height: 290px;
    align-items: center;
  }

  .auth-brand h1 {
    max-width: 14ch;
  }
}

@media (max-width: 520px) {
  .auth-main {
    padding: 1rem;
  }

  .auth-panel {
    border-radius: var(--radius-md);
  }

  .auth-row {
    align-items: flex-start;
    flex-direction: column;
  }
}
