/* login.css - 登录页面样式 */

/* 重置样式 */
.login-page * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 登录页面整体样式 */
.login-page {
    width: 100%;
    min-height: calc(100vh - 400px); /* 考虑头部和底部高度 */
    background-color: #f8f9fa;
    font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
}

/* 登录页面banner */
.login-banner {
    position: relative;
    width: 100%;
    height: 300px;
    background-image: url('../images/login-banner.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 备用背景色，如果图片不存在 */
.login-banner:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #08358f 0%, #1a4cb3 50%, #0a3ba8 100%);
    z-index: 1;
}

/* 如果存在背景图片，添加遮罩层 */
.login-banner:after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(8, 53, 143, 0.7);
    z-index: 2;
}

.banner-overlay {
    position: relative;
    z-index: 3;
    text-align: center;
    color: white;
    padding: 20px;
    max-width: 800px;
}

.banner-text h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.banner-text p {
    font-size: 1.3rem;
    opacity: 0.9;
    margin-bottom: 0;
}

/* 登录容器 - 修改为最大宽度1400px */
.login-container {
    width: 100%;
    max-width: 1400px; /* 改为1400px */
    margin: -80px auto 60px;
    padding: 0 40px;
    position: relative;
    z-index: 10;
}

.login-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    background-color: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    padding: 40px;
}

/* 登录表单区域 */
.login-form-container {
    flex: 1;
    min-width: 350px;
    padding: 20px;
}

.login-header {
    margin-bottom: 35px;
    text-align: center;
}

.login-header h2 {
    color: #08358f;
    font-size: 2rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.login-header p {
    color: #666;
    font-size: 1.1rem;
}

/* 表单样式 */
.login-form {
    margin-bottom: 30px;
}

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

.form-group label {
    display: block;
    color: #333;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-group input {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: #f9f9f9;
}

.form-group input:focus {
    border-color: #08358f;
    background-color: white;
    outline: none;
    box-shadow: 0 0 0 3px rgba(8, 53, 143, 0.1);
}

/* 密码输入框 */
.password-input-wrapper {
    position: relative;
}

.password-input-wrapper input {
    padding-right: 50px;
}

.toggle-password {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    font-size: 1.2rem;
    padding: 5px;
    transition: color 0.3s ease;
}

.toggle-password:hover {
    color: #08358f;
}

/* 表单错误信息 */
.form-error {
    color: #e74c3c;
    font-size: 0.9rem;
    margin-top: 5px;
    min-height: 20px;
}

/* 表单选项 */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.checkbox-container {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 0.95rem;
    color: #555;
    position: relative;
    padding-left: 30px;
}

.checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: absolute;
    left: 0;
    top: 0;
    height: 20px;
    width: 20px;
    background-color: #eee;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.checkbox-container:hover input ~ .checkmark {
    background-color: #ccc;
}

.checkbox-container input:checked ~ .checkmark {
    background-color: #08358f;
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.checkbox-container input:checked ~ .checkmark:after {
    display: block;
}

.checkbox-container .checkmark:after {
    left: 7px;
    top: 3px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.forgot-password {
    color: #08358f;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.forgot-password:hover {
    color: #1a4cb3;
    text-decoration: underline;
}

/* 提交按钮 */
.form-actions {
    margin-bottom: 25px;
}

.submit-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #08358f 0%, #1a4cb3 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.submit-btn:hover {
    background: linear-gradient(135deg, #1a4cb3 0%, #08358f 100%);
    transform: translateY(-3px);
    box-shadow: 0 7px 15px rgba(8, 53, 143, 0.3);
}

.submit-btn:active {
    transform: translateY(-1px);
}

/* 表单底部 */
.form-footer {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.form-footer p {
    color: #666;
    font-size: 1rem;
}

.register-link {
    color: #08358f;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}

.register-link:hover {
    color: #1a4cb3;
    text-decoration: underline;
}

/* 登录说明区域 */
.login-info {
    flex: 1;
    min-width: 350px;
    padding: 20px;
    background-color: #f8fafc;
    border-radius: 10px;
}

.info-box {
    background-color: white;
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.info-box:hover {
    transform: translateY(-5px);
}

.info-icon {
    font-size: 2.5rem;
    color: #08358f;
    margin-bottom: 15px;
}

.info-box h3 {
    color: #08358f;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.info-box p {
    color: #555;
    line-height: 1.6;
    font-size: 1rem;
}

.info-box a {
    color: #08358f;
    text-decoration: none;
    font-weight: 600;
}

.info-box a:hover {
    text-decoration: underline;
}

.info-box strong {
    color: #333;
}

/* 响应式设计 */

/* 1200px以下 */
@media screen and (max-width: 1200px) {
    .login-container {
        padding: 0 30px;
    }

    .login-wrapper {
        padding: 30px;
    }
}

/* 992px以下 */
@media screen and (max-width: 992px) {
    .login-banner {
        height: 250px;
    }

    .banner-text h1 {
        font-size: 2.5rem;
    }

    .banner-text p {
        font-size: 1.1rem;
    }

    .login-container {
        margin-top: -60px;
    }
}

/* 768px以下 - 平板 */
@media screen and (max-width: 768px) {
    .login-banner {
        height: 200px;
    }

    .banner-text h1 {
        font-size: 2rem;
    }

    .login-container {
        padding: 0 20px;
        margin-top: -40px;
        margin-bottom: 40px;
    }

    .login-wrapper {
        padding: 25px;
        gap: 30px;
    }

    .login-form-container,
    .login-info {
        min-width: 100%;
    }

    .login-header h2 {
        font-size: 1.8rem;
    }
}

/* 600px以下 - 手机大屏幕 */
@media screen and (max-width: 600px) {
    .login-banner {
        height: 180px;
    }

    .banner-text h1 {
        font-size: 1.8rem;
    }

    .banner-text p {
        font-size: 1rem;
    }

    .login-container {
        padding: 0 15px;
        margin-top: -30px;
    }

    .login-wrapper {
        padding: 20px;
    }

    .form-group input {
        padding: 12px 15px;
    }

    .submit-btn {
        padding: 14px;
    }

    .info-box {
        padding: 20px;
    }

    .form-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .forgot-password {
        align-self: flex-end;
    }
}

/* 480px以下 - 手机小屏幕 */
@media screen and (max-width: 480px) {
    .login-banner {
        height: 150px;
    }

    .banner-overlay {
        padding: 10px;
    }

    .banner-text h1 {
        font-size: 1.5rem;
    }

    .login-container {
        padding: 0 10px;
        margin-top: -20px;
    }

    .login-wrapper {
        padding: 15px;
    }
}