/**
 * 登录和注册页面样式
 * 与page-login.php和page-register.php配合使用
 */

/* 全局重置和基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 登录容器 */
.login-container {
    max-width: 500px;
    width: 100%;
    padding: 200px 20px;
    position: relative;
    box-sizing: border-box;
    margin: 0 auto;

}

.login-title {
    font-size: 24px;
    font-weight: 600;
    color: #000;
    margin-bottom: 10px;
}

.login-subtitle {
    font-size: 14px;
    color: #666;
    margin-bottom: 30px;
}

.login-subtitle a {
    color: #5B5CFF;
    text-decoration: none;
}

/* 表单样式 */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 14px;
    color: #333;
    margin-bottom: 8px;
}

.form-input {
    width: 100%;
    height: 40px;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 0 15px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.form-input:focus {
    outline: none;
    border-color: #5B5CFF;
}

.password-container {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    width: 20px;
    height: 20px;
    background: url('../images/eye-closed.svg') no-repeat center center;
    background-size: contain;
    border: none;
    outline: none;
}

.password-toggle.visible {
    background-image: url('../images/eye-open.svg');
}

.forgot-password {
    float: right;
    text-align: right;
    font-size: 14px;
    margin-top: 5px;
}

.forgot-password a {
    color: #5B5CFF;
    text-decoration: none;
}

/* 登录按钮 */
.login-button {
    width: 100%;
    height: 40px;
    background-color: #5B5CFF;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-top: 20px;
}

.login-button:hover {
    background-color: #4849cc;
}

/* 错误消息 */
.login-error {
    background-color: rgba(255, 85, 85, 0.1);
    border-left: 3px solid #ff5555;
    color: #ff5555;
    padding: 10px 15px;
    margin-bottom: 20px;
    font-size: 14px;
    border-radius: 3px;
}

.brand-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.brand-logo img {
    height: 24px;
    width: auto;
}

.brand-logo span {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-color);
}

/* 验证码样式 */
.verification-code-wrapper {
    display: flex;
    gap: 10px;
}

.verification-code-wrapper .form-control {
    flex: 1;
}

.send-code-button,
.resend-code-button {
    padding: 0 15px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    white-space: nowrap;
    transition: background-color 0.3s;
}

.send-code-button:hover {
    background-color: #4a46e0;
}

.resend-code-button {
    display: none;
    background-color: #f0f0f0;
    color: var(--light-text);
}

.resend-code-button.active {
    display: block;
}

.resend-code-button.disabled {
    cursor: not-allowed;
    opacity: 0.7;
}

.countdown {
    font-size: 12px;
}

/* 品牌标志区域 */
.right {
    font-size: 24px;
    font-family: Adobe Heiti Std;
    color: #040404;
    height: 40px;
    display: flex;
    justify-content: center;
    position: fixed;
    height: 100vh;
    right: 280px;
    align-items: center;
    top: 0;
}

.right img,
.top-logo img {
    width: 40px;
    margin-right: 15px;
    margin-bottom: -10px;
}

.right::before {
    display: block;
    content: "";
    position: absolute;
    top: 0;
    bottom: calc(50% + 40px);
    left: 50%;
    width: 2px;
    background-color: #CAC8C8;
}

.right::after {
    display: block;
    content: "";
    position: absolute;
    top: calc(50% + 50px);
    bottom: 0;
    left: 50%;
    width: 2px;
    background-color: #CAC8C8;
}

.top-logo {
    display: none;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    font-family: Adobe Heiti Std;
    color: #040404;
    margin-bottom: 80px;
}

/* 响应式调整 */
@media (max-width: 1200px) {
    .right {
        display: flex;
        right: 280px;
    }

    .top-logo {
        display: none;
    }
}

@media (max-width: 992px) {
    .right {
        display: flex;
        right: 220px;
    }

    .top-logo {
        display: none;
    }
}

@media (max-width: 768px) {
    .login-container {
        position: relative;
        left: 0;
    }

    .right {
        display: none;
    }

    .top-logo {
        display: flex;
    }
}

@media (max-width: 480px) {


    /* 登录容器 */
    .login-container {
        max-width: 100%;
        width: 100%;
        padding: 50px 30px;
    }

    .login-form-wrapper {
        padding: 0 15px;
    }

    .login-title {
        font-size: 22px;
    }

    .verification-code-wrapper {
        flex-direction: column;
    }

    .send-code-button,
    .resend-code-button {
        padding: 10px 15px;
    }
}