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

body {
    font-family: 'Poppins', sans-serif;
    overflow-x: hidden;
    background: linear-gradient(135deg, #FFE4E1 0%, #FFB6C1 50%, #E6D5F5 100%);
    min-height: 100vh;
}

.floating-hearts-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.floating-heart {
    position: absolute;
    bottom: -50px;
    font-size: 1.5rem;
    opacity: 0;
    animation: floatUp 8s infinite ease-in-out;
}

@keyframes floatUp {
    0% {
        transform: translateY(0) translateX(0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.6;
    }
    90% {
        opacity: 0.6;
    }
    100% {
        transform: translateY(-100vh) translateX(50px) rotate(360deg);
        opacity: 0;
    }
}

.login-screen {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 1rem;
}

.floating-hearts-login {
    position: absolute;
    width: 50px;
    height: 50px;
    opacity: 0;
    animation: floatHeartsLogin 6s infinite ease-in-out;
}

.floating-hearts-login::before {
    content: '💖';
    font-size: 2rem;
    position: absolute;
}

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

.floating-hearts-login:nth-child(1) {
    left: 10%;
    animation-duration: 7s;
}

.floating-hearts-login:nth-child(2) {
    left: 50%;
    animation-duration: 8s;
}

.floating-hearts-login:nth-child(3) {
    left: 80%;
    animation-duration: 6s;
}

.login-card {
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(24px);
    border-radius: 30px;
    padding: 3rem 2.5rem;
    box-shadow: 0 8px 32px rgba(255, 105, 180, 0.2), 0 0 60px rgba(255, 182, 193, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.4);
    max-width: 550px;
    width: 100%;
    position: relative;
    animation: popIn 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 10;
}

@keyframes popIn {
    0% {
        transform: scale(0.3);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.login-card.shake {
    animation: shake 0.5s;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

.sparkle {
    position: absolute;
    font-size: 1.5rem;
    animation: sparkleAnimation 2s infinite ease-in-out;
}

.sparkle-1 {
    top: 10%;
    left: 10%;
}

.sparkle-2 {
    top: 15%;
    right: 15%;
    animation-delay: 0.7s;
}

.sparkle-3 {
    bottom: 15%;
    left: 15%;
    animation-delay: 1.4s;
}

@keyframes sparkleAnimation {
    0%, 100% {
        transform: scale(1) rotate(0deg);
        opacity: 0.6;
    }
    50% {
        transform: scale(1.3) rotate(180deg);
        opacity: 1;
    }
}

.login-title {
    font-size: 1.75rem;
    font-weight: 700;
    text-align: center;
    color: #4A0E4E;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.gradient-text {
    background: linear-gradient(135deg, #FF1493, #FF69B4, #DA70D6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
    animation: glow 2s ease-in-out infinite;
}

@keyframes glow {
    0%, 100% {
        filter: drop-shadow(0 0 10px rgba(255, 20, 147, 0.5));
    }
    50% {
        filter: drop-shadow(0 0 20px rgba(255, 105, 180, 0.8));
    }
}

.login-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: #6B2D6F;
    margin-bottom: 2rem;
    font-weight: 400;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.login-input {
    padding: 1rem 1.5rem;
    border: 2px solid rgba(255, 105, 180, 0.3);
    border-radius: 50px;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.6);
    color: #4A0E4E;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
    outline: none;
}

.login-input::placeholder {
    color: #B565A7;
}

.login-input:focus {
    border-color: #FF69B4;
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 0 15px rgba(255, 105, 180, 0.3);
}

.error-message {
    color: #D63031;
    text-align: center;
    font-size: 0.95rem;
    font-weight: 500;
}

.unlock-button {
    padding: 1.2rem 2rem;
    background: linear-gradient(135deg, #FF69B4, #FF1493);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1.15rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(255, 20, 147, 0.4);
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
    margin-top: 0.5rem;
}

.unlock-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(255, 20, 147, 0.6);
}

.main-content {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    position: relative;
    z-index: 10;
}

.section {
    animation: fadeSlideIn 0.8s ease-out;
}

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

.glass-card {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(20px);
    border-radius: 30px;
    padding: 3rem;
    box-shadow: 0 8px 32px rgba(255, 105, 180, 0.15), 0 0 60px rgba(255, 182, 193, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    max-width: 1100px;
    width: 100%;
}

.section-content {
    text-align: center;
}

.main-title {
    font-size: 3rem;
    font-weight: 700;
    color: #4A0E4E;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.glow-text {
    text-shadow: 0 0 20px rgba(255, 105, 180, 0.6), 0 0 40px rgba(255, 105, 180, 0.4);
    animation: glowPulse 2s ease-in-out infinite;
}

@keyframes glowPulse {
    0%, 100% {
        text-shadow: 0 0 20px rgba(255, 105, 180, 0.6), 0 0 40px rgba(255, 105, 180, 0.4);
    }
    50% {
        text-shadow: 0 0 30px rgba(255, 105, 180, 0.8), 0 0 60px rgba(255, 105, 180, 0.6);
    }
}

.subtitle-handwritten {
    font-family: 'Dancing Script', cursive;
    font-size: 2.5rem;
    color: #FF1493;
    margin-bottom: 2rem;
    font-weight: 600;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #4A0E4E;
    margin-bottom: 2rem;
}

.message-text {
    font-size: 1.35rem;
    color: #6B2D6F;
    margin: 1.5rem 0;
    line-height: 1.7;
}

.message-text.smaller {
    font-size: 1.15rem;
    font-style: italic;
    color: #8B4789;
}

.message-text.large {
    font-size: 1.5rem;
    font-weight: 500;
}

.message-list {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.animated-name-container {
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.animated-name {
    font-size: 2.5rem;
}

/* IMPROVED PHOTO GALLERY - NO CROPPING */
.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
    align-items: start;
}

.photo-frame {
    background: rgba(255, 255, 255, 0.4);
    border-radius: 20px;
    padding: 1rem;
    box-shadow: 0 4px 15px rgba(255, 105, 180, 0.2);
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.photo-frame:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(255, 105, 180, 0.4), 0 0 30px rgba(255, 182, 193, 0.3);
}

.photo-image-wrapper {
    width: 100%;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 250px;
}

.photo-image {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: contain;
    display: block;
}

.photo-caption {
    font-size: 1.1rem;
    color: #6B2D6F;
    font-weight: 500;
    text-align: center;
    margin-top: 0.75rem;
    padding: 0.5rem;
}

.action-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-top: 2.5rem;
    flex-wrap: wrap;
}

.action-button {
    padding: 1.2rem 2.5rem;
    font-size: 1.2rem;
    font-weight: 600;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.hug-button {
    background: linear-gradient(135deg, #FFB6C1, #FFC0CB);
    color: #4A0E4E;
}

.hug-button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 20px rgba(255, 182, 193, 0.5);
}

.kiss-button {
    background: linear-gradient(135deg, #FF69B4, #FF1493);
    color: white;
}

.kiss-button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 20px rgba(255, 20, 147, 0.5);
}

.hearts-burst {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 999;
}

.burst-heart {
    position: absolute;
    font-size: 2rem;
    animation: burstOut 1s ease-out forwards;
}

@keyframes burstOut {
    0% {
        transform: translate(0, 0) scale(1);
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}

.sparkles-final {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
    font-size: 3rem;
}

.sparkle-emoji {
    display: inline-block;
    animation: sparkleRotate 2s ease-in-out infinite;
}

.sparkle-emoji:nth-child(2) {
    animation-delay: 0.3s;
}

.sparkle-emoji:nth-child(3) {
    animation-delay: 0.6s;
}

@keyframes sparkleRotate {
    0%, 100% {
        transform: scale(1) rotate(0deg);
    }
    50% {
        transform: scale(1.3) rotate(180deg);
    }
}

.navigation-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.nav-button {
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, #FF69B4, #FF1493);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(255, 20, 147, 0.3);
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
}

.nav-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(255, 20, 147, 0.5);
}

@media (max-width: 768px) {
    .login-card, .glass-card {
        padding: 2rem 1.5rem;
    }
    
    .main-title {
        font-size: 2.2rem;
    }
    
    .subtitle-handwritten {
        font-size: 1.8rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .message-text {
        font-size: 1.2rem;
    }
    
    .photo-grid {
        grid-template-columns: 1fr;
    }

    .photo-image {
        max-height: 400px;
    }
}

@media (max-width: 480px) {
    .main-title {
        font-size: 1.8rem;
    }
    
    .subtitle-handwritten {
        font-size: 1.5rem;
    }
    
    .message-text {
        font-size: 1.1rem;
    }

    .photo-image {
        max-height: 300px;
    }
}
