/* 登录和注册页面的通用样式 */
.auth-container {
    display: flex;
    max-width: 1200px;
    margin: 50px auto;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    min-height: 600px;
}

.auth-content {
    flex: 1;
    padding: 40px;
    display: flex;
    flex-direction: column;
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-header h1 {
    font-size: 2rem;
    color: var(--dark-color);
    margin-bottom: 10px;
}

.auth-header p {
    color: var(--gray-color);
    font-size: 1rem;
}

.auth-form {
    flex: 1;
    display: flex;
    flex-direction: column;
    max-width: 400px;
    margin: 0 auto;
    width: 100%;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--dark-color);
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrapper i {
    position: absolute;
    left: 15px;
    color: var(--gray-color);
}

.input-wrapper input {
    width: 100%;
    padding: 12px 15px 12px 45px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.input-wrapper input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(255, 82, 82, 0.1);
}

.toggle-password {
    position: absolute;
    right: 15px;
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--gray-color);
    width: 32px;
}

.toggle-password:hover {
    color: var(--dark-color);
}

.remember-forgot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.remember-me {
    display: flex;
    align-items: center;
}

.remember-me input[type="checkbox"] {
    margin-right: 8px;
    cursor: pointer;
}

.remember-me label {
    cursor: pointer;
    color: var(--dark-color);
    font-size: 0.9rem;
}

.forgot-password {
    color: var(--primary-color);
    font-size: 0.9rem;
    transition: color 0.3s;
}

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

.auth-btn {
    background-color: var(--primary-color);
    color: white;
    padding: 12px;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s;
}

.auth-btn:hover {
    background-color: #E64545;
}

.auth-divider {
    text-align: center;
    margin: 25px 0;
    position: relative;
    display: flex;
    align-items: center;
}

.auth-divider::before,
.auth-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background-color: var(--border-color);
}

.auth-divider span {
    padding: 0 15px;
    color: var(--gray-color);
    font-size: 0.9rem;
}

.social-auth {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 25px;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 0.9rem;
    font-weight: 500;
    background-color: white;
    cursor: pointer;
    transition: background-color 0.3s, border-color 0.3s;
}

.social-btn i {
    margin-right: 8px;
    font-size: 1.2rem;
}

.social-btn.wechat {
    color: #09B83E;
}

.social-btn.wechat:hover {
    background-color: rgba(9, 184, 62, 0.05);
    border-color: #09B83E;
}

.social-btn.qq {
    color: #12B7F5;
}

.social-btn.qq:hover {
    background-color: rgba(18, 183, 245, 0.05);
    border-color: #12B7F5;
}

.auth-footer {
    text-align: center;
    margin-top: 20px;
}

.auth-footer a {
    color: var(--primary-color);
    font-weight: 500;
}

.auth-footer a:hover {
    text-decoration: underline;
}

.auth-image {
    display: flex;
    flex: 1;
    position: relative;
    overflow: hidden;
}

.auth-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.auth-image-text {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 40px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    color: white;
}

.auth-image-text h2 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.auth-image-text p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* 注册页面特有样式 */
.password-hint {
    font-size: 0.8rem;
    color: var(--gray-color);
    margin-top: 8px;
}

.verification-container {
    display: flex;
    gap: 10px;
}

.verification-container .input-wrapper {
    flex: 1;
}

.verification-btn {
    white-space: nowrap;
    background-color: var(--light-color);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    padding: 0 15px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background-color 0.3s;
}

.verification-btn:hover {
    background-color: #E0E0E0;
}

.verification-btn.disabled {
    background-color: #f5f5f5;
    color: var(--gray-color);
    cursor: not-allowed;
}

.terms-agreement {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
}

.terms-agreement input[type="checkbox"] {
    margin-right: 10px;
    margin-top: 3px;
}

.terms-agreement label {
    font-size: 0.9rem;
    color: var(--dark-color);
    line-height: 1.4;
}

.terms-agreement a {
    color: var(--primary-color);
}

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

/* 响应式设计 */
@media (max-width: 992px) {
    .auth-container {
        flex-direction: column;
        margin: 30px auto;
    }
    
    .auth-image {
        order: -1;
        height: 200px;
    }
    
    .auth-content {
        padding: 30px;
    }
}

@media (max-width: 576px) {
    .auth-container {
        margin: 0;
        border-radius: 0;
        box-shadow: none;
    }
    
    .auth-image {
        height: 150px;
    }
    
    .auth-image-text {
        padding: 20px;
    }
    
    .auth-image-text h2 {
        font-size: 1.5rem;
    }
    
    .auth-image-text p {
        font-size: 0.9rem;
    }
    
    .auth-content {
        padding: 20px;
    }
    
    .social-auth {
        flex-direction: column;
    }
} 