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

body {
    font-family: Arial, Helvetica, sans-serif;
    background: linear-gradient(
        180deg, 
        #021f4f, 
        #9d0606,
        #9d0606);
    min-height: 100vh;
}

/* CONTENEDOR */

.login-container {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 30px;
}

/* TARJETA */

.login-card {
    width: 100%;
    max-width: 430px;
    background: #00000050;
    padding: 45px 40px;
    border-radius: 20px;
    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.25);
}

/* MARCA */

.brand {
    text-align: center;
    margin-bottom: 30px;
}


.brand-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    background: #e81713;
    color: #ffffff;
    font-size: 22px;
    font-weight: bold;
    box-shadow: 0 8px 20px rgba(232, 23, 19, 0.3);
}

.brand h1 {
    color: #e3e5e9d7;
    font-size: 25px;
    margin-bottom: 6px;
}


.brand p {
    color: #e3e5e9d7;
    font-size: 14px;
}


/* BIENVENIDA */

.welcome {
    text-align: center;
    margin-bottom: 25px;
}


.welcome h2 {
    color: #e3e5e9d7;
    font-size: 24px;
    margin-bottom: 8px;
}

.welcome p {
    color: #e3e5e9d7;
    font-size: 14px;
}

/* INPUTS */

.input-group {
    margin-bottom: 20px;
}


.input-group label {
    display: block;
    margin-bottom: 8px;
    color: #e3e5e9d7;
    font-size: 14px;
    font-weight: 600;
}

.input-group input {
    width: 100%;
    padding: 14px 15px;
    border: 1px solid #d8dce3;
    border-radius: 10px;
    font-size: 15px;
    outline: none;
    transition: 0.3s;
}

.input-group input:focus {
    border-color: #06419d;
    box-shadow:
        0 0 0 3px rgba(6, 65, 157, 0.12);
}

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

/* ERROR */

.error-message {
    background: #0707074f;
    color: #f0d3d2;
    border: 1px solid #000000aa;
    padding: 12px;
    border-radius: 9px;
    margin-bottom: 20px;
    text-align: center;
    font-size: 14px;
}

/* BOTÓN */

.login-button {
    width: 100%;
    border: none;
    padding: 15px;
    border-radius: 10px;
    background: #e81713;
    color: rgb(255, 255, 255);
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.login-button:hover {
    background: #c5100d;
    transform: translateY(-2px);
    box-shadow:
        0 8px 18px rgba(232, 23, 19, 0.25);
}

/* VOLVER */

.back-link {
    width: 100%;
    border: none;
    padding: 15px;
    border-radius: 10px;
    background: #335796;
    color: #ffffff;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    display: block;
    text-align: center;
    text-decoration: none;
    margin-top: 15px;
    transition: 0.3s;
}

.back-link:hover {
    background: #26437a;
    transform: translateY(-2px);
    box-shadow:
        0 8px 18px rgba(51, 87, 150, 0.3);
}

/* RESPONSIVE */

@media (max-width: 500px) {

    .login-container {
        padding: 20px;
    }

    .login-card {
        padding: 35px 25px;
    }

    .brand h1 {
        font-size: 22px;
    }

}

/* CÍRCULOS FLOTANTES */

.floating-circles {
    position: fixed;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.floating-circles span {
    position: absolute;
    display: block;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    animation: floatCircle 18s infinite ease-in-out;
}

/* POSICIONES */

.floating-circles span:nth-child(1) {
    width: 180px;
    height: 180px;
    left: -50px;
    top: 10%;
}

.floating-circles span:nth-child(2) {
    width: 90px;
    height: 90px;
    right: 10%;
    top: 8%;
    animation-delay: 3s;
}

.floating-circles span:nth-child(3) {
    width: 240px;
    height: 240px;
    right: -80px;
    bottom: 5%;
    animation-delay: -8s;
}

.floating-circles span:nth-child(4) {
    width: 70px;
    height: 70px;
    left: 15%;
    bottom: 12%;
    animation-delay: -12s;
}

.floating-circles span:nth-child(5) {
    width: 130px;
    height: 130px;
    left: 5%;
    top: 55%;
    animation-delay: -6s;
}

.floating-circles span:nth-child(6) {
    width: 55px;
    height: 55px;
    right: 25%;
    bottom: 18%;
    animation-delay: -10s;
}

.floating-circles span:nth-child(7) {
    width: 110px;
    height: 110px;
    right: 35%;
    top: -40px;
    animation-delay: 3s;
}

/* ANIMACIÓN */

@keyframes floatCircle {

    0% {
        transform: translateY(0) translateX(0) rotate(0deg);
    }

    50% {
        transform: translateY(-35px) translateX(20px) rotate(10deg);
    }

    100% {
        transform: translateY(0) translateX(0) rotate(0deg);
    }

}