:root { color-scheme: light; --purple: #7025a4; --purple-dark: #592080; --ink: #292333; --muted: #777181; }
* { box-sizing: border-box; }
body.qph-login { margin: 0; min-height: 100vh; min-height: 100svh; display: grid; place-items: center; padding: 40px 20px; color: var(--ink); background: #f3f1f6 url("/qph/images/login-background.jpg?v=20260310b") no-repeat center center / cover; background-attachment: fixed; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; }
button, input { font: inherit; }
a { color: var(--purple); text-decoration: none; }
a:hover { color: var(--purple-dark); text-decoration: underline; }
button, a, input { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #a778d0; outline-offset: 4px; }
[hidden] { display: none !important; }
.login-shell { width: min(420px, 100%); background: #fff; border-radius: 12px; box-shadow: 0 12px 42px #25142f24; }
.form-panel { padding: 36px 34px 34px; }
.form-content { width: 100%; }
.login-logo { display: block; width: fit-content; max-width: 100%; margin: 0 auto 28px; }
.login-logo img { display: block; width: 240px; max-width: 100%; height: auto; }
.form-heading { margin-bottom: 24px; }
h2 { margin: 0; text-align: center; font-size: 22px; font-weight: 600; letter-spacing: -.5px; line-height: 1.3; }
.form-heading p { margin: 12px 0 0; font-size: 14px; color: var(--muted); line-height: 1.6; }
.field { margin-bottom: 22px; }
.field > label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 9px; }
.field input { width: 100%; min-width: 0; height: 50px; padding: 0 15px; background: #fcfbfd; border: 1px solid #e2dce8; border-radius: 9px; color: var(--ink); font-size: 14px; transition: border-color .15s, box-shadow .15s; }
.field input::placeholder { color: #a49cae; }
.field input:focus { outline: 0; border-color: #9659bd; box-shadow: 0 0 0 3px #7025a411; background: white; }
.password-field { position: relative; }
.password-field input { padding-right: 48px; }
.password-toggle { position: absolute; right: 5px; top: 5px; width: 40px; height: 40px; display: grid; place-items: center; color: #8d8199; background: transparent; border: 0; border-radius: 6px; cursor: pointer; }
.password-toggle:hover { color: var(--purple); background: #f2eaf7; }
.password-toggle svg { width: 19px; height: 19px; stroke: currentColor; stroke-width: 1.7; }
.form-options { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin: 1px 0 27px; font-size: 12px; }
.remember { display: inline-flex; align-items: center; gap: 8px; color: #6f6679; cursor: pointer; }
.remember input { width: 15px; height: 15px; margin: 0; accent-color: var(--purple); cursor: pointer; }
.form-options a { font-weight: 600; }
.submit-button { border: 1px solid var(--purple); border-radius: 9px; background: var(--purple); color: white; width: 100%; height: 51px; padding: 0 18px; font-size: 14px; font-weight: 600; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 13px; box-shadow: 0 5px 12px #7025a419; transition: background .15s, box-shadow .15s; }
.submit-button:hover { background: var(--purple-dark); box-shadow: 0 7px 16px #7025a428; }
.submit-button svg { height: 17px; width: 17px; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.back-link { display: flex; justify-content: center; gap: 9px; margin-top: 24px; font-size: 13px; }
.notice { font-size: 13px; line-height: 1.6; padding: 13px 15px; border-radius: 9px; margin-bottom: 22px; overflow-wrap: anywhere; }
.notice p { margin: 0; }
.notice-error { color: #963754; background: #fff3f6; border: 1px solid #f4d6df; }
.notice-success { color: #2e7153; background: #f0f9f4; border: 1px solid #d2eadc; }
#recoverform:not([hidden]) { margin-top: 34px; }
#loginform[hidden] + #recoverform { margin-top: 0; }
@media (max-width: 480px) { body.qph-login { padding: 24px 16px; background-attachment: scroll; } .form-panel { padding: 30px 26px; } .login-logo img { width: 220px; } .field input { font-size: 16px; } }
@media (max-width: 360px) { body.qph-login { padding: 16px 12px; } .form-panel { padding: 28px 22px; } .login-logo img { width: 210px; } .form-options { font-size: 11px; gap: 8px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; } }
