.login-page.login-auth-page { min-height: 100vh; display: grid; place-items: center; padding: 24px; overflow-x: hidden; background: linear-gradient(180deg, #ffffff 0%, #fbf9ff 100%); font-family: Arial, Helvetica, sans-serif; }
.login-layout { width: 100%; min-height: calc(100vh - 48px); display: flex; align-items: center; justify-content: center; background: transparent; }
.login-panel { width: 100%; display: flex; align-items: center; justify-content: center; padding: clamp(20px, 4vw, 48px); background: transparent; }
.login-form-card { width: min(560px, 100%); padding: clamp(28px, 4vw, 40px); border-radius: 24px; background: #fff; box-shadow: 0 24px 60px rgba(76, 29, 149, .12); }
.login-system-name { margin: 0 0 20px; color: #6d28d9; font-size: 15px; font-weight: 900; letter-spacing: .04em; }
.login-form-card h2 { margin: 0; color: #111827; font-size: clamp(30px, 4vw, 42px); line-height: 1.12; font-weight: 900; letter-spacing: -1px; }
.login-subtitle { margin: 12px 0 28px; color: #7c7f8c; font-size: 15px; font-weight: 700; }
.login-auth-page .login-error { margin: 0 0 18px; border-color: #fecdd3; border-radius: 14px; padding: 12px 14px; background: #fff1f2; color: #be123c; }
.login-form-card .login-form { display: grid; gap: 18px; }
.login-form-card .login-field { display: grid; gap: 9px; color: #312e81; font-size: 14px; font-weight: 900; }
.login-field input { width: 100%; min-height: 54px; border: 1px solid #ddd6fe; border-radius: 16px; padding: 0 16px; background: #fff; color: #111827; outline: none; box-shadow: 0 12px 28px rgba(109, 40, 217, .07); transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease; }
.login-field input::placeholder { color: #a3a0b3; }
.login-field input:focus { border-color: #8b5cf6; box-shadow: 0 0 0 4px rgba(139, 92, 246, .14), 0 16px 34px rgba(109, 40, 217, .1); transform: translateY(-1px); }
.login-password-wrap { position: relative; display: block; }
.login-password-wrap input { padding-right: 72px; }
.login-form-card .login-password-toggle { position: absolute; top: 50%; right: 10px; transform: translateY(-50%); min-height: 34px; border: 0; border-radius: 999px; padding: 0 12px; background: #f3e8ff; color: #6d28d9; font-size: 12px; font-weight: 900; cursor: pointer; }
.login-form-meta { display: flex; align-items: center; justify-content: space-between; margin-top: -6px; color: #7c3aed; font-size: 13px; font-weight: 900; }
.login-form-meta a, .login-auth-page .login-link a { color: #7c3aed; }
.login-form-card .login-submit { width: 100%; min-height: 54px; border: 0; border-radius: 16px; background: linear-gradient(135deg, #7c3aed 0%, #9333ea 46%, #2563eb 100%); color: #fff; box-shadow: 0 18px 36px rgba(109, 40, 217, .28); font-size: 16px; font-weight: 900; cursor: pointer; transition: transform .16s ease, box-shadow .16s ease; }
.login-form-card .login-submit:hover { transform: translateY(-1px); box-shadow: 0 22px 44px rgba(109, 40, 217, .34); }
.login-auth-page .login-link { margin-top: 24px; color: #7c7f8c; font-size: 14px; font-weight: 800; }

.register-code-row { display: grid; grid-template-columns: 1fr 132px; gap: 10px; }
.register-code-btn { width: 100%; min-height: 54px; border: 0; border-radius: 16px; background: #ede9fe; color: #6d28d9; font-size: 14px; font-weight: 900; cursor: pointer; }
.register-code-btn:disabled { opacity: .7; cursor: not-allowed; }

.forgot-email-row { display: grid; grid-template-columns: 1fr 128px; gap: 10px; align-items: center; }
.forgot-email-row input { width: 100%; }
.forgot-code-btn { min-height: 54px; border: 0; border-radius: 16px; background: #ede9fe; color: #6d28d9; font-size: 14px; font-weight: 900; cursor: pointer; white-space: nowrap; }
.forgot-code-btn:hover { background: #ddd6fe; }

@media (max-width: 760px) {
    .login-page.login-auth-page { padding: 18px; }
    .login-layout { min-height: calc(100vh - 36px); }
    .login-panel { padding: 12px 0; }
    .login-form-card { width: 100%; }
    .login-system-name { margin-bottom: 14px; }
    .login-subtitle { margin-bottom: 22px; }
}
@media (max-width: 420px) {
    .login-page.login-auth-page { padding-inline: 14px; }
    .login-layout { min-height: calc(100vh - 36px); }
    .login-field input, .login-form-card .login-submit { min-height: 50px; border-radius: 14px; }
    .register-code-row { grid-template-columns: 1fr; }
    .forgot-email-row { grid-template-columns: 1fr; }
}
