.login-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; width: calc(100% - 48px); max-width: 1084px; margin: 20px auto 0; padding: 15px 22px; border: 1px solid #ffffff30; border-radius: 16px; background: #16304d70; backdrop-filter: blur(12px); box-shadow: 0 8px 24px #152c4810; }
.header-links { display: flex; align-items: center; gap: 6px; }
.header-links a { color: white; font-size: 13px; font-weight: 500; text-decoration: none; padding: 11px 16px; border-radius: 9px; white-space: nowrap; transition: background .15s; }
.header-links a:hover, .header-links a:focus-visible { background: #ffffff1f; }
.login-page main { padding-top: 76px; }
.login-card { max-width: 1040px; border-radius: 24px; }
.login-card .form-panel { padding: 0 40px 30px; }
.login-avatar { width: 104px; height: 104px; display: grid; place-items: center; margin: -52px auto 20px; border: 6px solid white; border-radius: 50%; background: #f0f5fb; box-shadow: 0 8px 28px #243c561a; }
.login-avatar img { width: 88px; height: 88px; object-fit: cover; border-radius: 50%; }
.login-card h1 { font-size: 32px; margin-bottom: 8px; letter-spacing: -.8px; }
.login-form-surface { max-width: 460px; margin: 28px auto 32px; padding: 28px 30px; border: 1px solid #e8edf4; border-radius: 16px; background: #f8fafc; }
.login-form-surface > .status:first-child { margin-top: 0; margin-bottom: 20px; }
#loginForm { margin-top: 0; }
#loginSubmit { display: flex; align-items: center; justify-content: center; gap: 9px; }
#loginSubmit:disabled { cursor: wait; }
.login-spinner { width: 16px; height: 16px; border: 2px solid #ffffff55; border-top-color: white; border-radius: 50%; animation: login-spin .7s linear infinite; }
@keyframes login-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .login-spinner { animation: none; } }
.login-field { margin-bottom: 18px; }
.login-field label { display: block; margin-bottom: 8px; font-size: 13px; font-weight: 600; }
.label-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.label-row a { font-size: 12px; text-decoration: none; }
.login-input { display: block; width: 100%; min-height: 50px; border: 1px solid #d8dfe8; border-radius: 10px; padding: 12px 14px; background: white; color: var(--ink); font: inherit; transition: border-color .15s, box-shadow .15s; }
.login-input::placeholder { color: #818b99; font-size: 13px; }
.login-input:focus { outline: none; border-color: var(--blue); background: white; box-shadow: 0 0 0 3px #3375db18; }
.password-field { position: relative; }
.password-field .login-input { padding-right: 103px; }
.password-toggle { position: absolute; right: 5px; top: 5px; bottom: 5px; border: 0; border-radius: 6px; background: transparent; color: #52709a; font-size: 11px; font-weight: 600; padding: 0 10px; }
.password-toggle:hover { background: #edf4ff; }
.captcha-container { margin: 22px auto; min-height: 78px; }
.captcha-widget { width: 304px; margin: 0 auto; }
.login-card a:hover { text-decoration: underline; }
.account-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; border-top: 1px solid #edf0f4; padding-top: 28px; }
.account-option { padding: 24px 18px 20px; text-align: center; border: 1px solid #e5eaf1; border-radius: 14px; background: white; box-shadow: 0 3px 10px #25364a04; }
.option-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 13px; margin: 0 auto 14px; background: #edf4ff; color: #3375db; }
.option-icon svg { width: 23px; height: 23px; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.account-option h2 { font-size: 15px; margin: 0 0 7px; font-weight: 650; }
.account-option p { color: var(--muted); font-size: 12px; margin: 0 0 18px; }
.option-link { display: inline-flex; align-items: center; justify-content: center; gap: 16px; padding: 9px 16px; border-radius: 8px; background: #edf4ff; color: #2861b6; text-decoration: none; font-size: 12px; font-weight: 600; }
.option-register .option-icon, .option-register .option-link { background: #eaf7f0; color: #24714c; }
.option-email .option-icon, .option-email .option-link { background: #fff5e5; color: #956019; }
.login-notice { max-width: 780px; margin: 28px auto 0; padding: 22px 20px 0; color: #697789; font-size: 12px; text-align: center; }
.login-notice h2 { font-size: 13px; color: #a55047; margin: 0 0 8px; }
.login-notice p { margin: 0 0 8px; font-size: 12px; line-height: 1.8; }
.login-footer { display: grid; grid-template-columns: 1fr 1.5fr auto; align-items: start; gap: 28px; padding-top: 26px; }
.footer-contact { font-size: 12px; min-width: 0; }
.footer-contact strong { color: #4b5c70; font-weight: 600; }
.footer-contact address { font-style: normal; margin-top: 8px; line-height: 1.9; font-size: 11px; overflow-wrap: anywhere; }
.footer-contact a { color: #5f7084; }
.login-footer .footer-links { padding-top: 1px; }
@media (max-width: 760px) {
    .login-header { flex-wrap: wrap; gap: 14px; padding: 16px 18px 10px; }
    .login-header .brand { margin: 0 auto; }
    .header-links { width: 100%; justify-content: center; border-top: 1px solid #ffffff24; padding-top: 8px; }
    .header-links a { flex: 1; text-align: center; padding: 11px 8px; }
    .login-footer { grid-template-columns: 1fr; text-align: center; gap: 18px; }
    .login-footer .footer-links { justify-content: center; }
}
@media (max-width: 520px) {
    .login-header { width: calc(100% - 32px); margin-top: 16px; gap: 12px; }
    .header-links { gap: 4px; }
    .header-links a { font-size: 12px; }
    .login-page main { padding-top: 64px; }
    .login-card .form-panel { padding: 0 24px 22px; }
    .login-card h1 { font-size: 28px; }
    .login-form-surface { padding: 0; border: 0; background: transparent; margin: 24px auto 28px; }
    .login-notice { padding: 20px 0 0; margin-top: 8px; }
}
@media (max-width: 760px) { .account-options { grid-template-columns: 1fr; gap: 12px; } .account-option { padding: 20px; } .account-option p { margin-bottom: 12px; } }
@media (max-width: 390px) {
    .captcha-widget { margin-left: calc(50% - 152px); transform: scale(.88); transform-origin: center top; }
    .captcha-container { min-height: 70px; height: 70px; }
}
@media (max-width: 340px) { .login-card .form-panel { padding-left: 18px; padding-right: 18px; } .captcha-widget { transform: scale(.84); } }
