.login-container {
    max-width: 320px;
    margin: 3rem auto;
    background: rgba(255, 255, 255, 0.1);
    padding: 2rem 3rem;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.37);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #5e3e94;
    text-align: center;
    transition: transform 0.3s ease;
}

input[type="text"], input[type="password"] {
    width: 100%;
    padding: 0.75rem;
    margin: 0.5rem 0 1rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    box-sizing: border-box;
    outline: none;
    transition: box-shadow 0.3s ease;
}

input[type="text"]:focus, input[type="password"]:focus {
    box-shadow: 0 0 8px var(--user-color);
}

.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    color: white;
    font-size: 1rem;
    cursor: pointer;
    width: 100%;
    border: none;
    transition: background-color 0.3s ease;
}

.btn-primary {
    background-color: var(--user-color);
}

.btn-primary:hover, .btn-primary:focus {
    background-color: #5e3e94;
    outline: none;
}

.alert {
    margin-bottom: 1rem;
    padding: 0.5rem;
    border-radius: 6px;
    font-weight: 600;
}

.alert-danger {
    background-color: #e74c3c;
    color: white;
}

.alert-success {
    background-color: #2ecc71;
    color: white;
}

/* Dynamic and phone-friendly title styles */
.animated-title {
    font-size: clamp(1.5rem, 8vw, 3rem);
    font-weight: 800;
    color: var(--user-color);
    text-align: center;
    line-height: 1.1;
    margin-bottom: 1rem;
    word-break: normal; /* Prevent breaking words in the middle */
    overflow-wrap: break-word; /* Allow wrapping between words */
}

@media (max-width: 100px) {
    .animated-title {
        white-space: normal; /* Allow wrapping on small screens */
    }
}

.heart-p, .plusminus-p {
    display: inline-block;
    position: relative;
    vertical-align: middle;
}

.heart-p .heart {
    position: absolute;
    left: 50%;
    top: -10px;
    width: 20px;
    height: 18px;
    background: var(--user-color);
    transform: translateX(-50%) rotate(-45deg);
    animation: heart-float 2s infinite ease-in-out;
}

.heart-p .heart::before,
.heart-p .heart::after {
    content: "";
    position: absolute;
    width: 20px;
    height: 18px;
    background: var(--user-color);
    border-radius: 50%;
}

.heart-p .heart::before {
    top: 0;
    left: 10px;
}

.heart-p .heart::after {
    top: -10px;
    left: 0;
}

.plusminus-p .plus, .plusminus-p .minus {
    position: absolute;
    font-size: 1.5rem;
    font-weight: 900;
    opacity: 0;
    animation: float-signs 3s infinite ease-in-out;
}

.plusminus-p .plus {
    left: 50%;
    top: -10px;
    color: #2ecc71;
    animation-delay: 0s;
}

.plusminus-p .minus {
    left: 70%;
    top: -10px;
    color: #e74c3c;
    animation-delay: 1.5s;
}

@media (max-width: 400px) {
    .animated-title {
        font-size: clamp(1.2rem, 10vw, 2.5rem);
        line-height: 1.2;
    }
}

@keyframes heart-float {
    0% {
        opacity: 1;
        transform: translateX(-50%) translateY(0) rotate(-45deg);
    }
    50% {
        opacity: 0.6;
        transform: translateX(calc(-50% - 10px)) translateY(-20px) rotate(-45deg);
    }
    100% {
        opacity: 0;
        transform: translateX(calc(-50% - 20px)) translateY(-40px) rotate(-45deg);
    }
}

@keyframes float-signs {
    0% {
        opacity: 1;
        transform: translateY(0) translateX(0) scale(1);
    }
    50% {
        opacity: 0.5;
        transform: translateY(-20px) translateX(10px) scale(1.2);
    }
    100% {
        opacity: 0;
        transform: translateY(-40px) translateX(20px) scale(0);
    }
}