/* 登录弹窗样式 */
.login-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.login-modal.active {
    display: flex;
}

.login-box {
    background: white;
    border-radius: 20px;
    padding: 32px 24px;
    width: 90%;
    max-width: 400px;
    position: relative;
}

.login-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    border: none;
    background: var(--light-gray);
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    line-height: 1;
}

.login-title {
    font-size: 24px;
    font-weight: 900;
    margin-bottom: 8px;
    text-align: center;
}

.login-subtitle {
    font-size: 14px;
    color: var(--gray);
    margin-bottom: 24px;
    text-align: center;
}

.login-input-group {
    margin-bottom: 16px;
}

.login-label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
    display: block;
}

.login-input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--light-gray);
    border-radius: 12px;
    font-size: 16px;
    font-family: inherit;
}

.login-input:focus {
    outline: none;
    border-color: var(--lime);
}

.login-code-row {
    display: flex;
    gap: 12px;
}

.login-code-row .login-input {
    flex: 1;
}

.login-send-code-btn {
    padding: 14px 20px;
    background: var(--lime);
    color: var(--black);
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
}

.login-send-code-btn:disabled {
    background: var(--light-gray);
    color: var(--gray);
    cursor: not-allowed;
}

.login-submit-btn {
    width: 100%;
    padding: 16px;
    background: var(--black);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 24px;
}

.login-submit-btn:disabled {
    background: var(--light-gray);
    color: var(--gray);
    cursor: not-allowed;
}

.login-error {
    color: var(--red);
    font-size: 12px;
    margin-top: 8px;
    display: none;
}

.login-error.active {
    display: block;
}

.login-success {
    color: var(--green);
    font-size: 12px;
    margin-top: 8px;
    display: none;
}

.login-success.active {
    display: block;
}
