/* Self-contained login layout; protected-page styles are not loaded here. */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body.login-ui {
  --login-brand: #1d4056;
  --login-text: #18384d;
  --login-muted: #546c7d;
  --login-border: #cbd8e4;
  font-family: "Segoe UI", "Nirmala UI", system-ui, sans-serif;
  color: var(--login-text);
  background: #eef2f7;
  color-scheme: light;
  -webkit-font-smoothing: antialiased;
}
button, input { font: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
.login-layout {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 42fr) minmax(0, 58fr);
}
.login-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 32px;
  background: var(--login-brand);
  color: #fff;
  text-align: center;
}
.login-brand-content { max-width: 100%; }
.login-brand-mark {
  display: grid;
  place-items: center;
  width: 126px;
  height: 126px;
  margin: 0 auto 26px;
  border-radius: 50%;
  background: #eef2f7;
  color: var(--login-brand);
}
.login-brand-mark svg { width: 62px; height: 62px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; }
.login-brand-mark circle { fill: currentColor; stroke: none; }
.login-brand h2 { margin: 0; font-size: clamp(20px, 2vw, 28px); font-weight: 700; letter-spacing: .03em; }
.login-brand p { margin: 12px 0 0; font-size: 11px; line-height: 1.6; color: #cedde7; letter-spacing: .13em; text-transform: uppercase; }
.login-form-panel {
  display: flex;
  align-items: center;
  padding: 56px clamp(40px, 6vw, 104px);
  min-width: 0;
}
.login-card { width: 100%; max-width: 380px; }
.login-card h1 { margin: 0; font-size: 23px; line-height: 1.35; font-weight: 700; letter-spacing: -.4px; }
.login-description { margin: 8px 0 28px; color: var(--login-muted); font-size: 13px; line-height: 1.7; }
.login-group { margin-bottom: 18px; }
.login-group label { display: block; margin-bottom: 7px; color: var(--login-text); font-size: 13px; font-weight: 600; }
.login-field {
  display: flex;
  min-width: 0;
  min-height: 46px;
  border: 1px solid var(--login-border);
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 2px 4px #1d405608;
  overflow: hidden;
}
.login-field:focus-within { border-color: #366b8a; outline: 3px solid #366b8a26; }
.login-field-icon { display: grid; place-items: center; width: 44px; flex: 0 0 44px; background: var(--login-brand); color: #fff; }
.login-field-icon svg, .login-password-toggle svg, .login-submit svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.login-field input {
  width: 100%;
  min-width: 0;
  border: 0;
  border-radius: 0;
  outline: 0;
  padding: 12px 14px;
  background: #fff;
  color: var(--login-text);
  font-size: 14px;
  line-height: 20px;
}
.login-field input::placeholder { color: #718295; opacity: 1; }
.login-password-toggle {
  display: grid;
  place-items: center;
  flex: 0 0 44px;
  width: 44px;
  border: 0;
  background: #fff;
  color: #657b8d;
}
.login-password-toggle:hover { color: var(--login-brand); background: #f1f5f8; }
.login-eye-slash { display: none; }
.login-password-toggle[aria-pressed="true"] .login-eye-slash { display: block; }
.login-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  margin-top: 6px;
  padding: 11px 22px;
  border: 1px solid var(--login-brand);
  border-radius: 6px;
  background: var(--login-brand);
  color: #fff;
  box-shadow: 0 4px 10px #1d405622;
  font-size: 14px;
  font-weight: 600;
}
.login-submit:hover { background: #153347; }
button:focus-visible { outline: 3px solid #498aae; outline-offset: 3px; }
.login-password-toggle:focus-visible { outline-offset: -4px; }
.login-alert { margin: 0 0 22px; padding: 12px 14px; border: 1px solid; border-radius: 6px; font-size: 13px; line-height: 1.7; overflow-wrap: anywhere; }
.login-alert-error { color: #932d32; border-color: #edbabe; background: #fff1f2; }
.login-alert-warning { color: #78541e; border-color: #e6d4b1; background: #fff8e8; }
@media (max-width: 720px) {
  .login-layout { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; }
  .login-brand { padding: 26px 24px; text-align: left; }
  .login-brand-content { display: flex; align-items: center; gap: 18px; }
  .login-brand-mark { width: 62px; height: 62px; flex: 0 0 62px; margin: 0; }
  .login-brand-mark svg { width: 36px; height: 36px; }
  .login-brand-text { min-width: 0; }
  .login-brand h2 { font-size: 20px; }
  .login-brand p { margin-top: 6px; font-size: 9px; letter-spacing: .08em; }
  .login-form-panel { justify-content: center; padding: 40px 24px; }
  .login-card h1 { font-size: 22px; }
  .login-submit { width: 100%; }
  .login-field input { font-size: 16px; }
}
