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

/* 登录区域 */
.login-section {
    padding: 60px 0;
    min-height: calc(100vh - 200px);
}

.login-section .container {
    display: flex;
    gap: 40px;
    align-items: stretch;
}

/* 登录容器 */
.login-container {
    flex: 1;
    background-color: #0a0a0a;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid #222;
    overflow: hidden;
    max-width: 500px;
}

/* 登录/注册切换标签 */
.auth-tabs {
    display: flex;
    border-bottom: 1px solid #222;
}

.auth-tab {
    flex: 1;
    padding: 16px;
    border: none;
    background-color: #111;
    color: #888;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.auth-tab.active {
    background-color: #0a0a0a;
    color: #fff;
}

.auth-tab:first-child {
    border-top-left-radius: 10px;
}

.auth-tab:last-child {
    border-top-right-radius: 10px;
}

.auth-tab:hover:not(.active) {
    background-color: #181818;
    color: #aaa;
}

/* 表单容器 */
.auth-form-container {
    padding: 30px;
    display: none;
}

.auth-form-container.active {
    display: block;
}

/* 表单样式 */
.auth-form {
    margin-bottom: 30px;
}

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

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

.input-container {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    font-size: 16px;
}

.auth-form input[type="text"],
.auth-form input[type="password"],
.auth-form input[type="tel"],
.auth-form input[type="email"] {
    width: 100%;
    padding: 12px 15px 12px 40px;
    background-color: #111;
    border: 1px solid #333;
    border-radius: 5px;
    color: #ddd;
    font-size: 14px;
    transition: all 0.3s ease;
}

.auth-form input:focus {
    border-color: #8a2be2;
    outline: none;
    box-shadow: 0 0 0 2px rgba(138, 43, 226, 0.2);
}

.auth-form input::placeholder {
    color: #666;
}

/* 密码显示切换 */
.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    font-size: 16px;
    cursor: pointer;
}

/* 表单选项 */
.form-options {
    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;
}

.remember-me label {
    color: #aaa;
    font-size: 14px;
    cursor: pointer;
}

.forgot-password {
    color: #8a2be2;
    font-size: 14px;
    text-decoration: none;
}

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

/* 提交按钮 */
.btn-submit {
    width: 100%;
    padding: 12px;
    background-color: #8a2be2;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-submit:hover {
    background-color: #7621bc;
}

/* 社交登录 */
.social-login {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #222;
}

.social-login p {
    color: #888;
    font-size: 14px;
    margin-bottom: 15px;
}

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

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

.social-icon img {
    width: 30px;
    height: 30px;
    object-fit: contain;
}

.social-icon:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.3);
}

/* 验证码按钮 */
.send-code-btn {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    padding: 0 15px;
    background-color: #333;
    color: #ddd;
    border: none;
    border-top-right-radius: 5px;
    border-bottom-right-radius: 5px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.send-code-btn:hover {
    background-color: #444;
}

.send-code-btn.disabled {
    background-color: #222;
    color: #666;
    cursor: not-allowed;
}

/* 协议同意 */
.agreement {
    display: flex;
    align-items: center;
}

.agreement input[type="checkbox"] {
    margin-right: 8px;
}

.agreement label {
    color: #aaa;
    font-size: 14px;
    margin-bottom: 0;
}

.agreement a {
    color: #8a2be2;
    text-decoration: none;
}

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

/* 登录好处部分 */
.login-benefits {
    flex: 1;
    background: linear-gradient(to bottom right, rgba(138, 43, 226, 0.1), rgba(0, 0, 0, 0));
    border-radius: 10px;
    padding: 30px;
    border: 1px solid #222;
    display: flex;
    flex-direction: column;
}

.login-benefits h2 {
    font-size: 24px;
    color: #fff;
    margin-bottom: 30px;
    text-align: center;
}

.benefits-list {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.benefit-item {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.benefit-icon {
    width: 50px;
    height: 50px;
    background-color: rgba(138, 43, 226, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.benefit-content h3 {
    font-size: 18px;
    color: #ddd;
    margin-bottom: 8px;
}

.benefit-content p {
    font-size: 14px;
    color: #aaa;
    line-height: 1.5;
}

/* 错误信息 */
.error-message {
    color: #ff4d4d;
    font-size: 12px;
    margin-top: 5px;
}

.input-error {
    border-color: #ff4d4d !important;
}

/* 响应式样式 */
@media (max-width: 992px) {
    .login-section .container {
        flex-direction: column;
        align-items: center;
    }
    
    .login-container {
        max-width: 100%;
        width: 100%;
    }
}

@media (max-width: 576px) {
    .login-section {
        padding: 30px 0;
    }
    
    .auth-form-container {
        padding: 20px;
    }
    
    .form-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .social-icons {
        gap: 10px;
    }
} 