/* ==================== 全局背景动画 ==================== */
.login-page {
    background: linear-gradient(-45deg, #667eea, #764ba2, #f093fb, #f5576c);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    font-family: 'Microsoft YaHei', '微软雅黑', sans-serif;
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* ==================== 登录容器 ==================== */
.login-container {
    max-width: 500px;
    width: 100%;
    margin: 30px auto;
    padding: 45px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.25);
    animation: slideUp 0.6s ease-out;
    border: 1px solid rgba(255, 255, 255, 0.3);
    height: 1000px;
    display: flex;
    flex-direction: column;
    transition: max-width 0.3s ease;
}

.login-container.wide {
    max-width: 700px;
}

/* ==================== Logo区域 ==================== */
.logo-section {
    text-align: center;
    margin-bottom: 25px;
    flex-shrink: 0;
}

.logo-icon {
    font-size: 3.5rem;
    margin-bottom: 12px;
    animation: float 3s ease-in-out infinite;
    display: inline-block;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.logo-title {
    font-size: 1.6rem;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 6px;
}

.logo-subtitle {
    color: #666;
    font-size: 0.9rem;
    font-weight: 400;
}

/* ==================== 标签页切换器 ==================== */
.tab-switcher {
    display: flex;
    gap: 10px;
    background-color: rgba(102, 126, 234, 0.1);
    border-radius: 12px;
    padding: 5px;
    margin-bottom: 1.5rem;
    flex-shrink: 0;
}

.tab-btn {
    flex: 1;
    height: 48px;
    border: none;
    background: transparent;
    border-radius: 10px;
    color: #666;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Microsoft YaHei', '微软雅黑', sans-serif;
}

.tab-btn:hover {
    background-color: rgba(102, 126, 234, 0.15);
}

.tab-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white !important;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

/* ==================== 标签面板（关键样式） ==================== */
.tab-panel {
    display: none !important;
    overflow-y: visible;
    max-height: none;
}

.tab-panel.active {
    display: block !important;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==================== 表单样式 ==================== */
.form-group {
    margin-bottom: 1rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    color: #333;
    font-weight: 600;
    font-size: 0.9rem;
}

.form-control {
    width: 100%;
    padding: 12px 14px;
    background-color: rgba(245, 247, 250, 0.8);
    border: 2px solid #e8ecf1;
    border-radius: 12px;
    font-size: 14px;
    transition: all 0.3s ease;
    font-family: 'Microsoft YaHei', '微软雅黑', sans-serif;
}

.form-control:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
    background-color: white;
}

.form-control::placeholder {
    color: #aaa;
}

/* ==================== 必填项标记 ==================== */
.required::after {
    content: " *";
    color: #ef4444;
    font-weight: bold;
}

/* ==================== 表单行 ==================== */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

/* ==================== 复选框样式 ==================== */
.form-options {
    margin: 0.8rem 0;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: #666;
    font-size: 0.9rem;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* ==================== 按钮样式 ==================== */
.btn {
    width: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 14px;
    font-size: 16px;
    font-weight: 700;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.35);
    cursor: pointer;
    font-family: 'Microsoft YaHei', '微软雅黑', sans-serif;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(102, 126, 234, 0.5);
}

.btn:active {
    transform: translateY(-1px);
}

.btn-block {
    display: block;
}

.btn-lg {
    margin-top: 0.8rem;
}

/* ==================== 错误提示框 ==================== */
.error-message {
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
    border-left: 5px solid #ef4444;
    padding: 12px 16px;
    border-radius: 12px;
    color: #991b1b;
    margin-top: 1rem;
    font-weight: 500;
    font-size: 0.9rem;
    animation: shake 0.5s ease;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.2);
    min-height: 48px;
    display: none;
}

.error-message[style*="block"] {
    display: block;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

/* ==================== 按钮加载状态 ==================== */
.btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none !important;
}

/* ==================== 提示信息框 ==================== */
.info-box {
    background: rgba(102, 126, 234, 0.08);
    border: 1px solid rgba(102, 126, 234, 0.2);
    padding: 14px;
    border-radius: 12px;
    margin-top: 1.5rem;
    color: #4b5563;
    font-size: 0.85rem;
    line-height: 1.8;
    flex-shrink: 0;
}

.info-box strong {
    color: #667eea;
}

.info-box code {
    background: rgba(102, 126, 234, 0.15);
    padding: 3px 8px;
    border-radius: 5px;
    font-weight: 600;
    color: #764ba2;
}

/* ==================== 底部版权 ==================== */
.footer {
    text-align: center;
    color: rgba(83, 83, 83, 0.9);
    margin-top: auto;
    padding-top: 0.5rem;
    font-size: 0.85rem;
    font-weight: 500;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
    flex-shrink: 0;
}