/* 主要内容 */
.main {
    min-height: calc(100vh - 80px - 60px);
    background: var(--bg-color);
    padding: 40px 0;
}

/* 登录区域 */
.login-wrapper {
    display: grid;
    grid-template-columns: 450px 1fr;
    gap: 40px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    overflow: hidden;
}

/* 登录表单 */
.login-form {
    padding: 40px;
}

.login-form h2 {
    font-size: 28px;
    color: var(--text-color);
    margin-bottom: 30px;
    text-align: center;
}

/* 表单项 */
.form-item {
    margin-bottom: 20px;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    transition: all 0.3s;
}

.input-wrapper:focus-within {
    border-color: var(--primary-color);
}

.input-wrapper .icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
}

.input-wrapper input {
    flex: 1;
    height: 40px;
    border: none;
    padding: 0 10px;
    font-size: 14px;
}

.input-wrapper input:focus {
    outline: none;
}

/* 密码可见性切换 */
.toggle-password {
    cursor: pointer;
    transition: color 0.3s;
}

.toggle-password:hover {
    color: var(--primary-color);
}

/* 验证码 */
.captcha-wrapper {
    gap: 10px;
}

.captcha-image {
    height: 40px;
    border-radius: 4px;
    cursor: pointer;
}

/* 错误提示 */
.error-message {
    font-size: 12px;
    color: #f56c6c;
    margin-top: 5px;
    min-height: 17px;
}

/* 记住密码 */
.checkbox-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
}

.checkbox-wrapper input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.checkbox-text {
    font-size: 14px;
    color: var(--text-color);
}

.forgot-password {
    font-size: 14px;
    color: #999;
    transition: color 0.3s;
}

.forgot-password:hover {
    color: var(--primary-color);
}

/* 登录按钮 */
.btn-login {
    width: 100%;
    height: 44px;
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-login:hover {
    background: #c13026;
}

/* 其他登录方式 */
.other-login {
    margin-top: 30px;
}

.divider {
    position: relative;
    text-align: center;
    margin-bottom: 20px;
}

.divider::before,
.divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: calc(50% - 100px);
    height: 1px;
    background: var(--border-color);
}

.divider::before {
    left: 0;
}

.divider::after {
    right: 0;
}

.divider span {
    background: #fff;
    padding: 0 20px;
    color: #999;
    font-size: 14px;
}

.login-methods {
    display: flex;
    justify-content: center;
    gap: 30px;
}

.login-method {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: transform 0.3s;
}

.login-method:hover {
    transform: translateY(-3px);
}

.login-method.wechat {
    background: #07c160;
}

.login-method.qq {
    background: #12b7f5;
}

.login-method.weibo {
    background: #e6162d;
}

/* 注册入口 */
.register-link {
    margin-top: 20px;
    text-align: center;
    font-size: 14px;
    color: #999;
}

.register-link a {
    color: var(--primary-color);
    transition: color 0.3s;
}

.register-link a:hover {
    color: #c13026;
}

/* 登录广告 */
.login-banner {
    position: relative;
    background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
}

.login-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 响应式布局 */
@media screen and (max-width: 1024px) {
    .login-wrapper {
        grid-template-columns: 400px 1fr;
    }
}

@media screen and (max-width: 768px) {
    .login-wrapper {
        grid-template-columns: 1fr;
    }

    .login-banner {
        display: none;
    }

    .login-form {
        padding: 30px 20px;
    }

    .divider::before,
    .divider::after {
        width: calc(50% - 80px);
    }
}

/* 图标字体 */
.icon {
    font-family: "iconfont" !important;
    font-style: normal;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.icon-user::before {
    content: "\e7ae";
}

.icon-lock::before {
    content: "\e7c9";
}

.icon-eye::before {
    content: "\e7a5";
}

.icon-shield::before {
    content: "\e7b2";
}

.icon-wechat::before {
    content: "\e7e5";
}

.icon-qq::before {
    content: "\e7a9";
}

.icon-weibo::before {
    content: "\e7e4";
} 