/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
    line-height: 1.6;
    transition: background 0.4s;
}

.container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* 认证页面样式 */
.auth-container {
    width: 100%;
    max-width: 400px;
}

.auth-box {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-header h1 {
    color: #4a5568;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 10px;
}

.auth-header p {
    color: #718096;
    font-size: 16px;
}

.auth-tabs {
    display: flex;
    margin-bottom: 30px;
    background: #f7fafc;
    border-radius: 12px;
    padding: 4px;
}

.tab-btn {
    flex: 1;
    padding: 12px 20px;
    border: none;
    background: transparent;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #718096;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-btn.active {
    background: #667eea;
    color: white;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.auth-form {
    display: none;
}

.auth-form.active {
    display: block;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #4a5568;
    font-size: 14px;
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: white;
}

.form-group input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.btn {
    width: 100%;
    padding: 14px 20px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 2px 8px rgba(102,126,234,0.10);
    transition: all 0.18s, box-shadow 0.18s;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
    box-shadow: 0 4px 16px rgba(102,126,234,0.13);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 8px 24px rgba(102,126,234,0.18);
}

.btn-secondary {
    background: #f7fafc;
    color: #4a5568;
    border: 2px solid #e2e8f0;
}

.btn-secondary:hover {
    background: #edf2f7;
    border-color: #cbd5e0;
}

.btn-logout {
    background: #fed7d7;
    color: #c53030;
    font-size: 14px;
    padding: 8px 16px;
    width: auto;
}

.btn-logout:hover {
    background: #feb2b2;
}

.message {
    margin-top: 20px;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    text-align: center;
    display: none;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s;
}

.message.success {
    background: #c6f6d5;
    color: #22543d;
    border: 1px solid #9ae6b4;
    display: block;
}

.message.error {
    background: #fed7d7;
    color: #c53030;
    border: 1px solid #feb2b2;
    display: block;
}

/* 新增/优化：全局阴影、圆角、过渡、按钮渐变、输入聚焦、弹窗动画、消息提示动画等 */
input, textarea, select {
    border-radius: 10px;
    border: 2px solid #e2e8f0;
    padding: 12px 16px;
    font-size: 15px;
    transition: border 0.2s, box-shadow 0.2s;
    background: #fff;
}
input:focus, textarea:focus, select:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102,126,234,0.10);
    outline: none;
}

/* 通用组件样式 */
.card {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
}

/* ========== 弹窗美化升级 ========== */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(40, 48, 72, 0.25);
    backdrop-filter: blur(6px) saturate(120%);
    -webkit-backdrop-filter: blur(6px) saturate(120%);
    transition: background 0.3s;
}

.modal-content {
    background: linear-gradient(120deg, #fff 80%, #e9eafc 100%);
    margin: 5% auto;
    padding: 0;
    border-radius: 22px;
    width: 95%;
    max-width: 540px;
    box-shadow: 0 12px 48px rgba(102,126,234,0.18), 0 2px 8px rgba(102,126,234,0.08);
    position: relative;
    animation: modalPopIn 0.38s cubic-bezier(.4,2,.6,1) both;
    border: none;
    overflow: hidden;
}
@keyframes modalPopIn {
    0% { transform: translateY(60px) scale(0.92); opacity: 0; }
    80% { transform: scale(1.04); opacity: 1; }
    100% { transform: none; }
}
.close {
    color: #a0aec0;
    float: right;
    font-size: 32px;
    font-weight: bold;
    position: absolute;
    right: 24px;
    top: 18px;
    cursor: pointer;
    z-index: 1;
    transition: color 0.18s, transform 0.18s;
}
.close:hover {
    color: #667eea;
    transform: scale(1.18) rotate(8deg);
}
#modal-body {
    padding: 38px 36px 32px 36px;
    min-height: 80px;
    background: transparent;
}
@media (max-width: 600px) {
    .modal-content {
        border-radius: 12px;
        width: 99vw;
        max-width: 99vw;
    }
    #modal-body {
        padding: 18px 8px 18px 8px;
    }
}
/* 弹窗内表单美化 */
#modal-body form .form-group {
    margin-bottom: 22px;
}
#modal-body form label {
    font-weight: 600;
    color: #4a5568;
    margin-bottom: 7px;
    display: block;
    font-size: 15px;
}
#modal-body input[type="text"],
#modal-body input[type="email"],
#modal-body input[type="password"],
#modal-body input[type="number"],
#modal-body textarea {
    width: 100%;
    padding: 13px 16px;
    border-radius: 12px;
    border: 2px solid #e2e8f0;
    font-size: 15px;
    background: #f7fafc;
    transition: border 0.2s, box-shadow 0.2s;
    margin-bottom: 2px;
}
#modal-body input:focus,
#modal-body textarea:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102,126,234,0.10);
    outline: none;
}
#modal-body .btn {
    border-radius: 10px;
    font-size: 16px;
    font-weight: 700;
    padding: 13px 0;
    margin-top: 8px;
    box-shadow: 0 2px 8px rgba(102,126,234,0.10);
    transition: background 0.18s, box-shadow 0.18s, transform 0.18s;
}
#modal-body .btn-primary {
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
}
#modal-body .btn-primary:hover {
    background: linear-gradient(90deg, #764ba2 0%, #667eea 100%);
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 8px 24px rgba(102,126,234,0.18);
}
#modal-body .btn-secondary {
    background: #f7fafc;
    color: #4a5568;
    border: 2px solid #e2e8f0;
}
#modal-body .btn-secondary:hover {
    background: #edf2f7;
    border-color: #cbd5e0;
}
#modal-body .btn-logout {
    background: #fed7d7;
    color: #c53030;
    font-size: 14px;
    padding: 8px 16px;
    width: auto;
}
#modal-body .btn-logout:hover {
    background: #feb2b2;
}
/* 弹窗内标题美化 */
#modal-body h3 {
    font-size: 22px;
    font-weight: 800;
    color: #667eea;
    margin-bottom: 22px;
    letter-spacing: 0.5px;
    text-align: center;
}
/* 弹窗内输入框、按钮间距优化 */
#modal-body .form-group input,
#modal-body .form-group textarea {
    margin-bottom: 0;
}
/* 弹窗内多选角色标签美化 */
#modal-body label input[type="checkbox"] {
    accent-color: #667eea;
    margin-right: 5px;
    transform: scale(1.15);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .auth-box {
        padding: 30px 20px;
        margin: 10px;
    }
    
    .auth-header h1 {
        font-size: 24px;
    }
    
    .btn {
        padding: 12px 16px;
        font-size: 14px;
    }
}

/* 加载动画 */
.loading {
    display: inline-block;
    color: #667eea;
    font-weight: 500;
    font-size: 14px;
}

/* 工具提示 */
.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip .tooltiptext {
    visibility: hidden;
    width: 120px;
    background-color: #555;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 5px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    margin-left: -60px;
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 12px;
}

.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
} 