/* 登录弹窗样式 */
.login-dialog-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 3000;
    backdrop-filter: blur(4px);
}

.login-dialog {
    background: #fff;
    border-radius: 16px;
    width: 90%;
    max-width: 450px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.login-dialog-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 24px 0;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 16px;
    margin-bottom: 24px;
}

.login-dialog-header h3 {
    font-size: 20px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0;
}

.login-dialog-close {
    background: none;
    border: none;
    font-size: 28px;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s;
}

.login-dialog-close:hover {
    background: #f5f5f5;
    color: #333;
}

.login-dialog-body {
    padding: 0 24px 24px;
}

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

.login-input-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin-bottom: 8px;
}

.login-input-group input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s;
    box-sizing: border-box;
}

.login-input-group input:focus {
    border-color: #2563EB;
    outline: none;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

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

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

.btn-send-code {
    padding: 12px 20px;
    background: linear-gradient(135deg, #2563EB 0%, #3B82F6 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s;
    min-width: 110px;
}

.btn-send-code:hover:not(:disabled) {
    background: linear-gradient(135deg, #1D4ED8 0%, #2563EB 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.btn-send-code:disabled {
    background: #d1d5db;
    cursor: not-allowed;
    opacity: 0.6;
}

.login-agreement {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 24px;
    font-size: 13px;
    color: #666;
    line-height: 1.5;
}

.login-agreement input[type="checkbox"] {
    margin-top: 2px;
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.login-agreement label {
    cursor: pointer;
    user-select: none;
}

.login-agreement a {
    color: #2563EB;
    text-decoration: none;
}

.login-agreement a:hover {
    text-decoration: underline;
}

.btn-login {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #2563EB 0%, #3B82F6 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-login:hover:not(:disabled) {
    background: linear-gradient(135deg, #1D4ED8 0%, #2563EB 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

.btn-login:disabled {
    background: #d1d5db;
    cursor: not-allowed;
    opacity: 0.6;
}

/* 移动端适配 */
@media (max-width: 767px) {
    .login-dialog {
        width: 95%;
        max-width: none;
        border-radius: 12px;
    }
    
    .login-dialog-header {
        padding: 20px 20px 0;
        padding-bottom: 12px;
        margin-bottom: 20px;
    }
    
    .login-dialog-header h3 {
        font-size: 18px;
    }
    
    .login-dialog-body {
        padding: 0 20px 20px;
    }
    
    .login-input-group {
        margin-bottom: 16px;
    }
    
    .login-code-input {
        flex-direction: column;
        gap: 12px;
    }
    
    .btn-send-code {
        width: 100%;
    }
}

/* 协议提示对话框样式 */
.agreement-prompt-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 4000;
    backdrop-filter: blur(4px);
}

.agreement-prompt-dialog {
    background: #fff;
    border-radius: 16px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease-out;
}

.agreement-prompt-header {
    padding: 24px 24px 0;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 16px;
    margin-bottom: 20px;
}

.agreement-prompt-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0;
}

.agreement-prompt-body {
    padding: 0 24px 24px;
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

.agreement-link {
    color: #2563EB;
    text-decoration: underline;
    cursor: pointer;
    margin: 0 2px;
}

.agreement-link:hover {
    color: #1d4ed8;
}

.agreement-prompt-footer {
    display: flex;
    gap: 12px;
    padding: 0 24px 24px;
}

.agreement-prompt-footer .btn-cancel,
.agreement-prompt-footer .btn-continue {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.agreement-prompt-footer .btn-cancel {
    background: #f5f5f5;
    color: #666;
}

.agreement-prompt-footer .btn-cancel:hover {
    background: #e5e5e5;
}

.agreement-prompt-footer .btn-continue {
    background: linear-gradient(135deg, #2563EB 0%, #3B82F6 100%);
    color: #fff;
}

.agreement-prompt-footer .btn-continue:hover {
    background: linear-gradient(135deg, #1D4ED8 0%, #2563EB 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

/* 移动端适配 */
@media (max-width: 767px) {
    .agreement-prompt-dialog {
        width: 95%;
        border-radius: 12px;
    }
    
    .agreement-prompt-header,
    .agreement-prompt-body,
    .agreement-prompt-footer {
        padding-left: 20px;
        padding-right: 20px;
    }
}

