/* 登录注册页面特有样式 */

/* 登录页面整体布局 */
.login-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* 顶部Logo区域 */
.login-header {
    background: #fff;
    padding: 20px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.login-header .container {
    display: flex;
    align-items: center;
}

.login-header .logo h1 {
    font-size: 32px;
    color: #e74c3c;
    font-weight: bold;
}

.login-header .logo span {
    font-size: 14px;
    color: #999;
    margin-left: 15px;
    padding-left: 15px;
    border-left: 1px solid #ddd;
}

/* 登录主体区域 */
.login-main {
    flex: 1;
    display: flex;
    align-items: center;
    padding: 40px 0;
}

.login-main .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1100px;
}

/* 左侧广告区域 */
.login-banner {
    flex: 1;
    margin-right: 60px;
}

.banner-content {
    color: #fff;
    text-align: center;
}

.banner-content h2 {
    font-size: 36px;
    margin-bottom: 20px;
    font-weight: bold;
}

.banner-content p {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.9;
}

.banner-img {
    width: 100%;
    max-width: 500px;
    height: 350px;
    background: rgba(255,255,255,0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
}

.banner-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

.banner-features {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 30px;
}

.banner-features .feature {
    display: flex;
    align-items: center;
    color: #fff;
    font-size: 14px;
}

.banner-features .feature i {
    margin-right: 8px;
    font-size: 16px;
}

/* 右侧表单区域 */
.login-box {
    width: 420px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    overflow: hidden;
}

/* 选项卡 */
.login-tabs {
    display: flex;
    border-bottom: 1px solid #eee;
}

.login-tabs .tab {
    flex: 1;
    padding: 20px;
    text-align: center;
    font-size: 16px;
    color: #666;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    background: #f9f9f9;
}

.login-tabs .tab:hover {
    color: #e74c3c;
}

.login-tabs .tab.active {
    color: #e74c3c;
    background: #fff;
    font-weight: bold;
}

.login-tabs .tab.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: #e74c3c;
}

/* 表单内容区域 */
.login-form-content {
    padding: 30px;
}

.form-panel {
    display: none;
}

.form-panel.active {
    display: block;
}

/* 表单组 */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    color: #333;
    font-weight: 500;
}

.input-group {
    position: relative;
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    transition: border-color 0.3s;
}

.input-group:focus-within {
    border-color: #e74c3c;
}

.input-group i {
    width: 45px;
    text-align: center;
    color: #999;
    font-size: 16px;
}

.input-group input {
    flex: 1;
    padding: 12px 15px 12px 0;
    border: none;
    outline: none;
    font-size: 14px;
    background: transparent;
}

.input-group input::placeholder {
    color: #bbb;
}

/* 验证码输入框 */
.input-group.verify-group {
    display: flex;
}

.input-group.verify-group input {
    flex: 1;
}

.btn-verify {
    padding: 0 15px;
    background: #f5f5f5;
    border: none;
    border-left: 1px solid #ddd;
    color: #e74c3c;
    font-size: 14px;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.3s;
}

.btn-verify:hover {
    background: #eee;
}

.btn-verify:disabled {
    color: #999;
    cursor: not-allowed;
}

/* 记住密码和协议 */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    font-size: 13px;
}

.remember-me,
.agreement {
    display: flex;
    align-items: center;
    color: #666;
}

.remember-me input[type="checkbox"],
.agreement input[type="checkbox"] {
    margin-right: 6px;
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.remember-me label,
.agreement label {
    cursor: pointer;
}

.agreement a {
    color: #e74c3c;
    margin: 0 3px;
}

.agreement a:hover {
    text-decoration: underline;
}

.forgot-password {
    color: #e74c3c;
    transition: color 0.3s;
}

.forgot-password:hover {
    text-decoration: underline;
}

/* 提交按钮 */
.btn-submit {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    margin-bottom: 20px;
}

.btn-submit:hover {
    background: linear-gradient(135deg, #c0392b 0%, #a93226 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.3);
}

/* 第三方登录 */
.third-party-login {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.third-party-login p {
    font-size: 13px;
    color: #999;
    margin-bottom: 15px;
    position: relative;
}

.third-party-login p::before,
.third-party-login p::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 60px;
    height: 1px;
    background: #eee;
}

.third-party-login p::before {
    left: 30px;
}

.third-party-login p::after {
    right: 30px;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.social-icons a {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #fff;
    transition: all 0.3s;
}

.social-icons a:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.social-icons .wechat {
    background: #07c160;
}

.social-icons .qq {
    background: #12b7f5;
}

.social-icons .alipay {
    background: #1677ff;
}

/* 底部版权 */
.login-footer {
    background: rgba(0,0,0,0.1);
    padding: 20px 0;
    text-align: center;
}

.login-footer p {
    color: rgba(255,255,255,0.8);
    font-size: 13px;
}

.login-footer .footer-links {
    margin-bottom: 10px;
}

.login-footer .footer-links a {
    color: rgba(255,255,255,0.9);
    margin: 0 15px;
    font-size: 13px;
    transition: color 0.3s;
}

.login-footer .footer-links a:hover {
    color: #fff;
}

/* 错误提示 */
.error-msg {
    color: #e74c3c;
    font-size: 12px;
    margin-top: 5px;
    display: none;
}

.error-msg.show {
    display: block;
}

/* 输入框错误状态 */
.input-group.error {
    border-color: #e74c3c;
}

.input-group.error i {
    color: #e74c3c;
}

/* 登录提示信息 */
.login-tip {
    padding: 10px 15px;
    border-radius: 6px;
    font-size: 14px;
    margin-bottom: 15px;
    text-align: center;
}

.login-tip.error {
    background: #fff2f0;
    color: #e74c3c;
    border: 1px solid #ffccc7;
}

.login-tip.success {
    background: #f6ffed;
    color: #52c41a;
    border: 1px solid #b7eb8f;
}

/* 按钮禁用状态 */
.btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .login-main .container {
        flex-direction: column;
        justify-content: center;
    }
    
    .login-banner {
        display: none;
    }
    
    .login-box {
        width: 100%;
        max-width: 420px;
    }
}

@media (max-width: 480px) {
    .login-box {
        border-radius: 0;
        box-shadow: none;
    }
    
    .login-form-content {
        padding: 20px;
    }
    
    .login-header .logo span {
        display: none;
    }
}
