/* 简约登录页面样式 */
.modern-login {
    background: #f8f9fa;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.login-bg-overlay {
    display: none;
}

.modern-container {
    background: #ffffff;
    border-radius: 8px;
    padding: 40px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border: 1px solid #e9ecef;
}

/* 协议相关样式 */
.agreement-wrapper {
    margin-bottom: 20px !important;
}

.agreement-checkbox {
    font-size: 14px !important;
    color: #606266 !important;
}

.agreement-checkbox .el-checkbox__label {
    font-size: 14px !important;
    color: #606266 !important;
    line-height: 1.5 !important;
}

.agreement-link {
    color: #409eff !important;
    text-decoration: none !important;
    font-weight: 500 !important;
}

.agreement-link:hover {
    color: #66b1ff !important;
    text-decoration: underline !important;
}

.agreement-dialog .el-dialog__header {
    background: #f5f7fa;
    border-bottom: 1px solid #e4e7ed;
}

.agreement-dialog .el-dialog__title {
    font-size: 16px;
    font-weight: 600;
    color: #303133;
}

.agreement-content {
    padding: 20px 0;
    line-height: 1.6;
    color: #606266;
}

.agreement-content h3 {
    font-size: 18px;
    font-weight: 600;
    color: #303133;
    margin-bottom: 16px;
    border-bottom: 2px solid #409eff;
    padding-bottom: 8px;
}

.agreement-content p {
    margin-bottom: 12px;
    font-size: 14px;
    text-indent: 0;
}

.dialog-footer {
    text-align: center;
}

/* 简化动画效果 */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modern-header {
    text-align: center;
    margin-bottom: 30px;
}

.modern-title {
    font-size: 24px;
    font-weight: 600;
    color: #333333;
    margin-bottom: 8px;
}

.modern-subtitle {
    font-size: 14px;
    color: #666666;
    font-weight: 400;
}

.login-form-wrapper {
    margin-bottom: 30px;
}

/* Element UI 输入框样式优化 */
.modern-container .el-form-item {
    margin-bottom: 20px;
}

.modern-container .el-input__inner {
    height: 44px !important;
    border-radius: 6px !important;
    border: 1px solid #dcdfe6 !important;
    font-size: 14px !important;
    padding-left: 40px !important;
    transition: border-color 0.3s ease !important;
    background: #ffffff !important;
}

.modern-container .el-input__inner:focus {
    border-color: #409eff !important;
    box-shadow: none !important;
}

.modern-container .el-input__prefix {
    left: 12px !important;
    color: #909399 !important;
}

.modern-container .el-input__prefix .el-input__icon {
    font-size: 16px !important;
}

/* 按钮组样式 */
.button-group-wrapper {
    margin-bottom: 0 !important;
}

.modern-button-group {
    gap: 10px;
}

.modern-login-btn.el-button--primary {
    height: 44px !important;
    border-radius: 6px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    background: #409eff !important;
    border: 1px solid #409eff !important;
    transition: all 0.3s ease !important;
}

.modern-login-btn.el-button--primary:hover {
    background: #66b1ff !important;
    border-color: #66b1ff !important;
}

.modern-code-btn.el-button--default {
    height: 44px !important;
    border-radius: 6px !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    background: #ffffff !important;
    border: 1px solid #dcdfe6 !important;
    color: #606266 !important;
    transition: all 0.3s ease !important;
    min-width: 120px;
}

.modern-code-btn.el-button--default:hover {
    border-color: #c6e2ff !important;
    background: #ecf5ff !important;
    color: #409eff !important;
}

.modern-code-btn.el-button--default:disabled {
    background: #f5f7fa !important;
    border-color: #e4e7ed !important;
    color: #c0c4cc !important;
}

.modern-code-btn.el-button--default:disabled {
    background: rgba(248, 249, 250, 0.9) !important;
    border-color: #e8ecf0 !important;
    color: #bdc3c7 !important;
    transform: none !important;
}

/* 页脚样式 */
.modern-footer {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.modern-footer a {
    color: #667eea;
    text-decoration: none;
    font-size: 14px;
    margin: 0 8px;
    transition: color 0.3s ease;
}

.modern-footer a:hover {
    color: #764ba2;
    text-decoration: underline;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .modern-container {
        margin: 20px;
        padding: 30px 20px;
        max-width: none;
    }
    
    .modern-title {
        font-size: 20px;
    }
    
    .modern-container .el-input__inner {
        height: 40px !important;
        font-size: 14px !important;
    }
    
    .modern-login-btn.el-button--primary,
    .modern-code-btn.el-button--default {
        height: 40px !important;
        font-size: 14px !important;
    }
    
    .modern-button-group {
        flex-direction: column;
        gap: 12px;
    }
    
    .modern-code-btn.el-button--default {
        min-width: auto;
    }
}

/* 加载状态优化 */
.modern-login-btn.is-loading,
.modern-code-btn.is-loading {
    position: relative;
}

.modern-login-btn.is-loading::after,
.modern-code-btn.is-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 表单验证错误状态 */
.modern-container .el-form-item.is-error .el-input__inner {
    border-color: #e74c3c !important;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1) !important;
}

/* 成功状态 */
.modern-container .el-form-item.is-success .el-input__inner {
    border-color: #27ae60 !important;
    box-shadow: 0 0 0 3px rgba(39, 174, 96, 0.1) !important;
}