/* 登录弹窗样式 */
.login-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.login-modal.active {
    display: flex;
}

.login-modal-content {
    position: relative;
    width: 460px;
    background: #ffffff;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.login-modal-header {
    position: relative;
    margin-bottom: 30px;
}

.login-modal-title {
    font-size: 24px;
    font-weight: 600;
    color: #333333;
    text-align: center;
    margin: 0;
}

.login-modal-close {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 24px;
    color: #999999;
    line-height: 1;
    transition: color 0.3s;
}

.login-modal-close:hover {
    color: #333333;
}

.login-modal-body {
    margin-bottom: 20px;
}

.login-form-group {
    margin-bottom: 20px;
}

.login-phone-input {
    display: flex;
    gap: 10px;
    align-items: center;
}

.login-country-code {
    position: relative;
    width: 80px;
}

.login-country-code select {
    width: 100%;
    height: 48px;
    padding: 0 30px 0 12px;
    border: 1px solid #E5E5E5;
    border-radius: 8px;
    font-size: 14px;
    color: #333333;
    background: #ffffff;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    outline: none;
    transition: border-color 0.3s;
}

.login-country-code select:focus {
    border-color: #1F3A8C;
}

.login-country-code::after {
    content: '▼';
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 10px;
    color: #999999;
    pointer-events: none;
}

.login-input {
    flex: 1;
    height: 48px;
    padding: 0 16px;
    border: 1px solid #E5E5E5;
    border-radius: 8px;
    font-size: 14px;
    color: #333333;
    outline: none;
    transition: border-color 0.3s;
}

.login-input:focus {
    border-color: #1F3A8C;
}

.login-input::placeholder {
    color: #CCCCCC;
}

.login-code-input {
    display: flex;
    gap: 10px;
}

.login-code-btn {
    width: 120px;
    height: 48px;
    background: #ffffff;
    border: 1px solid #E5E5E5;
    border-radius: 8px;
    font-size: 14px;
    color: #666666;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
}

.login-code-btn:hover {
    border-color: #1F3A8C;
    color: #1F3A8C;
}

.login-code-btn:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

.login-submit-btn {
    width: 100%;
    height: 50px;
    background: linear-gradient(135deg, #2E5DFD 0%, #1F3A8C 100%);
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.3s;
}

.login-submit-btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(31, 58, 140, 0.3);
}

.login-modal-footer {
    text-align: center;
    font-size: 13px;
    color: #999999;
    margin-top: 20px;
}

.login-modal-footer a {
    color: #1F3A8C;
    text-decoration: none;
    transition: color 0.3s;
}

.login-modal-footer a:hover {
    color: #2E5DFD;
}
