* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(45deg, #2c3e50, #1a1a2e);
    overflow: hidden;
}

/* 全景背景容器 */
.panorama-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.panorama {
    position: absolute;
    top: 0;
    left: 0;
    width: 200%;
    height: 100%;
    background-image: url('/static/image/index/bg4.jpg?v=1');
    background-size: cover;
    background-position: center;
    animation: panorama 60s linear infinite;
    filter: brightness(0.9);
}

@keyframes panorama {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* 登录卡片 */
.login-container {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
    width: 420px;
    padding: 30px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.15);
    z-index: 10;
    display: flex;
    flex-direction: column;
}

.login-container:hover {
    transform: translateY(-5px);
}

.login-container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,182,193,0.1), transparent);
    transform: rotate(45deg);
    z-index: -1;
}

.logo {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.logo:hover {
    transform: scale(1.1);
    background: rgba(255, 182, 193, 0.2);
}

.form-container h2 {
    color: #fff;
    font-size: 24px;
    margin-bottom: 20px;
    text-shadow: 0 2px 5px rgba(0,0,0,0.2);
    letter-spacing: 1px;
    position: relative;
}

.form-container h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 2px;
    background: linear-gradient(90deg, #ff9a9e, #fad0c4);
    border-radius: 3px;
}

/* 表单切换 */
.form-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.tab-btn {
    padding: 8px 20px;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    position: relative;
    transition: all 0.3s;
}

.tab-btn.active {
    color: #ff9a9e;
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #ff9a9e, #fad0c4);
    border-radius: 3px 3px 0 0;
}

/* 输入框样式 */
.input-group {
    position: relative;
    margin-bottom: 12px;
}

.input-group input {
    width: 100%;
    padding: 12px 15px 12px 40px;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    font-size: 14px;
    color: #fff;
    outline: none;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.input-group input:focus {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 182, 193, 0.6);
}

.input-group input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.input-group i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 182, 193, 0.8);
    font-size: 15px;
    transition: all 0.3s;
}

.input-group input:focus + i {
    color: #ff9a9e;
    transform: translateY(-50%) scale(1.2);
}

/* 验证码区域 */
.captcha-container {
    display: flex;
    gap: 8px;
    margin-bottom: 15px;
}

.captcha-input {
    flex: 1;
}

.register-step-wrapper {
    width: 100%;
}

.register-password-step {
    display: none;
}

.register-step-title {
    text-align: left;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.9);
    margin: 0 4px 12px;
}

.register-turnstile-wrapper {
    min-height: 65px;
    align-items: center;
    margin-bottom: 10px;
}

.register-turnstile-wrapper .cf-turnstile {
    width: 100%;
}

.captcha-img {
    width: 100px;
    height: 42px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: bold;
    letter-spacing: 2px;
    color: #ff9a9e;
    cursor: pointer;
    transition: all 0.3s;
    user-select: none;
    position: relative;
    overflow: hidden;
}

.captcha-img:hover {
    background: rgba(255, 255, 255, 0.2);
}

.captcha-img::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, 
        transparent 25%, 
        rgba(255,255,255,0.1) 25%, 
        rgba(255,255,255,0.1) 50%, 
        transparent 50%, 
        transparent 75%, 
        rgba(255,255,255,0.1) 75%);
    background-size: 20px 20px;
    opacity: 0.3;
}

/* 选项样式 */
.options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
}

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

.remember-me input {
    margin-right: 5px;
    accent-color: #ff9a9e;
    cursor: pointer;
}

.remember-me label {
    cursor: pointer;
    transition: color 0.3s;
    white-space: nowrap;
}

.remember-me label:hover {
    color: #ff9a9e;
}

.forgot-password {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s;
    white-space: nowrap;
}

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

.back-to-login {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s;
    white-space: nowrap;
}

.back-to-login:hover {
    color: #ff9a9e;
    text-decoration: underline;
}

/* 按钮样式 */
.form-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(45deg, #ff9a9e, #fad0c4);
    border: none;
    border-radius: 50px;
    color: #5a2a4e;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(255, 154, 158, 0.4);
    position: relative;
    overflow: hidden;
    margin-top: 5px;
}

.form-btn-secondary {
    margin-top: 0;
    background: linear-gradient(45deg, #8ec5fc, #e0c3fc);
    color: #2b2f6b;
}

.form-btn-secondary:hover {
    box-shadow: 0 8px 20px rgba(142, 197, 252, 0.5);
}

.send-email-code-btn {
    width: 100%;
    margin-top: 0;
    white-space: nowrap;
    padding: 11px 16px;
}

.register-email-code-wrapper {
    display: none;
}

.register-email-code-message {
    margin-top: 10px;
    min-height: 22px;
    margin-bottom: 10px;
}

.register-email-code-alert {
    padding: 6px 10px;
    border-radius: 10px;
    font-size: 12px;
    text-align: left;
    line-height: 1.4;
}

.register-email-code-alert.success {
    background: rgba(45, 117, 93, 0.85);
    color: #fff;
}

.register-email-code-alert.error {
    background: rgba(180, 59, 59, 0.85);
    color: #fff;
}

.form-btn::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(30deg);
    transition: all 0.6s ease;
}

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

.form-btn:hover::after {
    transform: rotate(30deg) translate(50%, 50%);
}

/* 表单切换效果 */
.form-wrapper {
    position: relative;
    overflow: hidden;
    min-height: 330px;
    transition: height 0.5s ease;
}

.form-content {
    position: absolute;
    width: 100%;
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

#loginForm {
    left: 0;
}

#registerForm {
    left: 100%;
}

#forgotPasswordForm {
    left: 100%;
}

.login-container.register-mode #loginForm {
    left: -100%;
}

.login-container.register-mode #registerForm {
    left: 0;
}

/* 粒子效果 */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.particle {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 182, 193, 0.5);
    box-shadow: 0 0 10px rgba(255, 182, 193, 0.8);
    animation: float 15s infinite linear;
}

@keyframes float {
    0% { transform: translateY(0) translateX(0); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(-100vh) translateX(100px); opacity: 0; }
}

/* 樱花效果 */
.sakura-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.sakura {
    position: absolute;
    color: #ffb6c1;
    font-size: 20px;
    opacity: 0.7;
    animation: fall linear infinite;
    text-shadow: 0 0 5px rgba(255, 182, 193, 0.8);
}

@keyframes fall {
    to {
        transform: translateY(100vh) rotate(360deg);
    }
}

/* 响应式设计 */
@media (max-width: 500px) {
    .login-container {
        width: 92%;
        padding: 20px 15px;
    }
    
    .logo {
        width: 70px;
        height: 70px;
        font-size: 26px;
    }
    
    .form-container h2 {
        font-size: 20px;
    }
    
    .options {
        flex-direction: column;
        gap: 8px;
        align-items: flex-start;
    }
    
    .captcha-container {
        flex-direction: column;
    }
    
    .captcha-img {
        width: 100%;
    }

    .register-turnstile-wrapper {
        min-height: 0;
    }

    .send-email-code-btn {
        width: 100%;
    }
    
    .form-wrapper {
        min-height: 400px;
    }
}

/* 状态提示 */
.status-message {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 182, 193, 0.9);
    color: #5a2a4e;
    padding: 8px 15px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    z-index: 20;
    animation: fadeIn 0.5s;
    display: block;
}

.status-message.success {
    background: rgba(45, 117, 93, 0.9);
    color: #fff;
}

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