/* 登录和注册页面的样式 */
.auth-container {
    display: flex;
    max-width: 1100px;
    margin: 40px auto;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    height: auto;
    min-height: 650px;
    transition: all 0.3s ease;
}

/* 用户头像样式 */
.user-avatar-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0 0 25px 0;
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.user-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #e74c3c;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    margin-bottom: 10px;
}

.user-avatar.loading {
    opacity: 0.6;
    filter: grayscale(50%);
    border: 4px solid #ccc;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { opacity: 0.6; }
    50% { opacity: 0.9; }
    100% { opacity: 0.6; }
}

.avatar-message {
    margin-top: 10px;
    font-size: 14px;
    color: #666;
    text-align: center;
}

.auth-form-container {
    flex: 1;
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: linear-gradient(to bottom, #ffffff, #f9f9f9);
    overflow-y: auto;
    max-height: 100%;
}

.auth-form {
    max-width: 400px;
    margin: 0 auto;
    animation: fadeIn 0.8s ease-in-out;
    padding-bottom: 20px;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.auth-form h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #333;
    font-size: 32px;
    font-weight: 600;
    position: relative;
    padding-bottom: 15px;
}

.auth-form h2:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: #e74c3c;
    border-radius: 3px;
}

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

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 500;
    color: #444;
    font-size: 15px;
    transition: all 0.3s;
}

.form-group input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    transition: all 0.3s;
    background-color: #f9f9f9;
}

.form-group input:focus {
    border-color: #e74c3c;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.2);
    background-color: #fff;
    outline: none;
}

.form-group small {
    display: block;
    margin-top: 8px;
    color: #777;
    font-size: 13px;
    font-style: italic;
}

.form-actions {
    margin-top: 35px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.btn-primary {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: #fff;
    border: none;
    padding: 14px 28px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    transition: all 0.3s;
    box-shadow: 0 4px 10px rgba(231, 76, 60, 0.3);
    letter-spacing: 0.5px;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #c0392b, #a93226);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(231, 76, 60, 0.4);
}

.btn-primary:active {
    transform: translateY(1px);
    box-shadow: 0 2px 5px rgba(231, 76, 60, 0.4);
}

.btn-link {
    margin-top: 18px;
    color: #e74c3c;
    text-decoration: none;
    font-weight: 500;
    position: relative;
    transition: all 0.3s;
}

.btn-link:hover {
    color: #c0392b;
}

.btn-link:after {
    content: '';
    position: absolute;
    width: 100%;
    height: 1px;
    bottom: -2px;
    left: 0;
    background-color: #c0392b;
    transform: scaleX(0);
    transform-origin: bottom right;
    transition: transform 0.3s;
}

.btn-link:hover:after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

.error-message {
    background-color: #ffebee;
    color: #c62828;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 25px;
    text-align: center;
    border-left: 4px solid #c62828;
    box-shadow: 0 2px 10px rgba(198, 40, 40, 0.1);
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

.success-message {
    background-color: #e8f5e9;
    color: #2e7d32;
    padding: 18px;
    border-radius: 6px;
    margin-bottom: 25px;
    text-align: center;
    border-left: 4px solid #2e7d32;
    box-shadow: 0 2px 10px rgba(46, 125, 50, 0.1);
    animation: fadeInUp 0.5s ease-in-out;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.success-message p {
    margin-top: 12px;
    font-weight: 500;
}

/* 轮播图部分 */
.auth-slider {
    flex: 1;
    position: relative;
    overflow: hidden;
    background-color: #f5f5f5;
    box-shadow: inset -5px 0 15px rgba(0, 0, 0, 0.1);
}

.slider-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.slider-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
    background-size: cover;
    background-position: center;
    transform: scale(1.05);
}

.slider-item.active {
    opacity: 1;
    transform: scale(1);
    transition: opacity 1.2s ease-in-out, transform 8s ease-in-out;
}

.slider-caption {
    position: absolute;
    bottom: 60px;
    left: 50px;
    max-width: 80%;
    background-color: rgba(0, 0, 0, 0.75);
    color: #fff;
    padding: 20px 25px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.8s ease 0.5s;
}

.slider-item.active .slider-caption {
    transform: translateY(0);
    opacity: 1;
}

.slider-caption h3 {
    margin: 0 0 12px 0;
    font-size: 24px;
    font-weight: 600;
    letter-spacing: 0.5px;
    position: relative;
    padding-bottom: 10px;
}

.slider-caption h3:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: #e74c3c;
}

.slider-caption p {
    margin: 0;
    font-size: 15px;
    line-height: 1.6;
    opacity: 0.9;
}

/* 轮播图导航 */
.slider-nav {
    position: absolute;
    bottom: 30px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 12px;
    z-index: 10;
}

.slider-nav-item {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.slider-nav-item:hover {
    background-color: rgba(255, 255, 255, 0.7);
    transform: scale(1.2);
}

.slider-nav-item.active {
    background-color: #fff;
    transform: scale(1.2);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
}

/* 验证码样式 */
.captcha-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

.captcha-image {
    height: 40px;
    border-radius: 4px;
    cursor: pointer;
    border: 1px solid #ddd;
    transition: all 0.3s;
}

.captcha-image:hover {
    border-color: #e74c3c;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.2);
}

/* 响应式调整 */
@media (max-width: 992px) {
    .auth-container {
        max-width: 90%;
        height: auto;
    }
}

@media (max-width: 768px) {
    .auth-container {
        flex-direction: column;
        height: auto;
        margin: 30px auto;
    }
    
    .auth-form-container {
        order: 2;
        padding: 40px 30px;
        max-height: none;
    }
    
    .auth-slider {
        order: 1;
        height: 350px;
    }
    
    .slider-caption {
        bottom: 50px;
        left: 30px;
        padding: 15px 20px;
    }
    
    .slider-caption h3 {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .auth-container {
        margin: 20px auto;
        border-radius: 8px;
    }
    
    .auth-form-container {
        padding: 30px 20px;
    }
    
    .auth-slider {
        height: 280px;
    }
    
    .slider-caption {
        bottom: 40px;
        left: 20px;
        padding: 12px 15px;
    }
    
    .form-group input {
        padding: 12px 14px;
    }
    
    .btn-primary {
        padding: 12px 20px;
    }
}