/**
 * 登录页专用样式
 * Hifoune 配件查询系统
 */

/* ==================== 登录页顶部覆盖样式 ==================== */
.topbox {
    background: #fff !important;
    box-shadow: none !important;
}

.topbox .fl img {
    filter: none !important;
}

.topbox > ul > a,
.topbox #langDropdown,
.topbox #userDropdown {
    color: #333 !important;
}

.topbox > ul > a:hover,
.topbox #langDropdown:hover,
.topbox #userDropdown:hover {
    color: #1B7FE1 !important;
    text-shadow: none !important;
}

/* ==================== 登录页背景 ==================== */
body.login-page {
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, #1B7FE1 0%, #1568B8 100%);
}

.loginbg {
    min-height: calc(100vh - 85px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

/* ==================== 登录框 ==================== */
.login {
    width: 100%;
    max-width: 450px;
    background: rgba(255, 255, 255, 0.98);
    padding: 40px 50px;
    border-radius: 20px;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.35);
    position: relative;
    overflow: hidden;
}

.login::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #1B7FE1, #1568B8);
}

.login-title {
    color: #1B7FE1;
    margin-bottom: 35px;
    text-align: center;
    font-size: 26px;
    font-weight: 600;
    letter-spacing: 2px;
}

/* ==================== 表单样式 ==================== */
.form-group {
    margin-bottom: 25px;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    color: #555;
    font-weight: 500;
    font-size: 14px;
}

.form-control {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e8e8e8;
    border-radius: 10px;
    font-size: 15px;
    transition: all 0.3s ease;
    background: #fafafa;
}

.form-control:focus {
    outline: none;
    border-color: #1B7FE1;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(27, 127, 225, 0.15);
}

/* ==================== 验证码 ==================== */
.code {
    display: inline-block;
    background: linear-gradient(135deg, #1B7FE1 0%, #1568B8 100%);
    color: white;
    padding: 4px 15px;
    border-radius: 6px;
    margin-left: 15px;
    font-weight: bold;
    letter-spacing: 3px;
    font-size: 16px;
    cursor: pointer;
    transition: transform 0.2s;
}

.code:hover {
    transform: scale(1.05);
}

/* ==================== 清除按钮 ==================== */
.clear-btn {
    position: absolute;
    right: 12px;
    top: 45px;
    cursor: pointer;
    color: #aaa;
    font-size: 20px;
    width: 24px;
    height: 24px;
    line-height: 24px;
    text-align: center;
    border-radius: 50%;
    transition: all 0.2s;
}

.clear-btn:hover {
    color: #1B7FE1;
    background: rgba(27, 127, 225, 0.1);
}

.clear-captcha {
    top: 55px;
}

/* ==================== 警告框 ==================== */
.alert {
    padding: 15px 18px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-danger {
    background: #fee2e2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.alert-danger::before {
    content: '!';
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    background: #dc2626;
    color: white;
    border-radius: 50%;
    font-weight: bold;
    font-size: 12px;
}

.alert-success {
    background: #dcfce7;
    color: #16a34a;
    border: 1px solid #bbf7d0;
}

.alert-success::before {
    content: '✓';
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    background: #16a34a;
    color: white;
    border-radius: 50%;
    font-weight: bold;
    font-size: 12px;
}

/* ==================== 登录按钮 ==================== */
.btn-login {
    width: 100%;
    padding: 16px;
    font-size: 17px;
    font-weight: 600;
    background: linear-gradient(135deg, #1B7FE1 0%, #1568B8 100%);
    color: white;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-top: 10px;
}

.btn-login:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(27, 127, 225, 0.45);
}

.btn-login:active {
    transform: translateY(-1px);
}

/* ==================== 响应式调整 ==================== */
@media (max-width: 768px) {
    .login {
        padding: 30px 25px;
    }
    
    .login-title {
        font-size: 22px;
    }
    
    .form-control {
        padding: 12px 14px;
    }
    
    .btn-login {
        padding: 14px;
        font-size: 15px;
    }
}
