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

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

.auth-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    max-width: 1000px;
    width: 100%;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.auth-box {
    padding: 40px;
    display: flex;
    flex-direction: column;
    height: 950px;
}

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

.auth-header h1 {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 8px;
}

.auth-header p {
    font-size: 14px;
    color: #666;
}

/* 登录/注册方式切换 */
.login-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    background: #f5f5f5;
    padding: 4px;
    border-radius: 12px;
}

.tab-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px;
    background: transparent;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    color: #666;
    cursor: pointer;
    transition: all 0.3s;
}

.tab-btn i {
    font-size: 18px;
}

.tab-btn.active {
    background: white;
    color: #b1ce48;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* 表单样式 */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 13px;
    font-weight: 500;
    color: #333;
}

.input-with-icon {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 16px;
    height: 48px;
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    transition: all 0.3s;
    box-sizing: border-box;
}

.input-with-icon:focus-within {
    border-color: #b1ce48;
    background: white;
    box-shadow: 0 0 0 3px rgba(177, 206, 72, 0.1);
}

.input-with-icon i {
    font-size: 20px;
    color: #999;
    flex-shrink: 0;
}

.input-with-icon input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 14px;
    outline: none;
    color: #333;
}

.input-with-icon input::placeholder {
    color: #999;
}

.input-with-button {
    padding: 0 8px 0 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    height: 48px;
    box-sizing: border-box;
}

.input-with-button input {
    flex: 1;
    padding: 0;
}

.input-with-button .btn-small {
    padding: 8px 12px;
    font-size: 12px;
    line-height: 1.2;
    border-radius: 8px;
}

.btn-small {
    padding: 8px 12px;
    font-size: 12px;
    white-space: nowrap;
}

.toggle-password {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    color: #999;
}

.toggle-password:hover {
    color: #666;
}

/* 用户类型选择 */
.user-type-selector {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 8px;
}

.user-type-option {
    position: relative;
    padding: 20px;
    background: #f8f9fa;
    border: 2px solid transparent;
    border-radius: 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}

.user-type-option:hover {
    background: #f0f0f0;
}

.user-type-option.selected {
    border-color: #b1ce48;
    background: rgba(177, 206, 72, 0.05);
}

.user-type-option input {
    position: absolute;
    opacity: 0;
}

.user-type-option i {
    font-size: 32px;
    color: #999;
    margin-bottom: 8px;
    display: block;
}

.user-type-option.selected i {
    color: #b1ce48;
}

.user-type-option span {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    display: block;
}

.user-type-option small {
    font-size: 12px;
    color: #999;
    display: block;
    margin-top: 4px;
}

/* 表单选项 */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    color: #666;
}

.remember-me input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #b1ce48;
}

.forgot-link {
    color: #b1ce48;
    text-decoration: none;
}

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

/* 按钮 */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 24px;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, #b1ce48 0%, #9ab73a 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(177, 206, 72, 0.4);
}

.btn-secondary {
    background: #f0f0f0;
    color: #666;
}

.btn-secondary:hover {
    background: #e0e0e0;
}

.btn-block {
    width: 100%;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* 底部链接 */
.auth-footer {
    text-align: center;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #f0f0f0;
    font-size: 14px;
    color: #666;
}

.auth-footer a {
    color: #b1ce48;
    text-decoration: none;
    font-weight: 500;
}

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

/* 右侧图片区域 - 艺术风格 */
.auth-image {
    background: linear-gradient(135deg, #fef9e7 0%, #f5f0e1 50%, #e8f4f8 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    color: #5a5a5a;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* 装饰性艺术元素 */
.auth-image::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -30%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(177, 206, 72, 0.15) 0%, transparent 70%);
    border-radius: 50%;
}

.auth-image::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -20%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 193, 155, 0.2) 0%, transparent 70%);
    border-radius: 50%;
}

/* 艺术装饰线条 */
.art-decoration {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
}

.art-line {
    position: absolute;
    background: linear-gradient(90deg, transparent, rgba(177, 206, 72, 0.3), transparent);
    height: 1px;
}

.art-line:nth-child(1) { top: 20%; left: 10%; width: 30%; transform: rotate(-15deg); }
.art-line:nth-child(2) { top: 35%; right: 15%; width: 25%; transform: rotate(10deg); }
.art-line:nth-child(3) { bottom: 30%; left: 20%; width: 35%; transform: rotate(5deg); }

.auth-image img {
    width: 180px;
    height: auto;
    margin-bottom: 30px;
    opacity: 0.9;
    position: relative;
    z-index: 1;
}

.image-text {
    position: relative;
    z-index: 1;
}

.image-text h2 {
    font-size: 26px;
    font-weight: 500;
    margin-bottom: 12px;
    color: #4a4a4a;
    font-family: 'Noto Sans SC', sans-serif;
    letter-spacing: 2px;
}

.image-text p {
    font-size: 14px;
    color: #888;
    line-height: 1.8;
    max-width: 200px;
    margin: 0 auto;
}

/* 微信登录 */
.wechat-login {
    text-align: center;
    padding: 20px 0;
}

.qr-code {
    margin-bottom: 20px;
}

.qr-code img {
    width: 180px;
    height: 180px;
    border-radius: 12px;
    margin-bottom: 16px;
}

.qr-code p {
    font-size: 14px;
    color: #666;
}

.wechat-tips {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 13px;
    color: #999;
}

.wechat-tips i {
    font-size: 16px;
    color: #b1ce48;
}

/* 响应式 */
@media (max-width: 768px) {
    .auth-container {
        grid-template-columns: 1fr;
    }
    
    .auth-image {
        display: none;
    }
    
    .auth-box {
        padding: 30px 20px;
    }
    
    .login-tabs {
        flex-wrap: wrap;
    }
    
    .tab-btn {
        font-size: 13px;
        padding: 10px;
    }
}
