:root {
    --primary-pink: #ff6b9d;
    --secondary-purple: #c44569;
    --accent-gold: #ffd700;
    --light-pink: #ffe5ec;
    --dark-purple: #6c5ce7;
    --gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-2: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-3: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --gradient-bg: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
}

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

body {
    font-family: 'Poppins', sans-serif;
    overflow-x: hidden;
    min-height: 100vh;
}

.screen {
    display: none;
    min-height: 100vh;
    width: 100%;
}

.screen.active {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* ============================================
   LOGIN SCREEN STYLES
   ============================================ */

#loginScreen {
    background: var(--gradient-bg);
    position: relative;
    overflow: hidden;
}

#loginScreen::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: moveBackground 20s linear infinite;
}

@keyframes moveBackground {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

.login-container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 3rem 2.5rem;
    border-radius: 30px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    text-align: center;
    max-width: 450px;
    width: 90%;
    position: relative;
    z-index: 1;
    animation: fadeInScale 0.6s ease-out;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.lock-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    animation: bounce 2s infinite;
}

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

.login-title {
    font-family: 'Pacifico', cursive;
    font-size: 2rem;
    background: var(--gradient-2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.login-subtitle {
    color: #666;
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

#loginForm {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

#passwordInput {
    padding: 1rem 1.5rem;
    border: 2px solid #e0e0e0;
    border-radius: 15px;
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
    text-align: center;
    letter-spacing: 2px;
}

#passwordInput:focus {
    outline: none;
    border-color: var(--primary-pink);
    box-shadow: 0 0 0 4px rgba(255, 107, 157, 0.1);
}

.unlock-btn {
    background: var(--gradient-2);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 15px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
}

.unlock-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(245, 87, 108, 0.4);
}

.unlock-btn:active {
    transform: translateY(0);
}

.error-message {
    color: #e74c3c;
    font-size: 0.9rem;
    min-height: 20px;
    margin-top: -0.5rem;
}

/* ============================================
   BIRTHDAY SCREEN STYLES
   ============================================ */

#birthdayScreen {
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 25%, #ff9a9e 50%, #fad0c4 75%, #ffecd2 100%);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    position: relative;
    overflow-y: auto;
    padding: 2rem 1rem;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.birthday-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* Confetti */
.confetti-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 100;
}

.confetti {
    position: absolute;
    width: 10px;
    height: 10px;
    background: var(--accent-gold);
    animation: confettiFall linear infinite;
}

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

/* Balloons */
.balloons {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 0;
}

.balloon {
    position: absolute;
    font-size: 3rem;
    animation: floatBalloon 6s ease-in-out infinite;
}

.balloon-1 {
    left: 5%;
    animation-delay: 0s;
    animation-duration: 7s;
}

.balloon-2 {
    left: 20%;
    animation-delay: 1s;
    animation-duration: 6s;
}

.balloon-3 {
    left: 80%;
    animation-delay: 2s;
    animation-duration: 8s;
}

.balloon-4 {
    left: 90%;
    animation-delay: 1.5s;
    animation-duration: 7.5s;
}

.balloon-5 {
    left: 50%;
    animation-delay: 0.5s;
    animation-duration: 6.5s;
}

@keyframes floatBalloon {
    0%, 100% {
        transform: translateY(100vh) rotate(0deg);
    }
    50% {
        transform: translateY(-20vh) rotate(10deg);
    }
}

/* Content wrapper */
.content-wrapper {
    position: relative;
    z-index: 2;
}

/* Birthday title */
.birthday-title {
    text-align: center;
    margin-bottom: 3rem;
    animation: titleEntrance 1s ease-out;
}

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

.title-line {
    display: block;
    font-family: 'Pacifico', cursive;
    font-size: clamp(2.5rem, 6vw, 4rem);
    color: #fff;
    text-shadow: 
        3px 3px 0 var(--secondary-purple),
        6px 6px 0 var(--dark-purple),
        9px 9px 20px rgba(0, 0, 0, 0.3);
    margin-bottom: 0.5rem;
}

.name-highlight {
    display: block;
    font-family: 'Pacifico', cursive;
    font-size: clamp(3rem, 8vw, 5rem);
    background: linear-gradient(45deg, #ff6b6b, #ffd93d, #6bcf7f, #4d96ff, #ff6bcf);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: rainbowText 3s ease infinite;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.3));
}

@keyframes rainbowText {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Photo frame */
.photo-frame {
    position: relative;
    max-width: 400px;
    margin: 0 auto 3rem;
    animation: photoEntrance 1.2s ease-out 0.3s both;
}

@keyframes photoEntrance {
    from {
        opacity: 0;
        transform: scale(0.5) rotate(-10deg);
    }
    to {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

.frame-decoration {
    position: absolute;
    inset: -15px;
    background: linear-gradient(45deg, #ff6b9d, #c44569, #ffd700, #ff6b9d);
    background-size: 300% 300%;
    border-radius: 30px;
    animation: rotateBorder 4s linear infinite;
    z-index: -1;
}

@keyframes rotateBorder {
    0% { background-position: 0% 50%; }
    100% { background-position: 100% 50%; }
}

.birthday-photo {
    width: 100%;
    height: auto;
    border-radius: 20px;
    display: block;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 1;
}

.photo-glow {
    position: absolute;
    inset: -20px;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.4), transparent);
    border-radius: 30px;
    animation: pulse 2s ease-in-out infinite;
    z-index: -2;
}

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

/* Message card */
.message-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 25px;
    padding: 2.5rem;
    margin: 0 auto;
    max-width: 700px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    animation: messageEntrance 1.5s ease-out 0.6s both;
    border: 3px solid rgba(255, 255, 255, 0.5);
}

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

.message-content {
    color: #333;
}

.message-text {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    text-align: center;
    font-weight: 300;
}

.message-signature {
    font-family: 'Pacifico', cursive;
    font-size: 1.3rem;
    text-align: center;
    background: var(--gradient-2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-top: 2rem;
}

/* Party poppers */
.poppers {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 50;
}

.popper {
    position: absolute;
    font-size: 5rem;
    animation: popperPop 2s ease-in-out infinite;
}

.popper-left {
    left: 10%;
    top: 20%;
    animation-delay: 0s;
}

.popper-right {
    right: 10%;
    top: 20%;
    animation-delay: 1s;
}

@keyframes popperPop {
    0%, 100% {
        transform: scale(1) rotate(0deg);
    }
    25% {
        transform: scale(1.2) rotate(10deg);
    }
    75% {
        transform: scale(1.2) rotate(-10deg);
    }
}

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

.heart {
    position: absolute;
    font-size: 2rem;
    animation: floatHeart 8s ease-in-out infinite;
    opacity: 0.7;
}

.heart-1 {
    left: 15%;
    animation-delay: 0s;
}

.heart-2 {
    left: 35%;
    animation-delay: 2s;
}

.heart-3 {
    left: 55%;
    animation-delay: 4s;
}

.heart-4 {
    left: 75%;
    animation-delay: 6s;
}

.heart-5 {
    left: 85%;
    animation-delay: 1s;
}

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

/* Responsive design */
@media (max-width: 768px) {
    .login-container {
        padding: 2rem 1.5rem;
    }

    .login-title {
        font-size: 1.5rem;
    }

    .message-card {
        padding: 1.5rem;
    }

    .message-text {
        font-size: 1rem;
    }

    .popper {
        font-size: 3rem;
    }

    .balloon {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .login-container {
        padding: 1.5rem 1rem;
    }

    .message-card {
        padding: 1.25rem;
    }

    .message-text {
        font-size: 0.95rem;
    }
}
