:root {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #18201f;
  background: #f4f7f6;
  font-synthesis: none;
}

* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; }
button, input { font: inherit; }
.hidden { display: none !important; }
.topbar {
  min-height: 74px;
  padding: 14px clamp(20px, 5vw, 72px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  border-bottom: 1px solid #dce4e2;
}
.brand { color: inherit; text-decoration: none; display: flex; align-items: center; gap: 12px; }
.brand span:last-child { display: grid; gap: 2px; }
.brand small { color: #6f7c79; }
.brand-mark, .module-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  background: #176a5f;
  color: #fff;
  font-weight: 800;
}
main { padding: clamp(28px, 6vw, 80px) clamp(20px, 7vw, 100px); }
.login-shell { max-width: 1120px; margin: 4vh auto; display: grid; grid-template-columns: 1.25fr .75fr; gap: 42px; align-items: center; }
.login-copy h1 { max-width: 720px; margin: 10px 0 16px; font-size: clamp(44px, 7vw, 82px); line-height: .96; letter-spacing: -.055em; }
.login-copy p:not(.eyebrow) { max-width: 620px; color: #64716e; font-size: 20px; line-height: 1.55; }
.eyebrow { color: #176a5f; letter-spacing: .16em; font-size: 12px; font-weight: 800; }
.login-card, .welcome, .module-card, .notice {
  background: #fff;
  border: 1px solid #dce4e2;
  border-radius: 22px;
  box-shadow: 0 18px 48px rgba(31, 56, 51, .07);
}
.login-card { padding: 32px; }
.login-card h2 { font-size: 28px; margin: 8px 0; }
.login-card p { color: #667370; line-height: 1.5; }
button { border: 0; border-radius: 12px; background: #176a5f; color: #fff; padding: 13px 18px; font-weight: 750; cursor: pointer; }
button.ghost { background: #eef4f2; color: #176a5f; }
.status { min-height: 22px; color: #a23e32 !important; }
.portal { max-width: 1180px; margin: 0 auto; }
.welcome { padding: 28px 32px; display: flex; justify-content: space-between; align-items: center; }
.welcome h1 { font-size: 38px; margin: 7px 0; }
.welcome p { margin: 0; color: #667370; }
.secure-badge { padding: 9px 12px; border-radius: 999px; background: #e4f3ee; color: #176a5f; font-weight: 700; }
.module-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 22px; }
.module-card { min-height: 132px; padding: 24px; display: flex; align-items: flex-start; gap: 18px; color: inherit; text-decoration: none; transition: transform .15s ease, border-color .15s ease; }
.module-card:hover { transform: translateY(-2px); border-color: #97b9b2; }
.module-card span:last-child { display: grid; gap: 7px; }
.module-card strong { font-size: 22px; }
.module-card small { color: #697572; line-height: 1.45; }
.module-icon { min-width: 48px; width: 48px; height: 48px; font-size: 13px; }
.notice { margin-top: 22px; padding: 18px 22px; color: #586562; line-height: 1.5; }
@media (max-width: 780px) {
  .login-shell, .module-grid { grid-template-columns: 1fr; }
  .login-shell { margin-top: 0; }
  .login-copy h1 { font-size: 46px; }
  .welcome { align-items: flex-start; gap: 18px; flex-direction: column; }
}
