/* 背景动画元素 */
.bg-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.floating-shape {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--primary-accent), var(--secondary-accent));
    opacity: 0.1;
    animation: float 15s infinite ease-in-out;
}

.shape-1 {
    width: 300px;
    height: 300px;
    top: -100px;
    left: -100px;
    animation-delay: 0s;
}

.shape-2 {
    width: 200px;
    height: 200px;
    top: 20%;
    right: 10%;
    animation-delay: 2s;
}

.shape-3 {
    width: 150px;
    height: 150px;
    bottom: 10%;
    left: 10%;
    animation-delay: 4s;
}

.shape-4 {
    width: 250px;
    height: 250px;
    bottom: -50px;
    right: -50px;
    animation-delay: 6s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    33% {
        transform: translateY(-20px) rotate(120deg);
    }
    66% {
        transform: translateY(20px) rotate(240deg);
    }
}


/* 主题切换按钮 */
.theme-toggle {
    position: fixed;
    top: 30px;
    right: 30px;
    background: none;
    border: none;
    color: var(--primary-accent);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1.5rem;
    z-index: 100;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
}

.light-theme .theme-toggle {
    background: rgba(255, 255, 255, 0.2);
}

.theme-toggle:hover {
    background: rgba(0, 208, 255, 0.1);
    transform: rotate(30deg);
}

.light-theme .theme-toggle:hover {
    background: rgba(0, 102, 204, 0.1);
}


/* 登录容器 */
.auth-container {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    padding: 20px;
}

.auth-card {
    background: var(--card-bg);
    border-radius: 20px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    width: 100%;
    max-width: 1000px;
    overflow: hidden;
    display: flex;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    transition: var(--transition);
    backdrop-filter: blur(10px);
    min-height: 600px;
}

.light-theme .auth-card {
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.auth-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 35px 70px rgba(0, 0, 0, 0.6);
}

.auth-left {
    flex: 1;
    background-size: cover;
    background-position: center;
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    text-align: left;
    color: white;
    position: relative;
    overflow: hidden;
}

.auth-left::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(0, 208, 255, 0.2), rgba(0, 255, 200, 0.2));
    opacity: 0.3;
    z-index: 0;
}

.auth-left-content {
    position: relative;
    z-index: 1;
    max-width: 80%;
}

.auth-left h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    background: linear-gradient(to right, #fff, var(--primary-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
}

.auth-left p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    line-height: 1.6;
}

.features {
    list-style: none;
    margin-top: 30px;
}

.features li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    font-size: 1.1rem;
}

.features li i {
    color: var(--primary-accent);
    margin-right: 10px;
    font-size: 1.2rem;
}

.auth-right {
    flex: 1;
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow-y: auto;
    height: auto;
}

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

.form-header h2 {
    font-size: 2rem;
    margin-bottom: 10px;
    color: var(--primary-accent);
}

.form-header p {
    color: var(--text-secondary);
}

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

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-primary);
}

.form-input {
    width: 100%;
    padding: 15px 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 1rem;
    transition: var(--transition);
}

.light-theme .form-input {
    border: 1px solid rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.7);
    color: var(--text-primary);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-accent);
    box-shadow: 0 0 0 3px rgba(0, 208, 255, 0.2);
}

.light-theme .form-input:focus {
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.2);
}

.input-icon {
    position: absolute;
    right: 20px;
    top: 45px;
    color: var(--text-secondary);
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
}

.remember-me input {
    width: 18px;
    height: 18px;
}

.forgot-password {
    color: var(--primary-accent);
    text-decoration: none;
    transition: var(--transition);
}

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

.submit-btn {
    background: linear-gradient(45deg, var(--primary-accent), var(--secondary-accent));
    color: var(--primary-dark);
    border: none;
    padding: 15px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: var(--transition);
    width: 100%;
    box-shadow: 0 5px 15px rgba(0, 208, 255, 0.4);
}

.light-theme .submit-btn {
    box-shadow: 0 5px 15px rgba(0, 102, 204, 0.3);
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 208, 255, 0.6);
}

.light-theme .submit-btn:hover {
    box-shadow: 0 8px 20px rgba(0, 102, 204, 0.5);
}

.divider {
    display: flex;
    align-items: center;
    margin: 30px 0;
    color: var(--text-secondary);
}

.divider::before, .divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
}

.light-theme .divider::before, .light-theme .divider::after {
    background: rgba(0, 0, 0, 0.1);
}

.divider span {
    padding: 0 15px;
    font-size: 0.9rem;
}

.social-login {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.social-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--tertiary-dark);
    color: var(--text-primary);
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
}

.social-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

.social-btn.wechat {
    background: #07C160;
}

.social-btn.qq {
    background: #12B7F5;
}

.social-btn.weibo {
    background: #E6162D;
}

.social-btn.github {
    background: #333;
}

.register-link {
    text-align: center;
    margin-top: 30px;
    color: var(--text-secondary);
}

.register-link a {
    color: var(--primary-accent);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.register-link a:hover {
    text-decoration: underline;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .auth-card {
        flex-direction: column;
        max-width: 500px;
        height: auto;
    }
    
    .auth-left {
        padding: 30px;
        min-height: 300px;
    }
    
    .auth-left h2 {
        font-size: 2rem;
    }
    
    .auth-right {
        padding: 30px;
    }
}

@media (max-width: 480px) {
    .auth-left {
        padding: 20px;
    }
    
    .auth-right {
        padding: 20px;
    }
    
    .form-header h2 {
        font-size: 1.7rem;
    }
}


/* 返回按钮样式 */
.back-btn {
    position: fixed;
    top: 30px;
    left: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-accent);
    font-size: 1.2rem;
    transition: var(--transition);
    z-index: 100;
    text-decoration: none;
}

.light-theme .back-btn {
    background: rgba(255, 255, 255, 0.2);
}

.back-btn:hover {
    background: rgba(0, 208, 255, 0.1);
    transform: translateX(-5px);
}

.light-theme .back-btn:hover {
    background: rgba(0, 102, 204, 0.1);
}

/* 响应式适配 */
@media (max-width: 480px) {
    .back-btn {
        top: 20px;
        left: 20px;
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}