/* 认证页面样式（登录和注册） */

.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 250px);
    padding: 50px 20px;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8ed 100%);
}

.auth-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    max-width: 500px;
    width: 100%;
    padding: 40px;
    position: relative;
    overflow: hidden;
}

.auth-card::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 150px;
    height: 150px;
    background: linear-gradient(135deg, rgba(108, 92, 231, 0.1), rgba(162, 155, 254, 0.1));
    border-radius: 50%;
    z-index: 0;
}

.auth-card::after {
    content: '';
    position: absolute;
    bottom: -80px;
    left: -80px;
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, rgba(108, 92, 231, 0.05), rgba(162, 155, 254, 0.05));
    border-radius: 50%;
    z-index: 0;
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
    position: relative;
    z-index: 1;
}

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

.auth-header p {
    color: #666;
    font-size: 1rem;
}

.auth-form {
    position: relative;
    z-index: 1;
}

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

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

.form-group label i {
    margin-right: 8px;
    color: var(--primary-color);
    font-size: 1.2rem;
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    transition: all var(--transition-speed);
}

.form-group input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.1);
    outline: none;
}

.toggle-password {
    position: absolute;
    right: 10px;
    bottom: 10px;
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    font-size: 1.1rem;
    transition: color var(--transition-speed);
}

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

.form-actions {
    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;
    width: 16px;
    height: 16px;
    accent-color: var(--primary-color);
}

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

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

.agree-terms {
    display: flex;
    align-items: flex-start;
}

.agree-terms input[type="checkbox"] {
    margin-right: 8px;
    margin-top: 3px;
    width: 16px;
    height: 16px;
    accent-color: var(--primary-color);
}

.agree-terms label {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.4;
}

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

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

.btn-block {
    width: 100%;
    padding: 12px;
    font-size: 1.1rem;
}

.verification-code .verification-input {
    display: flex;
}

.verification-code input {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.btn-code {
    white-space: nowrap;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: 0 15px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all var(--transition-speed);
}

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

.btn-code.disabled {
    background: #ccc;
    cursor: not-allowed;
}

.social-login {
    margin-top: 30px;
    text-align: center;
    position: relative;
}

.social-login p {
    position: relative;
    display: inline-block;
    padding: 0 10px;
    background: white;
    z-index: 1;
    color: #999;
    font-size: 0.9rem;
}

.social-login::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--border-color);
    z-index: 0;
}

.social-buttons {
    display: flex;
    justify-content: center;
    margin-top: 15px;
}

.social-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin: 0 10px;
    font-size: 1.5rem;
    color: white;
    transition: all var(--transition-speed);
}

.social-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.social-button.wechat {
    background: #09bb07;
}

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

.social-button.weibo {
    background: #e6162d;
}

.auth-footer {
    text-align: center;
    margin-top: 30px;
    color: #666;
    position: relative;
    z-index: 1;
}

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

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

/* 表单验证提示样式 */
.error-message {
    color: #e74c3c;
    font-size: 0.85rem;
    margin-top: 5px;
    display: none;
}

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

.form-group.error .error-message {
    display: block;
}

.form-group.success input {
    border-color: #2ecc71;
}

/* 响应式调整 */
@media (max-width: 576px) {
    .auth-card {
        padding: 30px 20px;
    }
    
    .auth-header h1 {
        font-size: 1.8rem;
    }
    
    .form-actions {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .forgot-password {
        margin-top: 10px;
    }
    
    .verification-code .verification-input {
        flex-direction: column;
    }
    
    .verification-code input {
        border-radius: 8px;
    }
    
    .btn-code {
        margin-top: 10px;
        border-radius: 8px;
        width: 100%;
    }
} 