:root { color-scheme: dark; font-family: Arial, Helvetica, sans-serif; }
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { background: linear-gradient(180deg, #131f30 0%, #243b5d 100%); color: #f8f5f1; min-height: 100vh; display: flex; flex-direction: column; }
a { color: inherit; text-underline-offset: 2px; }
button, input { font: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }

.page-content { flex: 1; display: flex; justify-content: center; align-items: flex-start; padding: 98px 20px 70px; }
.login-card { width: 382px; min-height: 574px; background: #050b13; border-radius: 21px; padding: 72px 36px 39px; display: flex; align-items: center; flex-direction: column; }

.brand-link { display: block; }
.brand-mark {
    display: block;
    flex: 0 0 54px;
    width: 135px;
    height: 54px;
    position: relative;
    margin-bottom: 62px;
}
.mark-base { position: absolute; bottom: 0; left: 0; width: 75px; height: 48px; border-left: 22px solid #f8f5f1; border-bottom: 21px solid #f8f5f1; }
.dot { position: absolute; width: 22px; height: 22px; border-radius: 50%; background: #f8f5f1; }
.dot-one { left: 54px; top: 0; }
.dot-two { left: 82px; top: 0; }
.dot-three { left: 110px; top: 0; }
.dot-four { left: 82px; top: 27px; }

.login-view, .download-view { width: 100%; }
.login-form { width: 100%; }
.login-form input { width: 100%; height: 37px; background: transparent; border: 1px solid #58606b; border-radius: 7px; outline: none; color: #f4f5f7; padding: 0 11px; font-size: 14px; }
.login-form input::placeholder { color: #777a81; opacity: 1; }
.login-form input:focus { border-color: #b9c5d7; }

.password-field { display: flex; position: relative; margin-top: 15px; }
.password-field input { padding-right: 48px; }
.eye-toggle { position: absolute; top: 0; right: 0; width: 43px; height: 37px; display: grid; place-items: center; padding: 0; border: 0; border-left: 1px solid #58606b; background: transparent; color: #777a81; }
.eye-toggle:hover { color: #b9c5d7; }
.eye-toggle:focus-visible { outline: 2px solid #b9c5d7; outline-offset: -2px; }
.eye-toggle svg { width: 19px; height: 19px; }
.eye-toggle .icon-eye { display: none; }
.eye-toggle.is-shown .icon-eye { display: block; }
.eye-toggle.is-shown .icon-eye-off { display: none; }

.login-button { position: relative; margin-top: 36px; height: 37px; width: 100%; border: 0; border-radius: 7px; background: #f8f5f1; color: #393939; font-size: 12px; letter-spacing: .3px; }
.login-button span { display: inline-flex; align-items: center; justify-content: center; }
.login-button:disabled { cursor: wait; }
.login-button.is-loading span { visibility: hidden; }
.login-button.is-loading::after { position: absolute; top: calc(50% - 8px); left: calc(50% - 8px); width: 16px; height: 16px; border: 2px solid rgb(57 57 57 / 30%); border-top-color: #393939; border-radius: 50%; content: ''; animation: spin .65s linear infinite; }
#resetButton:disabled:not(.is-loading) { background: #262f3d; color: #6a7280; cursor: default; }
a.login-button { display: flex; align-items: center; justify-content: center; text-decoration: none; }

.notice { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 16px; padding: 12px 14px; border: 1px solid #6b3a3e; border-radius: 7px; background: #2c1a1d; color: #f2c4c8; font-size: 12px; line-height: 17px; }
.notice > div { flex: 1; min-width: 0; }
.notice--success { border-color: #3d6b4e; background: #1a2c20; color: #c4e8cf; }
.notice-close { flex: 0 0 auto; padding: 0 2px; border: 0; background: none; color: inherit; font-size: 16px; line-height: 17px; opacity: .8; }
.notice-close:hover { opacity: 1; }
.notice-close:focus-visible { outline: 2px solid currentColor; outline-offset: 1px; }

.reset-heading { margin: 0 0 18px; color: #f8f5f1; font-size: 18px; font-weight: 400; line-height: 24px; text-align: center; }
.reset-form .login-button { margin-top: 15px; }

.back-to-login { margin-top: 26px; font-size: 14px; text-align: center; }
.back-to-login p { margin: 0; }
.back-to-login a { text-decoration: underline; }

.download-view { display: flex; flex-direction: column; align-items: center; }
.download-heading { margin: 0 0 8px; color: #f8f5f1; font-size: 20px; font-weight: 400; line-height: 26px; text-align: center; }
.download-text { margin: 0 0 30px; max-width: 280px; color: #aeb6c2; font-size: 14px; line-height: 20px; text-align: center; }
.download-hint { margin: 18px 0 0; color: #777a81; font-size: 12px; text-align: center; }

.disclaimer { margin: 22px -5px 0; text-align: center; font-size: 12px; line-height: 19px; white-space: nowrap; }
.account-help { margin: 23px 0 0; font-size: 14px; text-align: center; }
.create-account { margin-top: 29px; font-size: 14px; }

.footer { min-height: 95px; background: #141f2f; padding: 26px 25px 19px; }
.footer-inner { max-width: 1190px; margin: auto; display: flex; justify-content: space-between; align-items: flex-start; gap: 30px; }
.footer-links { display: flex; flex-direction: column; gap: 12px; }
.footer-row { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; }
.footer a { text-decoration: none; font-size: 12px; white-space: nowrap; }
.footer a:hover { text-decoration: underline; }
.privacy-choice { display: inline-flex; align-items: center; gap: 5px; }
.choice-icon { display: inline-flex; background: #327cfb; border-radius: 10px; padding: 0 5px; color: white; font-size: 11px; font-weight: bold; }
.copyright { color: #273043; font-size: 11px; white-space: nowrap; padding-top: 3px; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 760px) { .page-content { padding-top: 42px; padding-bottom: 42px; } .footer-inner { display: block; } .footer-row { gap: 12px; } .copyright { display: block; padding-top: 20px; } }
@media (max-width: 430px) { .login-card { width: 100%; padding-left: 24px; padding-right: 24px; } .disclaimer { font-size: 10px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: 1.5s !important; transition: none !important; } }
