* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    min-height: 100vh;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background:
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.8), transparent 28%),
        radial-gradient(circle at bottom right, rgba(255, 182, 193, 0.7), transparent 30%),
        linear-gradient(135deg, #fbc2eb 0%, #a6c1ee 100%);
}

/* Fondo con fotos */
.collage-container {
    position: fixed;
    inset: 0;
    z-index: 1;
    overflow: hidden;
}

.collage-container::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(1px);
    -webkit-backdrop-filter: blur(1px);
}

.foto {
    position: absolute;
    width: 155px;
    height: 155px;
    object-fit: cover;
    border-radius: 24px;
    border: 4px solid rgba(255, 255, 255, 0.75);
    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.22);
    filter: brightness(0.85) saturate(1.05);
    animation: float-photo 6s ease-in-out infinite;
    transition: 0.35s ease;
    --rotacion: 0deg;
}

.foto:hover {
    filter: brightness(1) saturate(1.15);
    scale: 1.08;
    z-index: 5;
}

.foto-1 {
    top: 8%;
    left: 6%;
    --rotacion: -8deg;
}

.foto-2 {
    top: 13%;
    right: 7%;
    --rotacion: 9deg;
    animation-delay: 0.8s;
}

.foto-3 {
    bottom: 12%;
    left: 8%;
    --rotacion: 7deg;
    animation-delay: 1.4s;
}

.foto-4 {
    bottom: 10%;
    right: 8%;
    --rotacion: -9deg;
    animation-delay: 2s;
}

.foto-5 {
    top: 48%;
    left: 16%;
    --rotacion: 5deg;
    animation-delay: 1s;
}

.foto-6 {
    top: 48%;
    right: 16%;
    --rotacion: -5deg;
    animation-delay: 1.8s;
}

@keyframes float-photo {
    0%, 100% {
        transform: translateY(0) rotate(var(--rotacion));
    }

    50% {
        transform: translateY(-14px) rotate(var(--rotacion));
    }
}

/* Contenedor principal */
.login-container {
    min-height: 100vh;
    padding: 25px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 10;
}

/* Tarjeta */
.login-card {
    width: 370px;
    max-width: 100%;
    padding: 42px 32px;
    text-align: center;
    border-radius: 32px;
    background: rgba(255, 255, 255, 0.62);
    border: 1px solid rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.22);
    animation: float-card 4s ease-in-out infinite;
}

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

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

.heart-badge {
    width: 78px;
    height: 78px;
    margin: 0 auto 15px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff758c, #ff9a9e);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 38px;
    box-shadow: 0 12px 28px rgba(255, 117, 140, 0.4);
}

.mini-text {
    display: inline-block;
    margin-bottom: 12px;
    padding: 7px 16px;
    border-radius: 999px;
    background: rgba(255, 117, 140, 0.16);
    color: #ff4f73;
    font-size: 13px;
    font-weight: 700;
}

h2 {
    color: #2f2f2f;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 10px;
}

.description {
    color: #666;
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 24px;
}

.error-message {
    color: #ff4f73;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 16px;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.75);
    border-radius: 14px;
    border: 1px solid rgba(255, 117, 140, 0.25);
}

.input-group {
    width: 100%;
}

.input-group input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid rgba(255, 255, 255, 0.85);
    border-radius: 16px;
    outline: none;
    font-size: 15px;
    font-weight: 600;
    color: #444;
    text-align: center;
    background: rgba(255, 255, 255, 0.88);
    transition: 0.25s ease;
}

.input-group input::placeholder {
    color: #aaa;
    font-weight: 500;
}

.input-group input:focus {
    border-color: #ff758c;
    box-shadow: 0 0 0 5px rgba(255, 117, 140, 0.18);
}

.btn-login {
    width: 100%;
    padding: 14px;
    margin-top: 18px;
    background: linear-gradient(135deg, #ff758c, #ff4f73);
    color: white;
    border: none;
    border-radius: 16px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 12px 28px rgba(255, 79, 115, 0.35);
    transition: 0.25s ease;
}

.btn-login:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 34px rgba(255, 79, 115, 0.48);
}

.hint {
    margin-top: 18px;
    color: #777;
    font-size: 12px;
}

/* Celular */
@media (max-width: 700px) {
    body {
        overflow-y: auto;
    }

    .login-container {
        padding: 30px 18px;
    }

    .login-card {
        padding: 34px 24px;
        border-radius: 28px;
    }

    h2 {
        font-size: 24px;
    }

    .foto {
        width: 115px;
        height: 115px;
        opacity: 0.65;
    }

    .foto-5,
    .foto-6 {
        display: none;
    }

    .foto-1 {
        top: 4%;
        left: -18px;
    }

    .foto-2 {
        top: 5%;
        right: -18px;
    }

    .foto-3 {
        bottom: 4%;
        left: -18px;
    }

    .foto-4 {
        bottom: 4%;
        right: -18px;
    }
}
/* Corazoncitos dobles de fondo */
.hearts-background {
    position: fixed;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    overflow: hidden;
}

.hearts-background span {
    position: absolute;
    display: block;
    color: #ff6fa3;
    font-size: 28px;
    opacity: 0.45;
    animation: subir-corazon 8s linear infinite;
    filter: drop-shadow(0 4px 8px rgba(255, 105, 160, 0.35));
}

.hearts-background span:nth-child(1) {
    left: 8%;
    animation-delay: 0s;
    animation-duration: 9s;
    font-size: 26px;
}

.hearts-background span:nth-child(2) {
    left: 18%;
    animation-delay: 2s;
    animation-duration: 7s;
    font-size: 34px;
}

.hearts-background span:nth-child(3) {
    left: 28%;
    animation-delay: 4s;
    animation-duration: 10s;
    font-size: 24px;
}

.hearts-background span:nth-child(4) {
    left: 40%;
    animation-delay: 1s;
    animation-duration: 8s;
    font-size: 32px;
}

.hearts-background span:nth-child(5) {
    left: 52%;
    animation-delay: 3s;
    animation-duration: 9s;
    font-size: 27px;
}

.hearts-background span:nth-child(6) {
    left: 64%;
    animation-delay: 5s;
    animation-duration: 7s;
    font-size: 36px;
}

.hearts-background span:nth-child(7) {
    left: 74%;
    animation-delay: 1.5s;
    animation-duration: 10s;
    font-size: 25px;
}

.hearts-background span:nth-child(8) {
    left: 84%;
    animation-delay: 3.5s;
    animation-duration: 8s;
    font-size: 31px;
}

.hearts-background span:nth-child(9) {
    left: 92%;
    animation-delay: 6s;
    animation-duration: 11s;
    font-size: 23px;
}

.hearts-background span:nth-child(10) {
    left: 46%;
    animation-delay: 6.5s;
    animation-duration: 12s;
    font-size: 38px;
}

@keyframes subir-corazon {
    0% {
        bottom: -80px;
        transform: translateX(0) rotate(0deg) scale(0.8);
        opacity: 0;
    }

    15% {
        opacity: 0.45;
    }

    50% {
        transform: translateX(25px) rotate(12deg) scale(1);
    }

    85% {
        opacity: 0.45;
    }

    100% {
        bottom: 110%;
        transform: translateX(-25px) rotate(-12deg) scale(1.2);
        opacity: 0;
    }
}
