:root {
  color-scheme: light;
  --ink: #17201e;
  --muted: #65716e;
  --line: #dce4e1;
  --brand: #176b87;
  --brand-dark: #0f4c5c;
  --nav: #15211f;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.admin-login-shell {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(400px, 520px);
  min-height: 100vh;
}

.admin-login-context {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(28px, 6vw, 72px);
  background: var(--nav);
  color: #f1f7f5;
}

.admin-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}

.admin-brand > span {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 8px;
  background: #d9efe8;
  color: #10211e;
  font-weight: 800;
}

.admin-brand strong,
.admin-brand small {
  display: block;
}

.admin-brand small {
  margin-top: 2px;
  color: rgba(241, 247, 245, 0.68);
}

.login-eyebrow {
  margin: 0 0 7px;
  color: #68b7ca;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
}

.admin-login-context h1 {
  max-width: 720px;
  margin: 0 0 18px;
  font-size: clamp(2.3rem, 5vw, 4.5rem);
  line-height: 1;
}

.admin-login-context p:not(.login-eyebrow) {
  max-width: 620px;
  color: rgba(241, 247, 245, 0.72);
  font-size: 1.05rem;
  line-height: 1.7;
}

.employee-access-link {
  color: rgba(241, 247, 245, 0.8);
  text-decoration: none;
}

.admin-login-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 28px;
  padding: clamp(28px, 6vw, 64px);
}

.admin-login-panel h2 {
  margin: 0;
  font-size: 2rem;
}

.admin-login-panel > div > p:not(.login-eyebrow) {
  color: var(--muted);
}

.admin-login-panel form {
  display: grid;
  gap: 16px;
}

.admin-login-panel form[hidden] {
  display: none;
}

.admin-login-panel label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.admin-login-panel input,
.admin-login-panel select {
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7faf9;
  color: var(--ink);
  font: inherit;
}

.forgot-password-link {
  width: fit-content;
  color: var(--brand);
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
}

.forgot-password-link:hover,
.forgot-password-link:focus-visible {
  text-decoration: underline;
}

.admin-login-panel button {
  min-height: 44px;
  border: 0;
  border-radius: 8px;
  background: var(--brand);
  color: white;
  font: inherit;
  font-weight: 750;
  cursor: pointer;
}

.admin-login-panel button:hover {
  background: var(--brand-dark);
}

.admin-login-panel .login-secondary-button {
  border: 1px solid var(--line);
  background: white;
  color: var(--brand);
}

.admin-login-panel .login-secondary-button:hover {
  background: #f4f8f7;
}

.login-error {
  min-height: 20px;
  margin: 0;
  color: #b64242;
}

.login-error.success-status {
  color: #287651;
}

.local-reset-note {
  margin: 0;
  padding: 12px;
  border-left: 3px solid #287651;
  background: #eff8f3;
  color: #225f43;
  font-size: 0.88rem;
  line-height: 1.5;
}

.reset-panel form[hidden] {
  display: none;
}

.demo-accounts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.demo-accounts div {
  display: grid;
  gap: 4px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f5f8f7;
}

.demo-accounts span {
  color: var(--muted);
  font-size: 0.82rem;
  overflow-wrap: anywhere;
}

@media (max-width: 760px) {
  .admin-login-shell,
  .demo-accounts {
    grid-template-columns: 1fr;
  }

  .admin-login-context {
    min-height: 380px;
  }
}
