.login-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
}
.login-modal {
    background: #fff;
    border-radius: 20px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15);
    position: relative;
    animation: loginSlideUp 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
}
@keyframes loginSlideUp {
    from { opacity: 0; transform: translateY(30px) scale(0.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
.login-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.05);
    color: #64748b;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    z-index: 2;
}
.login-close:hover {
    background: rgba(0, 0, 0, 0.1);
    color: #1e293b;
}
.login-modal-header {
    text-align: center;
    padding: 36px 32px 20px;
}
.login-logo {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.login-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.login-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 4px;
}
.login-subtitle {
    font-size: 0.9rem;
    color: #94a3b8;
    margin: 0;
}
.login-modal-body {
    padding: 8px 32px 36px;
}
.login-alert {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 10px;
    padding: 12px 16px;
    color: #dc2626;
    font-size: 0.85rem;
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}
.login-alert i {
    margin-top: 2px;
    flex-shrink: 0;
}
.login-field {
    margin-bottom: 18px;
}
.login-label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: #475569;
    margin-bottom: 6px;
}
.login-label i {
    color: #94a3b8;
    margin-right: 4px;
    font-size: 0.78rem;
}
.login-input {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    font-size: 0.95rem;
    color: #1e293b;
    background: #f8fafc;
    outline: none;
    transition: all 0.2s;
    box-sizing: border-box;
    font-family: inherit;
}
.login-input:focus {
    border-color: #3b82f6;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}
.login-input::placeholder {
    color: #cbd5e1;
}
.login-pass-wrap {
    position: relative;
}
.login-input-pass {
    padding-right: 46px;
}
.login-pass-toggle {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: #94a3b8;
    cursor: pointer;
}
.login-pass-toggle:hover {
    background: #f1f5f9;
    color: #334155;
}
.login-captcha-wrap {
    display: grid;
    grid-template-columns: 1fr 18px 1fr;
    gap: 10px;
    align-items: center;
    margin: 2px 0 14px;
}
.login-captcha-image-wrap {
    display: flex;
    flex-direction: column;
}
.login-captcha-image {
    width: 100%;
    height: 42px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    cursor: pointer;
    object-fit: cover;
}
.login-captcha-help {
    margin-top: 4px;
    color: #94a3b8;
    font-size: 11px;
}
.login-captcha-equal {
    text-align: center;
    color: #64748b;
    font-weight: 700;
}
.login-captcha-input-wrap {
    width: 100%;
}
.login-captcha-input {
    height: 42px;
    margin-bottom: 20px;
}
.login-actions-row {
    display: flex;
    align-items: center;
    gap: 10px;
}
.login-forgot-btn {
    border: none;
    color: #475569;
    background: #fff;
    border-radius: 10px;
    padding: 11px 14px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    margin-top: 12px;
}
.login-forgot-btn:hover {
    color: #fff;
    background: #b5d2ff;
    border: 1px solid #cbd5e1;
}
.login-btn {
    width: 100%;
    padding: 13px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 6px;
    font-family: inherit;
}
.login-reset-panel {
    margin-top: 14px;
    border-top: 1px dashed #e2e8f0;
    padding-top: 14px;
}
.login-back-btn {
    border: none;
    color: #475569;
    background: #fff;
    border-radius: 10px;
    padding: 8px 12px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 10px;
    margin-top: 16px;
}
.login-back-btn:hover {
    background: #f8fafc;
    border: 1px solid #cbd5e1;
}
.login-reset-title {
    margin: 0 0 4px;
    font-weight: 700;
    color: #0f172a;
}
.login-reset-desc {
    margin: 0 0 12px;
    color: #64748b;
    font-size: 12px;
}
.login-method-switch {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 12px;
}
.login-method-btn {
    border: 1px solid #cbd5e1;
    background: #fff;
    color: #475569;
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
}
.login-method-btn i {
    margin-right: 6px;
}
.login-method-btn.active {
    border-color: #2563eb;
    background: #eff6ff;
    color: #1d4ed8;
}
.login-separator {
    text-align: center;
    color: #94a3b8;
    font-size: 12px;
    margin: -4px 0 10px;
}
.login-reset-captcha {
    margin-bottom: 12px;
}
.login-reset-send {
    width: 100%;
    border: 1px solid #2563eb;
    color: #2563eb;
    background: #eff6ff;
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
}
.login-reset-send:hover:not(:disabled) {
    background: #dbeafe;
}
.login-reset-send:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}
.login-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
    transform: translateY(-1px);
}
.login-btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}
.login-fade-enter-active,
.login-fade-leave-active {
    transition: opacity 0.25s;
}
.login-fade-enter,
.login-fade-leave-to {
    opacity: 0;
}
@media (max-width: 480px) {
    .login-modal {
        border-radius: 16px;
        max-width: 100%;
    }
    .login-modal-header {
        padding: 28px 24px 16px;
    }
    .login-modal-body {
        padding: 8px 24px 28px;
    }
    .login-captcha-wrap {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    .login-captcha-equal {
        display: none;
    }
    .login-actions-row {
        flex-direction: column;
    }
    .login-forgot-btn,
    .login-btn {
        width: 100%;
    }
}
