.login-page {
    --text: #172b4d;
    --muted: #64748b;
    --primary: #0d6efd;
    --primary-dark: #07398f;
    min-height: 100vh;
    min-height: 100svh;
    background: #fff;
    color: var(--text);
}
#login-network { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.login-shell {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: max(48px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(48px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
}
.login-card {
    width: min(420px, 100%); padding: 38px;
    border: 1px solid #e2e8f0; border-radius: 16px; background: #fff;
    box-shadow: 0 12px 48px rgba(23, 43, 77, .055), 0 2px 6px rgba(23, 43, 77, .025);
}
.login-card-heading { text-align: center; }
.login-logo { display: block; width: 218px; max-width: 100%; height: auto; margin: 0 auto 28px; }
.login-card-heading h1 { margin: 0 0 8px; font-size: 25px; font-weight: 600; letter-spacing: -.5px; }
.login-card-heading p { margin: 0 0 30px; color: var(--muted); font-size: 13px; line-height: 1.85; text-wrap: balance; }
.login-card form { display: grid; gap: 20px; }
.login-field { display: grid; gap: 8px; }
.login-field label { font-size: 13px; font-weight: 500; }
.login-field input {
    width: 100%; min-width: 0; height: 50px; padding: 0 14px;
    border: 1px solid #e2e8f0; border-radius: 8px;
    background: #fff; color: var(--text); font-size: 14px;
    transition: border-color .18s, box-shadow .18s;
}
.login-field input::placeholder { color: #7b879a; font-weight: 300; }
.login-field input:hover { border-color: #b7c8df; }
.login-field input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px #dcebff; }
.login-password-wrap { position: relative; }
.login-password-wrap input { padding-right: 52px; }
.login-password-toggle {
    position: absolute; right: 2px; top: 1px; display: grid; place-items: center;
    width: 48px; height: 48px; border: 0; border-radius: 7px;
    background: transparent; color: var(--muted); cursor: pointer;
}
.login-password-toggle:hover { color: var(--primary); }
.login-password-toggle svg { width: 20px; height: 20px; }
.eye-slash { display: none; }
.login-password-toggle[aria-pressed="true"] .eye-slash { display: block; }
.login-options { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; font-size: 12px; }
.login-remember { display: flex; align-items: center; gap: 7px; min-height: 30px; flex-shrink: 0; cursor: pointer; color: var(--muted); }
.login-remember input { width: 16px; height: 16px; margin: 0; accent-color: var(--primary); }
.login-help { margin-left: auto; text-align: right; }
.login-help summary { padding: 6px 0; color: #075dce; cursor: pointer; list-style: none; }
.login-help summary::-webkit-details-marker { display: none; }
.login-help p { margin: 8px 0 0; color: var(--muted); font-size: 12px; line-height: 1.8; }
.login-submit {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    min-height: 50px; width: 100%; border: 0; border-radius: 8px;
    color: #fff; background: var(--primary); cursor: pointer; font-size: 14px; font-weight: 500;
    transition: background .18s, box-shadow .18s;
}
.login-submit:hover { background: var(--primary-dark); box-shadow: 0 4px 12px rgba(13, 110, 253, .12); }
.login-submit:disabled { background: #397acc; cursor: wait; }
.login-arrow { width: 18px; height: 18px; }
.login-submit:disabled .login-arrow { display: none; }
.login-spinner { display: none; width: 17px; height: 17px; border: 2px solid rgba(255,255,255,.35); border-top-color: #fff; border-radius: 50%; animation: login-spin .8s linear infinite; }
.login-submit:disabled .login-spinner { display: inline-block; }
.login-page :is(button, summary, input[type="checkbox"]):focus-visible { outline: 3px solid #0d6efd; outline-offset: 4px; }
.login-footer { margin-top: 26px; color: var(--muted); font-size: 11px; text-align: center; letter-spacing: .1px; }
.login-card .alert { font-size: 13px; }
.login-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.login-page [hidden] { display: none !important; }
@keyframes login-spin { to { transform: rotate(360deg); } }
@media (max-width: 480px) {
    .login-shell { padding-top: max(28px, env(safe-area-inset-top)); padding-bottom: max(28px, env(safe-area-inset-bottom)); }
    .login-card { padding: 30px 24px; }
    .login-logo { width: 200px; margin-bottom: 24px; }
    .login-field input { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
    .login-page *, .login-page *::before, .login-page *::after { animation: none !important; transition: none !important; }
}
