:root {
  --uninter: #1e5a8c;
  --uninter-dark: #163a63;
  --uninter-light: #4d8cc9;
  --uninter-soft: #eef4fa;
  --sd-blue: #2f6cf6;
  --field-border: #d5dee8;
  --ink: #1f2937;
  --muted: #6b7280;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; min-height: 100%; }
body {
  font-family: "Titillium Web", "Segoe UI", Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: #f4f7fb;
}
a { color: var(--sd-blue); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font-family: inherit; cursor: pointer; }

/* ── Login ── */
.login-bg {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 16px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(118deg, #1e3a8a 0%, #46567f 26%, #8a8168 48%, #c99f2a 74%, #f5b800 100%);
}
.login-card {
  position: relative;
  width: 420px;
  max-width: 100%;
  background: #fff;
  border-radius: 8px;
  padding: 32px;
  box-shadow: 0 18px 50px -12px rgba(15, 23, 42, .45);
}
.login-brand { display: flex; flex-direction: column; align-items: center; }
.login-brand img { height: 64px; width: auto; display: block; }
.login-title {
  margin: 12px 0 0;
  font-size: 22px;
  font-weight: 400;
  color: #1f2937;
  line-height: 1;
}
.login-form { margin-top: 24px; }
.field { margin-bottom: 16px; }
.field label {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: #1f2937;
}
.field input {
  margin-top: 6px;
  width: 100%;
  height: 44px;
  border: 1px solid var(--field-border);
  border-radius: 6px;
  padding: 0 12px;
  font-size: 15px;
  outline: none;
  background: #fff;
  color: #111;
}
.field input:focus {
  border-color: var(--uninter-light);
  box-shadow: 0 0 0 3px rgba(77, 140, 201, .28);
}
.btn-enter {
  width: 100%;
  height: 48px;
  margin-top: 4px;
  border: 0;
  border-radius: 999px;
  background: var(--sd-blue);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
}
.btn-enter:hover { filter: brightness(1.08); }
.login-links {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin: 16px 0 0;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--field-border);
  font-size: 13px;
  font-weight: 700;
}
.login-links a { color: var(--sd-blue); text-decoration: underline; text-underline-offset: 2px; }
.docs-label {
  margin: 16px 0 0;
  text-align: center;
  font-size: 15px;
  font-weight: 700;
  color: #1f2937;
}
.btn-outline {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 48px;
  margin-top: 12px;
  border-radius: 999px;
  border: 1.5px solid var(--sd-blue);
  background: #fff;
  color: var(--sd-blue);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
}
.btn-outline:hover { background: var(--uninter-soft); text-decoration: none; }
.alert { margin: 10px 0 0; font-size: 13px; color: #b42318; min-height: 1.1em; }
.alert.ok { color: #157347; }

/* ── Portal ── */
.sd-page { min-height: 100vh; position: relative; }
.sd-bg {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
}
.sd-bg img { width: 100%; height: 100%; object-fit: cover; }
.sd-bg::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(255,255,255,.45), rgba(255,255,255,.25), rgba(255,255,255,.55));
}
.sd-main {
  position: relative; z-index: 1;
  max-width: 896px;
  margin: 0 auto;
  padding: 24px 12px 40px;
}
.sd-head {
  position: relative;
  overflow: hidden;
  border-radius: 6px 6px 0 0;
  background-image: linear-gradient(100deg, var(--uninter-dark) 0%, var(--uninter) 55%, var(--uninter-light) 100%);
  color: #fff;
}
.sd-head-photo {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: .4; mix-blend-mode: luminosity; pointer-events: none;
}
.sd-head-veil {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(22,58,99,.85), rgba(30,90,140,.80));
  pointer-events: none;
}
.sd-head-inner { position: relative; padding: 12px 32px 16px; }
.sd-head-brand {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  font-weight: 700; letter-spacing: .06em; font-size: 19px;
}
.sd-head-brand img { height: 28px; width: auto; }
.sd-head-line {
  height: 1px; width: 92%; margin: 8px auto 0;
  background: rgba(255,255,255,.25);
}
.sd-head-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-top: 12px;
}
.sd-head-row h1 {
  flex: 1;
  margin: 0;
  text-align: center;
  font-size: 34px;
  font-weight: 600;
  letter-spacing: -.02em;
  line-height: 1;
  color: #fff;
}
.sd-ico {
  width: 44px; height: 44px; flex: 0 0 44px;
  display: grid; place-items: center;
  border-radius: 6px;
  background: rgba(255,255,255,.15);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.25);
  text-decoration: none;
}
.sd-ico:hover { background: rgba(255,255,255,.25); text-decoration: none; }
.sd-ico svg { width: 20px; height: 20px; }
.sd-panel {
  background: rgba(255,255,255,.55);
  backdrop-filter: blur(2px);
  border-radius: 0 0 6px 6px;
  padding: 40px 32px;
  box-shadow: 0 18px 50px -24px rgba(15,23,42,.45);
}
.menu-list {
  display: flex; flex-direction: column; align-items: center; gap: 28px;
}
.menu-item {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 20px;
  border-radius: 6px;
  border: 1px solid rgba(22,58,99,.7);
  background: rgba(255,255,255,.85);
  color: var(--uninter-dark);
  font-size: 15px;
  font-weight: 400;
  text-decoration: none;
  box-shadow: 0 1px 2px rgba(15,23,42,.08);
}
.menu-item:hover { background: #fff; box-shadow: 0 4px 12px rgba(15,23,42,.12); text-decoration: none; }
.menu-item svg { width: 18px; height: 18px; color: var(--uninter); flex: 0 0 18px; }

.sd-foot {
  margin-top: 0;
  border-top: 1px solid var(--field-border);
  background: rgba(255,255,255,.9);
  text-align: center;
  padding: 24px 20px 28px;
  color: var(--muted);
  font-size: 12px;
}
.sd-foot img.logo { height: 56px; width: auto; display: block; margin: 0 auto 8px; }

.form-card { max-width: 560px; margin: 0 auto; text-align: center; }
.form-card h2 {
  font-size: 18px; font-weight: 500; color: #4a5568; margin: 0 0 8px;
}
.form-rule { height: 1px; background: #e5e7eb; margin: 0 0 18px; }
.form-card input[type="text"] {
  width: 100%; height: 44px;
  border: 1px solid var(--field-border); border-radius: 6px;
  padding: 0 12px; font-size: 15px; outline: none;
}
.form-card input[type="text"]:focus {
  border-color: var(--uninter-light);
  box-shadow: 0 0 0 3px rgba(77,140,201,.28);
}
.btn-navy {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-width: 140px; height: 42px; padding: 0 22px;
  border: 0; border-radius: 6px;
  background: var(--uninter-dark); color: #fff;
  font-size: 15px; font-weight: 600; margin: 18px auto 0;
}
.btn-navy:hover { filter: brightness(1.08); }
.center { text-align: center; }
.or { text-align: center; color: #888; font-size: 13px; letter-spacing: .08em; margin: 22px 0 8px; }
.hint { text-align: center; color: #4a5568; font-size: 14px; margin: 0 0 8px; }
.btn-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  height: 42px; padding: 0 18px; border-radius: 6px;
  border: 1px solid #cfd6e0; background: #fff; color: #334155;
  font-size: 14px; margin-top: 18px; text-decoration: none;
}
.page-h { text-align: center; font-size: 26px; color: var(--uninter-dark); font-weight: 600; margin: 24px 0 8px; }
.page-sub { text-align: center; margin: 0; }
.result {
  background: #fff; border-radius: 6px; padding: 22px 24px; margin-top: 18px;
  box-shadow: 0 8px 28px rgba(20,40,80,.08); text-align: left;
}
.result.ok { border-left: 4px solid #157347; }
.result.bad { border-left: 4px solid #b42318; }
.result h3 { margin: 0 0 10px; font-size: 18px; }
.result dl { margin: 0; display: grid; grid-template-columns: 160px 1fr; gap: 6px 12px; font-size: 14px; }
.result dt { color: #64748b; }
.result dd { margin: 0; font-weight: 600; }
@media (max-width: 640px) {
  .sd-head-inner { padding: 12px 16px 14px; }
  .sd-head-row h1 { font-size: 22px; }
  .sd-panel { padding: 28px 16px; }
  .login-card { padding: 28px 20px; }
  .result dl { grid-template-columns: 1fr; }
}
