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

/* 认证区域 */
.auth-section {
    min-height: calc(100vh - 80px);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    padding: 2rem 0;
}

.auth-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.auth-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    min-height: 600px;
}

/* 左侧信息区域 */
.auth-info {
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.info-content h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #fff, #ffd700);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.info-content p {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.features-list {
    margin-bottom: 2rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    backdrop-filter: blur(10px);
}

.feature-item i {
    font-size: 1.5rem;
    color: #ffd700;
    width: 24px;
    text-align: center;
}

.feature-item span {
    font-weight: 500;
}

/* 右侧表单区域 */
.auth-form {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.form-container {
    padding: 3rem;
}

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

.form-header h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 0.5rem;
}

.form-header p {
    color: #718096;
    line-height: 1.6;
}

/* 表单样式 */
.auth-form-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 600;
    color: #2d3748;
    font-size: 0.9rem;
}

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

.input-group i {
    position: absolute;
    left: 1rem;
    color: #a0aec0;
    z-index: 2;
}

.input-group input {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

.input-group input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

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

.password-toggle {
    position: absolute;
    right: 1rem;
    background: none;
    border: none;
    color: #a0aec0;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 2;
    width: 32px;
}

.password-toggle:hover {
    color: #667eea;
}

/* 表单选项 */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 1rem 0;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.9rem;
    color: #4a5568;
}

.remember-me input {
    width: auto;
    margin: 0;
}

.forgot-password {
    color: #667eea;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
}

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

/* 按钮样式 */
.btn-full {
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 10px;
    margin: 1rem 0;
}

/* 分割线 */
.auth-divider {
    position: relative;
    text-align: center;
    margin: 2rem 0;
    color: #a0aec0;
}

.auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #e2e8f0;
}

.auth-divider span {
    background: white;
    padding: 0 1rem;
    position: relative;
    z-index: 1;
}

/* 社交登录 */
.social-login {
    display: flex;
    gap: 1rem;
}

.social-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    background: white;
    color: #4a5568;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.social-btn:hover {
    border-color: #667eea;
    background: #f7fafc;
}

.wechat-btn:hover {
    border-color: #07c160;
}

.qq-btn:hover {
    border-color: #1296db;
}

.social-btn i {
    font-size: 1.2rem;
}

/* 页脚链接 */
.auth-footer {
    text-align: center;
    margin-top: 2rem;
    color: #718096;
}

.auth-footer a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    margin-left: 0.5rem;
}

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

/* 密码强度 */
.password-strength {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 0.5rem;
}

.strength-bar {
    flex: 1;
    height: 4px;
    background: #e2e8f0;
    border-radius: 2px;
    overflow: hidden;
}

.strength-fill {
    height: 100%;
    width: 0%;
    background: #f56565;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.strength-fill.weak {
    width: 33%;
    background: #f56565;
}

.strength-fill.medium {
    width: 66%;
    background: #ed8936;
}

.strength-fill.strong {
    width: 100%;
    background: #48bb78;
}

.strength-text {
    font-size: 0.8rem;
    color: #718096;
    white-space: nowrap;
}

/* 用户类型选择 */
.user-type-options {
    display: flex;
    gap: 1rem;
}

.radio-option {
    flex: 1;
    cursor: pointer;
}

.radio-option input[type="radio"] {
    display: none;
}

.radio-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    transition: all 0.3s ease;
    background: white;
}

.radio-option:hover .radio-label {
    border-color: #667eea;
    background: #f7fafc;
}

.radio-option input:checked + .radio-label {
    border-color: #667eea;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

.radio-label i {
    font-size: 1.5rem;
}

.radio-label span {
    font-weight: 500;
    font-size: 0.9rem;
}

/* 验证码 */
.verification-group .verification-input {
    display: flex;
    gap: 1rem;
    align-items: end;
}

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

.verification-btn {
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.verification-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.verification-btn:disabled {
    background: #a0aec0;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* 协议复选框 */
.agreement-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    cursor: pointer;
    line-height: 1.6;
    color: #4a5568;
}

.agreement-checkbox input[type="checkbox"] {
    width: auto;
    margin: 0.25rem 0 0 0;
}

.agreement-checkbox a {
    color: #667eea;
    text-decoration: none;
}

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

/* 视觉元素 */
.auth-visual {
    margin-top: 2rem;
    position: relative;
    height: 200px;
}

.visual-elements {
    position: relative;
    width: 100%;
    height: 100%;
}

.floating-icon {
    position: absolute;
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    animation: float 4s ease-in-out infinite;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.icon-1 {
    top: 20px;
    left: 20px;
    animation-delay: 0s;
}

.icon-2 {
    top: 20px;
    right: 20px;
    animation-delay: 1s;
}

.icon-3 {
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    animation-delay: 2s;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .auth-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .auth-info {
        text-align: center;
        order: 2;
    }
    
    .auth-form {
        order: 1;
    }
    
    .info-content h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .auth-container {
        padding: 0 1rem;
    }
    
    .form-container {
        padding: 2rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .social-login {
        flex-direction: column;
    }
    
    .user-type-options {
        flex-direction: column;
    }
    
    .verification-input {
        flex-direction: column;
        gap: 1rem;
    }
    
    .verification-btn {
        width: 100%;
    }
    
    .form-options {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .info-content h1 {
        font-size: 2rem;
    }
    
    .auth-visual {
        height: 150px;
    }
    
    .floating-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
}

/* 表单验证状态 */
.form-group.error .input-group input {
    border-color: #f56565;
    box-shadow: 0 0 0 3px rgba(245, 101, 101, 0.1);
}

.form-group.success .input-group input {
    border-color: #48bb78;
    box-shadow: 0 0 0 3px rgba(72, 187, 120, 0.1);
}

.error-message {
    color: #f56565;
    font-size: 0.8rem;
    margin-top: 0.25rem;
    display: none;
}

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

/* 动画效果 */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
} 