﻿:root {
  color-scheme: light;
  --navy: #003677;
  --navy-text: #102840;
  --navy-soft: #17324d;
  --blue: #2f7fb8;
  --blue-soft: #e8f2f9;
  --slate: #637688;
  --line: #dce5eb;
  --border: #c9d5df;
  --bg: #f3f8fb;
  --white: #ffffff;
  --success: #2d7c55;
  --danger: #a43232;
  --font: Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  color: var(--navy-text);
  background: var(--bg);
  font-family: var(--font);
}
button:disabled {
  cursor: not-allowed;
  opacity: .62;
}
a { color: inherit; }
.auth-shell {
  display: grid;
  grid-template-columns: minmax(360px, 44%) minmax(420px, 56%);
  min-height: 100vh;
  background: var(--white);
}
.auth-brand {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 48px;
  padding: clamp(32px, 5vw, 68px);
  color: var(--white);
  background: var(--navy);
}
.brand-wordmark {
  font-size: 28px;
  font-weight: 850;
}
.auth-brand h1 {
  max-width: 560px;
  margin: 0 0 16px;
  font-size: clamp(38px, 5vw, 62px);
  line-height: 1.05;
}
.auth-brand p:not(.kicker) {
  max-width: 560px;
  color: rgb(255 255 255 / 72%);
  line-height: 1.7;
}
.auth-note {
  font-size: 14px;
}
.auth-panel {
  display: grid;
  min-height: 100vh;
  padding: clamp(28px, 5vw, 72px);
  place-items: center;
}
.auth-card {
  width: min(100%, 540px);
}
.auth-card h2 {
  margin: 0 0 10px;
  font-size: clamp(32px, 4vw, 46px);
  line-height: 1.1;
}
.kicker {
  margin: 0 0 8px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.muted {
  color: var(--slate);
  line-height: 1.65;
}
.form {
  display: grid;
  gap: 16px;
  margin-top: 28px;
}
.form-narrow {
  max-width: 620px;
}
.field,
.form p {
  display: grid;
  gap: 8px;
  margin: 0;
}
.field span,
.form label {
  font-size: 14px;
  font-weight: 750;
}
input,
textarea,
select {
  width: 100%;
  min-height: 54px;
  padding: 0 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  outline: none;
  color: var(--navy-text);
  background: var(--white);
  font: inherit;
}
textarea {
  min-height: 112px;
  padding: 14px 16px;
}
input:focus,
textarea:focus,
select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgb(47 127 184 / 12%);
}
.password-row {
  position: relative;
  display: block;
}
.password-row input {
  display: block;
  padding-right: 54px;
}
.password-toggle {
  position: absolute;
  top: 1px;
  right: 1px;
  bottom: 1px;
  display: grid;
  width: 48px;
  height: auto;
  min-height: 0;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 0 9px 9px 0;
  color: var(--navy-text);
  background: transparent;
  appearance: none;
  box-shadow: none;
  line-height: 0;
}
.password-toggle:hover {
  background: var(--blue-soft);
}
.password-toggle:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}
.password-toggle svg {
  width: 22px;
  height: 22px;
  flex: none;
}
.password-requirements {
  display: grid;
  gap: 8px;
  margin: -4px 0 2px;
  padding: 0;
  color: var(--danger);
  font-size: 14px;
  font-weight: 700;
  list-style: none;
}
.password-requirements li {
  display: flex;
  align-items: center;
  gap: 9px;
  line-height: 1.35;
  transition: color .16s ease;
}
.password-requirements li.is-met {
  color: var(--success);
}
.password-requirements li.is-unmet {
  color: var(--danger);
}
.password-rule-dot {
  width: 9px;
  height: 9px;
  flex: 0 0 9px;
  border-radius: 999px;
  background: currentColor;
  box-shadow: 0 0 0 3px color-mix(in srgb, currentColor 14%, transparent);
  transition: background-color .16s ease, box-shadow .16s ease;
}
.form .password-match-error {
  display: none;
  margin: -8px 0 2px;
  color: var(--danger);
  font-size: 14px;
  font-weight: 700;
}

.form .password-match-error[hidden] {
  display: none !important;
}

.form .password-match-error.is-visible:not([hidden]) {
  display: block;
}
.errorlist {
  margin: 4px 0 0;
  padding: 0;
  color: var(--danger);
  font-size: 14px;
  font-weight: 700;
  list-style: none;
}
.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 10px 17px;
  border-radius: 8px;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  text-decoration: none;
}
.primary-button {
  border: 1px solid var(--navy);
  color: var(--white);
  background: var(--navy);
}
.secondary-button {
  border: 1px solid var(--border);
  color: var(--navy-text);
  background: var(--white);
}
.as-link {
  width: fit-content;
}
.auth-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 22px;
  color: var(--blue);
  font-weight: 800;
}
.app-shell {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  min-height: 100vh;
}
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 34px;
  padding: 34px;
  color: var(--white);
  background: var(--navy-soft);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}
.brand-mark {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 8px;
  background: var(--blue);
  font-size: 19px;
  font-weight: 850;
}
.brand small {
  display: block;
  color: rgb(255 255 255 / 62%);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.side-nav {
  display: grid;
  gap: 10px;
}
.side-nav a {
  padding: 10px 12px;
  border-radius: 8px;
  color: rgb(255 255 255 / 84%);
  text-decoration: none;
}
.side-nav a:hover,
.side-nav a.is-active {
  color: var(--white);
  background: rgb(255 255 255 / 10%);
}
.content {
  width: min(100%, 1180px);
  padding: 44px;
}
.topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}
h1 {
  margin: 0 0 10px;
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1.08;
}
.panel,
.role-panel,
.module-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 14px 38px rgb(16 40 64 / 7%);
}
.panel {
  padding: 24px;
}
.role-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  gap: 28px;
  margin-bottom: 34px;
  padding: 24px;
}
.role-badge {
  display: inline-flex;
  margin-bottom: 16px;
  padding: 5px 10px;
  border-radius: 999px;
  color: var(--success);
  background: #e9f6ef;
  font-size: 12px;
  font-weight: 800;
}
.module-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}
.module-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 180px;
  padding: 20px;
}
.module-card h3 {
  margin: 0 0 8px;
  font-size: 20px;
}
.module-card p {
  color: var(--slate);
  line-height: 1.55;
}
.module-card span {
  color: var(--slate);
  font-weight: 800;
}
dl {
  display: grid;
  gap: 12px;
  margin: 0;
}
dt {
  color: var(--slate);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
dd {
  margin: 2px 0 0;
  font-weight: 800;
}
.messages {
  display: grid;
  gap: 10px;
  margin-bottom: 20px;
}
.message {
  padding: 12px 14px;
  border: 1px solid #bde4cd;
  border-radius: 8px;
  color: var(--success);
  background: #f0faf4;
  font-weight: 700;
}
@media (max-width: 860px) {
  .auth-shell,
  .app-shell,
  .role-panel {
    grid-template-columns: 1fr;
  }
  .auth-brand {
    min-height: 260px;
  }
  .auth-panel {
    min-height: auto;
  }
  .sidebar {
    padding: 24px;
  }
  .content {
    padding: 28px 20px;
  }
  .topbar {
    flex-direction: column;
  }
}

