/* 登录和注册页面样式 */
:root {
    --primary-color: #ff6b00;
    --secondary-color: #ffae00;
    --dark-color: #333;
    --light-color: #f4f4f4;
    --success-color: #5cb85c;
    --error-color: #d9534f;
    --warning-color: #f0ad4e;
    --border-radius: 5px;
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.auth-section {
    padding: 3rem 0;
    background-color: #f9f9f9;
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
}

.auth-section .container {
    width: 1200px;
    display: flex;
    margin: 0 auto;
    box-shadow: var(--box-shadow);
    border-radius: var(--border-radius);
    overflow: hidden;
    background-color: #fff;
    padding: 0;
}

.auth-container {
    flex: 1;
    padding: 2.5rem;
}

.auth-side {
    flex: 1;
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2.5rem;
}

.auth-side-content {
    max-width: 400px;
}

.auth-side h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.auth-side p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.auth-side ul {
    list-style: none;
    padding: 0;
    margin-bottom: 2rem;
}

.auth-side ul li {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.auth-side ul li i {
    margin-right: 0.75rem;
    color: #fff;
}

.auth-image {
    max-width: 100%;
    border-radius: var(--border-radius);
    margin-top: 2rem;
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-header h2 {
    font-size: 2rem;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.auth-header p {
    color: #777;
}

.auth-form {
    max-width: 400px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

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

.form-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.form-row .form-group {
    margin-bottom: 0;
    flex: 1;
}

.input-with-icon {
    position: relative;
}

.input-with-icon input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    transition: border-color 0.3s;
}

.input-with-icon i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #aaa;
}

.input-with-icon input:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 107, 0, 0.1);
}

.toggle-password {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #aaa;
    cursor: pointer;
    padding: 0;
    width: 32px;
}

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

.verification-code {
    display: flex;
    gap: 0.5rem;
}

.verification-code input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
}

.get-code {
    white-space: nowrap;
    padding: 0.75rem 1rem;
}

.password-strength {
    margin-top: 0.5rem;
}

.strength-bar {
    height: 5px;
    background-color: #eee;
    border-radius: 5px;
    margin-bottom: 0.25rem;
}

.strength-bar .bar {
    height: 100%;
    width: 30%;
    background-color: var(--error-color);
    border-radius: 5px;
    display: block;
}

.strength-text {
    font-size: 0.8rem;
    color: #777;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

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

.remember-me input[type="checkbox"] {
    margin-right: 0.5rem;
}

.forgot-password {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.9rem;
}

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

.btn {
    display: inline-block;
    background: var(--dark-color);
    color: #fff;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    text-decoration: none;
    font-size: 1rem;
    transition: opacity 0.2s, background 0.2s;
}

.btn-primary {
    background: var(--primary-color);
}

.btn-primary:hover {
    background: #e05e00;
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background: rgba(255, 107, 0, 0.1);
}

.btn-block {
    display: block;
    width: 100%;
    text-align: center;
}

.social-login {
    margin-top: 2rem;
    text-align: center;
}

.social-login p {
    color: #777;
    margin-bottom: 1rem;
    position: relative;
}

.social-login p::before,
.social-login p::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 30%;
    height: 1px;
    background-color: #ddd;
}

.social-login p::before {
    left: 0;
}

.social-login p::after {
    right: 0;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    text-decoration: none;
    transition: transform 0.3s;
}

.social-icon:hover {
    transform: translateY(-3px);
}

.social-icon.wechat {
    background-color: #07C160;
    color: white;
}

.social-icon.qq {
    background-color: #12B7F5;
    color: white;
}

.social-icon.weibo {
    background-color: #E6162D;
    color: white;
}

.auth-footer {
    text-align: center;
    margin-top: 2rem;
}

.auth-footer a {
    color: var(--primary-color);
    text-decoration: none;
}

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

/* 响应式设计 */
@media (max-width: 991px) {
    .auth-section .container {
        flex-direction: column;
        max-width: 600px;
    }
    
    .auth-side {
        order: -1;
        padding: 2rem;
    }
    
    .auth-side-content {
        text-align: center;
    }
    
    .auth-side ul li {
        justify-content: center;
    }
    
    .auth-image {
        display: none;
    }
}

@media (max-width: 767px) {
    .form-row {
        flex-direction: column;
        gap: 1rem;
    }
    
    .auth-section {
        padding: 2rem 0;
    }
    
    .auth-container,
    .auth-side {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .form-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .social-login p::before,
    .social-login p::after {
        width: 25%;
    }
} 