* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Microsoft YaHei', 'Hiragino Sans', sans-serif;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    overflow: auto;
    position: relative;
    background: linear-gradient(135deg, #ffcce6, #ff99cc);
    padding: 20px;
}

#bg-video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

.fallback-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #ffcce6, #ff99cc);
    z-index: -2;
}

.sakura-decoration {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.sakura {
    position: absolute;
    background: #ffb7c5;
    border-radius: 50% 0 50% 0;
    opacity: 0.7;
}

.container {
    display: flex;
    width: 90%;
    max-width: 1200px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    position: relative;
    z-index: 2;
    margin: 20px 0;
}

.form-container {
    flex: 1;
    padding: 40px;
    z-index: 2;
    max-height: 100vh;
    overflow-y: auto;
}

.form-box {
    display: none;
}

.form-box.active {
    display: block;
}

h2 {
    color: #ff66a3;
    margin-bottom: 20px;
    text-align: center;
    font-weight: 600;
    font-size: 28px;
}

.input-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    color: #ff66a3;
    font-weight: 500;
}

input, select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid rgba(255, 182, 193, 0.7);
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s;
    background: rgba(255, 240, 245, 0.9);
}

input:focus, select:focus {
    border-color: #ff66a3;
    outline: none;
    box-shadow: 0 0 8px rgba(255, 102, 163, 0.4);
    background: rgba(255, 250, 252, 0.95);
}

button {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #ff66a3, #ff99cc);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(255, 102, 163, 0.3);
}

button:hover {
    background: linear-gradient(135deg, #ff4d94, #ff80bf);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 102, 163, 0.4);
}

.switch-form {
    text-align: center;
    margin-top: 20px;
}

.switch-form a {
    color: #ff66a3;
    text-decoration: none;
    font-weight: 500;
}

.switch-form a:hover {
    text-decoration: underline;
}

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

.logo h1 {
    color: #ff66a3;
    font-size: 32px;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.logo span {
    color: #ff80bf;
    font-size: 16px;
    display: block;
}

.welcome-panel {
    flex: 1;
    background: linear-gradient(135deg, rgba(255, 102, 163, 0.8), rgba(255, 153, 204, 0.7));
    color: white;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.welcome-panel h2 {
    color: white;
    font-size: 28px;
    margin-bottom: 20px;
}

.welcome-panel p {
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 16px;
}

.features {
    margin-top: 20px;
    width: 100%;
}

.feature {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 8px;
}

.feature i {
    margin-right: 10px;
    font-size: 20px;
}

@media (max-width: 768px) {
    .container {
        flex-direction: column;
        width: 95%;
        margin: 10px 0;
    }
    .welcome-panel {
        display: none;
    }
    .form-container {
        padding: 20px;
        max-height: none;
    }
}