/**
 * 认证页面样式 - 美化版
 */

.auth-page {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.auth-container {
    display: flex;
    max-width: 1000px;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.auth-box {
    flex: 1;
    padding: 56px 48px;
}

.auth-header {
    text-align: center;
    margin-bottom: 40px;
}

.auth-header h1 {
    font-size: 32px;
    color: #1f2937;
    margin-bottom: 12px;
    font-weight: 700;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.auth-header p {
    color: #6b7280;
    font-size: 16px;
}

.auth-form {
    margin-bottom: 32px;
}

.password-input-wrapper {
    position: relative;
}

.toggle-password {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    font-size: 18px;
    opacity: 0.6;
    transition: opacity 0.3s;
}

.toggle-password:hover {
    opacity: 1;
}

.remember-me {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 8px;
}

.forgot-password {
    font-size: 14px;
    color: #6366f1;
    font-weight: 500;
}

.forgot-password:hover {
    color: #4f46e5;
}

.auth-footer {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid #e5e7eb;
}

.register-hint {
    color: #6b7280;
    font-size: 15px;
}

.register-hint a {
    color: #6366f1;
    font-weight: 600;
    text-decoration: none;
    position: relative;
}

.register-hint a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #6366f1, #8b5cf6);
    transition: width 0.3s;
}

.register-hint a:hover::after {
    width: 100%;
}

.auth-features {
    width: 380px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #a855f7 100%);
    color: white;
    padding: 56px 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.auth-features::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.auth-features h2 {
    font-size: 26px;
    margin-bottom: 32px;
    font-weight: 700;
    position: relative;
}

.auth-features ul {
    list-style: none;
    position: relative;
}

.auth-features li {
    padding: 16px 0;
    font-size: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 12px;
    transition: transform 0.3s;
}

.auth-features li:hover {
    transform: translateX(8px);
}

.auth-features li:last-child {
    border-bottom: none;
}

/* 响应式 */
@media (max-width: 900px) {
    .auth-container {
        flex-direction: column;
        max-width: 480px;
    }
    
    .auth-box {
        padding: 40px 32px;
    }
    
    .auth-features {
        width: 100%;
        padding: 40px 32px;
    }
    
    .auth-features h2 {
        font-size: 22px;
        margin-bottom: 24px;
    }
    
    .auth-features li {
        font-size: 15px;
        padding: 12px 0;
    }
}

@media (max-width: 480px) {
    .auth-box {
        padding: 32px 24px;
    }
    
    .auth-header h1 {
        font-size: 26px;
    }
    
    .auth-features {
        padding: 32px 24px;
    }
}
