* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #ffeef8 0%, #ffe0f0 50%, #ffd6eb 100%);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Falling Rose Petals */
.petals-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.petal {
    position: absolute;
    width: 20px;
    height: 20px;
    background: #ff69b4;
    border-radius: 50% 0 50% 0;
    opacity: 0.7;
    animation: fall linear infinite;
}

@keyframes fall {
    0% {
        transform: translateY(-100px) rotate(0deg);
        opacity: 0.7;
    }
    100% {
        transform: translateY(100vh) rotate(360deg);
        opacity: 0;
    }
}

/* Screen Management */
.screen {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    position: relative;
    z-index: 2;
    transition: opacity 1s ease-in-out;
}

.screen.hidden {
    display: none;
    opacity: 0;
}

.screen.fade-out {
    opacity: 0;
}

/* Animated Heart */
.heart-container {
    margin-bottom: 40px;
}

.heart {
    width: 100px;
    height: 100px;
    background: #ff1744;
    position: relative;
    transform: rotate(-45deg);
    animation: heartbeat 1.5s ease-in-out infinite;
    box-shadow: 0 0 40px rgba(255, 23, 68, 0.5);
}

.heart::before,
.heart::after {
    content: '';
    width: 100px;
    height: 100px;
    background: #ff1744;
    border-radius: 50%;
    position: absolute;
}

.heart::before {
    top: -50px;
    left: 0;
}

.heart::after {
    left: 50px;
    top: 0;
}

@keyframes heartbeat {
    0%, 100% {
        transform: rotate(-45deg) scale(1);
    }
    50% {
        transform: rotate(-45deg) scale(1.1);
    }
}

/* Login Box */
.login-box {
    background: rgba(255, 255, 255, 0.95);
    padding: 50px 60px;
    border-radius: 30px;
    box-shadow: 0 20px 60px rgba(255, 105, 180, 0.3);
    text-align: center;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 182, 193, 0.5);
}

.login-box h1 {
    color: #ff1744;
    font-size: 2em;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(255, 105, 180, 0.3);
}

.hint {
    color: #ff69b4;
    font-size: 1.2em;
    margin-bottom: 30px;
    font-weight: 500;
}

#passwordInput {
    width: 100%;
    padding: 15px 20px;
    font-size: 1.5em;
    border: 2px solid #ffb6c1;
    border-radius: 15px;
    text-align: center;
    margin-bottom: 20px;
    outline: none;
    transition: all 0.3s ease;
    letter-spacing: 5px;
}

#passwordInput:focus {
    border-color: #ff69b4;
    box-shadow: 0 0 20px rgba(255, 105, 180, 0.3);
}

button {
    background: linear-gradient(135deg, #ff69b4, #ff1744);
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 1.2em;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
    box-shadow: 0 5px 20px rgba(255, 23, 68, 0.3);
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 23, 68, 0.4);
}

button:active {
    transform: translateY(0);
}

.error {
    color: #ff1744;
    margin-top: 15px;
    font-size: 0.9em;
    min-height: 20px;
}

/* Video Screen */
.video-container {
    text-align: center;
    background: rgba(255, 255, 255, 0.95);
    padding: 40px;
    border-radius: 30px;
    box-shadow: 0 20px 60px rgba(255, 105, 180, 0.3);
}

.video-title {
    color: #ff1744;
    font-size: 2em;
    margin-bottom: 30px;
    text-shadow: 2px 2px 4px rgba(255, 105, 180, 0.3);
}

#videoFrame {
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    max-width: 100%;
}

.continue-btn {
    margin-top: 30px;
}

/* Final Message Screen */
.message-container {
    text-align: center;
    background: rgba(255, 255, 255, 0.95);
    padding: 60px 80px;
    border-radius: 30px;
    box-shadow: 0 20px 60px rgba(255, 105, 180, 0.4);
    max-width: 800px;
    animation: fadeInScale 1s ease-out;
}

@keyframes fadeInScale {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.main-title {
    color: #ff1744;
    font-size: 3.5em;
    margin-bottom: 20px;
    text-shadow: 3px 3px 6px rgba(255, 105, 180, 0.3);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.subtitle {
    color: #ff69b4;
    font-size: 2em;
    margin-bottom: 40px;
    font-style: italic;
}

.couple-names {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.name {
    color: #ff1744;
    font-size: 1.5em;
    font-weight: bold;
}

.heart-icon {
    font-size: 2em;
    animation: heartbeatEmoji 1.5s ease-in-out infinite;
}

@keyframes heartbeatEmoji {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
}

.love-message {
    color: #d81b60;
    font-size: 1.5em;
    line-height: 1.8;
    margin-bottom: 30px;
    font-weight: 500;
}

.date {
    color: #ff69b4;
    font-size: 1.3em;
    margin-top: 30px;
    font-weight: bold;
}

.floating-emojis {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    gap: 30px;
}

.floating-emojis span {
    font-size: 2.5em;
    animation: float 3s ease-in-out infinite;
    display: inline-block;
}

.floating-emojis span:nth-child(1) { animation-delay: 0s; }
.floating-emojis span:nth-child(2) { animation-delay: 0.2s; }
.floating-emojis span:nth-child(3) { animation-delay: 0.4s; }
.floating-emojis span:nth-child(4) { animation-delay: 0.6s; }
.floating-emojis span:nth-child(5) { animation-delay: 0.8s; }

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .login-box {
        padding: 30px 40px;
        margin: 20px;
    }
    
    .login-box h1 {
        font-size: 1.5em;
    }
    
    .video-container {
        padding: 20px;
        margin: 20px;
    }
    
    #videoFrame {
        width: 100%;
        height: 300px;
    }
    
    .message-container {
        padding: 40px 30px;
        margin: 20px;
    }
    
    .main-title {
        font-size: 2.5em;
    }
    
    .subtitle {
        font-size: 1.5em;
    }
    
    .name {
        font-size: 1.2em;
    }
    
    .love-message {
        font-size: 1.2em;
    }
}

