:root {
  --auth-bg: #eef5f8;
  --auth-panel: #ffffff;
  --auth-text: #172033;
  --auth-muted: #64748b;
  --auth-primary: #0b6f8f;
  --auth-primary-dark: #075672;
  --auth-border: #dbe4ee;
  --auth-shadow: 0 24px 80px rgba(15, 23, 42, 0.16);
}

html,
body {
  min-height: 100%;
}

body.auth-page {
  margin: 0;
  background: linear-gradient(135deg, rgba(11, 111, 143, 0.96), rgba(12, 149, 170, 0.78));
  background-color: var(--auth-bg);
  color: var(--auth-text);
  font-family: "Nunito", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.auth-shell {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 2rem 1rem;
}

.auth-panel {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(320px, 1fr);
  width: min(920px, 100%);
  overflow: hidden;
  border-radius: 8px;
  background: var(--auth-panel);
  box-shadow: var(--auth-shadow);
}

.auth-brand {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 520px;
  padding: 2rem;
  background: linear-gradient(180deg, #073f54 0%, #0b6f8f 100%);
  color: #fff;
}

.auth-logo {
  width: 150px;
  max-width: 100%;
  border-radius: 6px;
  background: #fff;
  padding: 0.55rem;
}

.auth-brand h1 {
  margin: 2.5rem 0 0.75rem;
  font-size: 2rem;
  font-weight: 900;
  line-height: 1.12;
}

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

.auth-meta {
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.85rem;
}

.auth-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2rem, 5vw, 3.25rem);
}

.auth-kicker {
  margin-bottom: 0.5rem;
  color: var(--auth-primary);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0;
}

.auth-card h2 {
  margin: 0 0 0.75rem;
  color: var(--auth-text);
  font-size: clamp(1.65rem, 4vw, 2.25rem);
  font-weight: 900;
}

.auth-card p {
  margin: 0 0 1.5rem;
  color: var(--auth-muted);
}

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

.auth-field label {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--auth-text);
  font-size: 0.9rem;
  font-weight: 800;
}

.auth-field input {
  width: 100%;
  height: 3.15rem;
  border: 1px solid var(--auth-border);
  border-radius: 6px;
  padding: 0 0.95rem;
  color: var(--auth-text);
  font-size: 1rem;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.auth-field input:focus {
  border-color: var(--auth-primary);
  box-shadow: 0 0 0 0.18rem rgba(11, 111, 143, 0.15);
}

.auth-submit,
.auth-link-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.15rem;
  border: 1px solid var(--auth-primary);
  border-radius: 6px;
  background: var(--auth-primary);
  color: #fff;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.auth-submit:hover,
.auth-submit:focus,
.auth-link-button:hover,
.auth-link-button:focus {
  background: var(--auth-primary-dark);
  border-color: var(--auth-primary-dark);
  color: #fff;
  text-decoration: none;
}

.auth-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.25rem;
  color: var(--auth-muted);
  font-size: 0.92rem;
}

.auth-footer a,
.auth-inline-link {
  color: var(--auth-primary);
  font-weight: 800;
}

.auth-alert {
  border-radius: 6px;
  padding: 0.85rem 1rem;
  margin-bottom: 1.2rem;
  border: 1px solid var(--auth-border);
  background: #f8fafc;
  color: var(--auth-text);
}

.auth-alert-danger {
  border-color: rgba(217, 76, 76, 0.32);
  background: #fff1f1;
}

.auth-alert-success {
  border-color: rgba(31, 157, 115, 0.32);
  background: #effaf6;
}

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

  .auth-brand {
    min-height: auto;
    gap: 1.4rem;
  }

  .auth-brand h1 {
    margin-top: 1.5rem;
    font-size: 1.65rem;
  }
}
