/* Importar fuente moderna */
body {
    font-family: 'Poppins', sans-serif;
    min-height: 100vh;
    /* Fondo con overlay oscuro para que resalte el cuadro */
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url("../img/fondo.webp");
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 20px;
}

/* Contenedor principal con animación de entrada */
.login-wrapper {
    background: #ffffff;
    width: 100%;
    max-width: 950px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2), 0 5px 15px rgba(0,0,0,0.1);
    min-height: 600px;
    animation: fadeInUp 0.8s ease-out;
}

/* --- COLUMNA IZQUIERDA (Marca / Glassmorphism) --- */
.login-brand {
    position: relative;
    /* Truco: Usamos la misma imagen pero desenfocada o un color sólido semitransparente */
    background: linear-gradient(135deg, #0d6efd 0%, #0043a8 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 3rem;
    position: relative;
    overflow: hidden;
}

/* Efecto decorativo de círculos de fondo */
.login-brand::before {
    content: '';
    position: absolute;
    top: -50px;
    left: -50px;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}
.login-brand::after {
    content: '';
    position: absolute;
    bottom: -50px;
    right: -50px;
    width: 150px;
    height: 150px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.brand-content {
    z-index: 2;
}

/* En assets/css/login.css */

.brand-logo {
    width: 260px;       /* ANTES: 100px - AHORA: Más grande */
    max-width: 80%;     /* Para que no se salga en pantallas raras */
    height: auto;
    filter: drop-shadow(0 10px 15px rgba(0,0,0,0.3)); /* Sombra más fuerte para resaltar */
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Efecto rebote suave */
    margin-bottom: 1.5rem;
}

/* Opcional: Si quieres que el título SoftGarage sea más grande también */
.login-brand h2 {
    font-size: 2.5rem; /* Letra más grande */
    letter-spacing: 1px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.login-brand:hover .brand-logo {
    transform: scale(1.05) rotate(-5deg);
}

.brand-footer {
    position: absolute;
    bottom: 20px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.8rem;
}

/* --- COLUMNA DERECHA (Formulario) --- */
.login-form {
    padding: 4rem 3.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #ffffff;
}

.form-header h3 {
    font-weight: 700;
    letter-spacing: -0.5px;
    color: #1a1a1a;
}

/* Inputs Flotantes Estilizados */
.form-floating > .form-control {
    border: 2px solid #f1f1f1;
    border-radius: 10px;
    height: calc(3.5rem + 2px);
    line-height: 1.25;
}

.form-floating > .form-control:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.1);
}

.form-floating > label {
    padding-left: 1rem;
    color: #888;
}

/* Checkbox personalizado */
.form-check-input:checked {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

/* Botón Principal */
.btn-login {
    background: linear-gradient(to right, #0d6efd, #0056b3);
    border: none;
    border-radius: 10px;
    padding: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(13, 110, 253, 0.3);
}

.btn-login:hover {
    background: linear-gradient(to right, #0056b3, #004494);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(13, 110, 253, 0.4);
}

.btn-login:active {
    transform: translateY(0);
}

/* Enlaces */
a {
    color: #0d6efd;
    transition: color 0.2s;
}
a:hover {
    color: #004494;
}

/* Animación de Entrada */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Ajustes Responsive */
@media (max-width: 768px) {
    .login-wrapper {
        flex-direction: column;
        height: auto;
    }
    .login-form {
        padding: 3rem 2rem;
    }
}
