/* --- ESTILO GENERAL --- */
body {
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
    background: #0a0d17;
    color: white;
}

.container {
    display: flex;
    height: 100vh;
}

/* --- COLUMNA IZQUIERDA CON IMAGEN GRANDE --- */
.image-side {
    flex: 1.2;
    background: url("gym.jpg") center/cover no-repeat;
    position: relative;
}

.overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-left: 60px;
}

.overlay h1 {
    font-size: 48px;
    font-weight: bold;
    color: #48f0ac;
}

.overlay p {
    max-width: 400px;
    font-size: 20px;
    color: #d0d7e7;
}

/* --- COLUMNA DERECHA LOGIN --- */
.login-side {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 30px;
}

.logo-box img {
    width: 120px;
    margin-bottom: 30px;
}

/* --- TARJETA LOGIN --- */
.login-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 40px;
    width: 360px;
    border-radius: 16px;
    box-shadow: 0 0 30px rgba(0, 0, 0, .4);
    backdrop-filter: blur(8px);
    text-align: center;
}

.login-card h2 {
    margin-bottom: 5px;
}

.subtitle {
    color: #96a1b5;
    margin-bottom: 25px;
}

/* --- INPUTS --- */
.input-group {
    text-align: left;
    margin-bottom: 20px;
}

label {
    color: #a9b4c7;
    font-size: 14px;
}

input {
    width: 100%;
    padding: 12px;
    border-radius: 10px;
    border: none;
    background: rgba(255, 255, 255, 0.07);
    color: white;
    font-size: 15px;
}

input:focus {
    outline: 2px solid #48f0ac;
}

/* --- BOTÓN --- */
.btn-login {
    width: 100%;
    padding: 14px;
    border-radius: 25px;
    border: none;
    background: #48f0ac;
    color: #0d1020;
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    transition: .3s;
    margin-top: 10px;
}

.btn-login:hover {
    background: #32d68d;
}

/* --- MENSAJE DE ERROR --- */
.error-message {
    background: rgba(255, 77, 77, 0.15);
    border: 1px solid rgba(255, 77, 77, 0.4);
    color: #ff6b6b;
    padding: 12px;
    border-radius: 8px;
    margin-top: 15px;
    font-size: 14px;
    text-align: center;
}

/* --- ANIMACIONES --- */
@keyframes shake {
    0% {
        transform: translateX(0);
    }

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

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

    100% {
        transform: translateX(0);
    }
}

/* --- RESPONSIVE --- */
@media (max-width: 900px) {
    .image-side {
        display: none;
    }

    .login-side {
        flex: 1;
        padding: 40px;
    }
}