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

body {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: Arial, sans-serif;

    background:
    radial-gradient(circle at top, #8e294c 0%, transparent 48%),
    linear-gradient(135deg, #250712, #58152b, #1a0610);
    color: white;
}

.login-box {
    width: 90%;
    max-width: 430px;
    padding: 50px 35px;

    text-align: center;

    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 25px;

    backdrop-filter: blur(15px);

    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.moon {
    font-size: 55px;
    margin-bottom: 20px;
    animation: moonGlow 3s ease-in-out infinite;
    filter: drop-shadow(0 0 12px rgba(130, 190, 255, 0.6));
}

@keyframes moonGlow {
    0%, 100% {
        transform: translateY(0);
        filter: drop-shadow(0 0 10px rgba(130, 190, 255, 0.4));
    }

    50% {
        transform: translateY(-5px);
        filter: drop-shadow(0 0 22px rgba(130, 190, 255, 0.9));
    }
}

h1 {
    font-size: 30px;
    margin-bottom: 15px;
}

.login-box p {
    color: #e8cbdc;
    margin-bottom: 25px;
    line-height: 1.5;
}

input {
    width: 100%;
    padding: 15px;

    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;

    background: rgba(255, 255, 255, 0.1);
    color: white;

    font-size: 16px;
    outline: none;

    margin-bottom: 15px;
}

input::placeholder {
    color: #cfaabd;
}

input:focus {
    border-color: #ff7eb6;
}

button {
    width: 100%;
    padding: 15px;

    border: none;
    border-radius: 12px;

    background: linear-gradient(135deg, #ff4f91, #ff7eb6);
    color: white;

    font-size: 16px;
    font-weight: bold;

    cursor: pointer;

    transition: 0.25s;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(255, 79, 145, 0.35);
}

#error {
    color: #ff9dbf;
    margin-top: 15px;
    margin-bottom: 0;
    min-height: 20px;
}

@keyframes heartbeat {
    0%, 100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.15);
    }
}



/* =========================================
   BIRTHDAY PAGE
========================================= */

.birthday-page {
    display: block;
    min-height: 100vh;
    overflow-x: hidden;

    background:
        radial-gradient(
            circle at 50% -10%,
            #963451 0%,
            #631a36 25%,
            #350d22 55%,
            #180711 100%
        );

    color: white;
}


/* =========================================
   HERO
========================================= */

.birthday-hero {
    position: relative;
    z-index: 5;

    min-height: 100vh;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    text-align: center;
    padding: 30px;
}


/* Moon */

.birthday-moon {
    font-size: 78px;

    margin-bottom: 22px;

    animation: moonFloat 4s ease-in-out infinite;

    filter:
        drop-shadow(0 0 12px rgba(255, 220, 130, 0.6))
        drop-shadow(0 0 30px rgba(120, 190, 255, 0.4));
}


@keyframes moonFloat {

    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}


/* Small text */

.small-text {
    color: #9dccff;

    font-size: 13px;
    font-weight: 600;

    letter-spacing: 5px;

    margin-bottom: 15px;
}


/* Happy Birthday */

.birthday-hero h1 {

    font-family: Georgia, "Times New Roman", serif;

    font-size: clamp(55px, 8vw, 105px);

    font-weight: normal;

    margin-bottom: 20px;

    filter:
        drop-shadow(0 0 12px rgba(120, 190, 255, 0.25));
}


@keyframes titleGlow {

    from {
        background-position: 0% center;
    }

    to {
        background-position: 200% center;
    }
}

.birthday-title {
    display: inline-block;

    background: linear-gradient(
        90deg,
        #ffffff,
        #cfe7ff,
        #88bdff,
        #ffffff
    );

    background-size: 200% auto;

    -webkit-background-clip: text;
    background-clip: text;

    -webkit-text-fill-color: transparent;

    animation: titleGlow 6s linear infinite;
}

.birthday-emoji {
    display: inline-block;

    -webkit-text-fill-color: initial;

    margin-left: 12px;

    font-family: "Segoe UI Emoji", "Apple Color Emoji", sans-serif;

    animation: emojiBounce 2s ease-in-out infinite;
}

@keyframes emojiBounce {
    0%, 100% {
        transform: rotate(-5deg) translateY(0);
    }

    50% {
        transform: rotate(5deg) translateY(-8px);
    }
}

/* Intro */

.birthday-intro {

    max-width: 650px;

    color: #c7ddf6;

    font-size: 18px;
    line-height: 1.7;
}


/* Scroll indicator */

.scroll-hint {

    position: absolute;

    bottom: 35px;

    color: #79a9dc;

    font-size: 13px;

    animation: scrollBounce 2s ease-in-out infinite;
}


@keyframes scrollBounce {

    0%, 100% {
        transform: translateY(0);
        opacity: 0.6;
    }

    50% {
        transform: translateY(7px);
        opacity: 1;
    }
}


/* =========================================
   STARS
========================================= */

.stars {

    position: fixed;

    inset: 0;

    pointer-events: none;

    overflow: hidden;

    z-index: 1;
}


.stars span {

    position: absolute;

    width: 3px;
    height: 3px;

    background: #ffffff;

    border-radius: 50%;

    box-shadow:
        0 0 5px #ffffff,
        0 0 12px rgba(120, 190, 255, 0.8);

    animation:
        starTwinkle 4s ease-in-out infinite;
}


/* Star locations */

.stars span:nth-child(1)  { top: 8%;  left: 8%; }
.stars span:nth-child(2)  { top: 17%; left: 18%; animation-delay: .7s; }
.stars span:nth-child(3)  { top: 10%; left: 34%; animation-delay: 1.8s; }
.stars span:nth-child(4)  { top: 19%; left: 62%; animation-delay: .3s; }
.stars span:nth-child(5)  { top: 11%; left: 79%; animation-delay: 2.4s; }
.stars span:nth-child(6)  { top: 25%; left: 91%; animation-delay: 1.2s; }

.stars span:nth-child(7)  { top: 38%; left: 12%; animation-delay: 2s; }
.stars span:nth-child(8)  { top: 43%; left: 29%; animation-delay: .5s; }
.stars span:nth-child(9)  { top: 34%; left: 72%; animation-delay: 1.5s; }
.stars span:nth-child(10) { top: 46%; left: 88%; animation-delay: 2.8s; }

.stars span:nth-child(11) { top: 63%; left: 7%; animation-delay: 1s; }
.stars span:nth-child(12) { top: 69%; left: 23%; animation-delay: 2.2s; }
.stars span:nth-child(13) { top: 61%; left: 64%; animation-delay: .8s; }
.stars span:nth-child(14) { top: 72%; left: 82%; animation-delay: 1.7s; }

.stars span:nth-child(15) { top: 86%; left: 15%; animation-delay: .4s; }
.stars span:nth-child(16) { top: 82%; left: 39%; animation-delay: 2.5s; }
.stars span:nth-child(17) { top: 88%; left: 68%; animation-delay: 1.3s; }
.stars span:nth-child(18) { top: 83%; left: 94%; animation-delay: 2s; }


@keyframes starTwinkle {

    0%, 100% {
        opacity: 0.15;
        transform: scale(0.7);
    }

    50% {
        opacity: 0.9;
        transform: scale(1.5);
    }
}


/* =========================================
   CONFETTI
========================================= */

.confetti {

    position: fixed;

    inset: 0;

    overflow: hidden;

    pointer-events: none;

    z-index: 3;
}


.confetti i {

    position: absolute;

    top: -10%;

    width: 9px;
    height: 18px;

    opacity: 0.85;

    border-radius: 2px;

    animation:
        confettiFall 9s linear infinite,
        confettiSpin 3s ease-in-out infinite;
}


/* Blue and gold confetti */

.confetti i:nth-child(3n + 1) {
    background: #67aaff;
}

.confetti i:nth-child(3n + 2) {
    background: #d6ad58;
}

.confetti i:nth-child(3n + 3) {
    background: #7b75ff;
}


/* Different positions + speeds */

.confetti i:nth-child(1)  { left: 3%;  animation-delay: -2s;  animation-duration: 8s, 2.7s; }
.confetti i:nth-child(2)  { left: 8%;  animation-delay: -6s;  animation-duration: 11s, 3.2s; }
.confetti i:nth-child(3)  { left: 14%; animation-delay: -4s;  animation-duration: 9s, 2.4s; }
.confetti i:nth-child(4)  { left: 20%; animation-delay: -8s;  animation-duration: 12s, 3.5s; }
.confetti i:nth-child(5)  { left: 27%; animation-delay: -1s;  animation-duration: 10s, 2.8s; }

.confetti i:nth-child(6)  { left: 34%; animation-delay: -7s;  animation-duration: 13s, 3.1s; }
.confetti i:nth-child(7)  { left: 40%; animation-delay: -3s;  animation-duration: 9s, 2.6s; }
.confetti i:nth-child(8)  { left: 46%; animation-delay: -10s; animation-duration: 12s, 3.7s; }
.confetti i:nth-child(9)  { left: 52%; animation-delay: -5s;  animation-duration: 10s, 2.5s; }
.confetti i:nth-child(10) { left: 58%; animation-delay: -9s;  animation-duration: 14s, 3.3s; }

.confetti i:nth-child(11) { left: 63%; animation-delay: -2s;  animation-duration: 11s, 2.8s; }
.confetti i:nth-child(12) { left: 68%; animation-delay: -6s;  animation-duration: 9s, 3.5s; }
.confetti i:nth-child(13) { left: 73%; animation-delay: -4s;  animation-duration: 13s, 2.6s; }
.confetti i:nth-child(14) { left: 78%; animation-delay: -8s;  animation-duration: 10s, 3.1s; }
.confetti i:nth-child(15) { left: 83%; animation-delay: -1s;  animation-duration: 12s, 2.5s; }

.confetti i:nth-child(16) { left: 87%; animation-delay: -7s;  animation-duration: 9s, 3.4s; }
.confetti i:nth-child(17) { left: 91%; animation-delay: -3s;  animation-duration: 13s, 2.7s; }
.confetti i:nth-child(18) { left: 94%; animation-delay: -10s; animation-duration: 11s, 3.6s; }
.confetti i:nth-child(19) { left: 97%; animation-delay: -5s;  animation-duration: 10s, 2.8s; }
.confetti i:nth-child(20) { left: 50%; animation-delay: -11s; animation-duration: 14s, 3.3s; }


@keyframes confettiFall {

    0% {
        top: -10%;
        transform: translateX(0);
    }

    25% {
        transform: translateX(25px);
    }

    50% {
        transform: translateX(-15px);
    }

    75% {
        transform: translateX(20px);
    }

    100% {
        top: 110%;
        transform: translateX(-10px);
    }
}


@keyframes confettiSpin {

    0% {
        rotate: 0deg;
    }

    50% {
        rotate: 180deg;
    }

    100% {
        rotate: 360deg;
    }
}

.birthday-name {
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(38px, 5vw, 65px);
    font-weight: normal;

    margin-bottom: 22px;

    background: linear-gradient(
        90deg,
        #ffffff,
        #9dccff,
        #ffffff
    );

    background-size: 200% auto;

    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;

    filter:
        drop-shadow(0 0 12px rgba(120, 190, 255, 0.35));

    animation:
        nameGlow 5s linear infinite,
        nameFloat 4s ease-in-out infinite;
}

@keyframes nameGlow {
    from {
        background-position: 0% center;
    }

    to {
        background-position: 200% center;
    }
}

@keyframes nameFloat {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-6px);
    }
}

/* =========================================
   BIRTHDAY MESSAGE
========================================= */

.message-section {
    position: relative;
    z-index: 5;

    min-height: 100vh;
    padding: 100px 20px;

    display: flex;
    justify-content: center;
    align-items: center;

    text-align: center;
}

.message-container {
    width: 100%;
    max-width: 750px;
}

.message-container h2 {
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(35px, 5vw, 60px);
    font-weight: normal;

    color: #cce4ff;
    margin-bottom: 35px;
}

.birthday-letter {
    padding: 40px 30px;

    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(160, 205, 255, 0.2);
    border-radius: 22px;

    color: #dcecff;

    font-size: 18px;
    line-height: 1.9;

    text-align: left;
}

@media (max-width: 600px) { .birthday-letter { padding: 25px 20px; } }
