:root {
  --teal: #008081;
  --sky-blue: #4FC3F7;
  --lavender: #BFACFE;
  --navy: #003366;
  --navy-light: #EEF3F8;
  --teal-light: #E0F4F4;
  --white: #ffffff;
  --ink: #172033;
  --muted: #566273;
  --border: #d9e2ea;
  --danger: #9f1d35;
  --success: #0b6b4f;
  --shadow: 0 18px 45px rgba(0, 51, 102, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Calibri, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, var(--navy-light), var(--white));
  line-height: 1.5;
}

.site-header,
.site-footer {
  padding: 1rem clamp(1rem, 4vw, 3rem);
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: var(--white);
  border-bottom: 1px solid var(--border);
}

.brand-main {
  font-family: Cambria, Georgia, serif;
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--teal);
  line-height: 1;
}

.brand-sub,
.header-note,
.form-intro,
.site-footer {
  color: var(--muted);
}

.page-shell {
  width: min(920px, calc(100% - 2rem));
  margin: 2rem auto 3rem;
}

.hero-panel,
.login-card {
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.hero-panel {
  background: linear-gradient(135deg, var(--teal), var(--navy));
  color: var(--white);
  padding: clamp(1.5rem, 5vw, 3rem);
}

.eyebrow {
  margin: 0 0 0.75rem;
  color: var(--teal-light);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  font-weight: 700;
}

h1,
h2,
h3 {
  font-family: Cambria, Georgia, serif;
  line-height: 1.1;
}

h1 {
  margin: 0;
  color: var(--white);
  font-size: clamp(2rem, 6vw, 3.5rem);
}

.hero-panel p:last-child {
  max-width: 760px;
  margin-bottom: 0;
  color: var(--navy-light);
}

.login-card {
  margin-top: 1.25rem;
  background: var(--white);
  border: 1px solid var(--border);
  padding: clamp(1.25rem, 4vw, 2rem);
}

h2,
h3 {
  color: var(--navy);
}

.field-group {
  margin-bottom: 1rem;
}

label {
  display: block;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.4rem;
}

input {
  width: 100%;
  min-height: 2.8rem;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 14px;
  font: inherit;
}

input:focus {
  outline: 3px solid rgba(79, 195, 247, 0.35);
  border-color: var(--teal);
}

button {
  border: 0;
  border-radius: 999px;
  padding: 0.85rem 1.1rem;
  font-weight: 800;
  cursor: pointer;
}

.primary-button {
  width: 100%;
  background: var(--teal);
  color: var(--white);
}

.secondary-button {
  background: var(--navy);
  color: var(--white);
}

.danger-button {
  background: var(--danger);
  color: var(--white);
}

button:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.status-box {
  border-radius: 16px;
  padding: 1rem;
  margin: 1rem 0;
  border: 1px solid var(--border);
  background: var(--navy-light);
}

.status-box.error {
  color: var(--danger);
  background: #fff0f3;
  border-color: #f1bdc8;
}

.status-box.success {
  color: var(--success);
  background: #e8f7f1;
  border-color: #bde8d6;
}

.session-panel {
  margin-top: 1.5rem;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--navy-light);
}

dl {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 0.5rem 1rem;
}

dt {
  font-weight: 800;
  color: var(--navy);
}

dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.button-row {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.site-footer {
  text-align: center;
}

@media (max-width: 680px) {
  .site-header,
  .button-row {
    flex-direction: column;
    align-items: flex-start;
  }

  dl {
    grid-template-columns: 1fr;
  }
}
