body {
    margin: 0;
    padding: 0;
    font-family: 'Source Sans Pro', sans-serif;
    height: 100vh;
    overflow: hidden;
}

.login-container {
    display: flex;
    border-radius: 0 !important;
    height: 100vh;
    width: 100vw;
    box-shadow: none;
    max-width: none;
    margin: 0;
    border-radius: 0;
    overflow: hidden;
}

.login-left {
    flex: 1;
    background: #E2231A;
    background-image: url('../images/ondas.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    position: relative;
}

/* Estilo específico para reset password - color de fondo diferente */
.reset-password-left {
    background: #F5F1E9;
    background-image: url('../images/ondas.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: black;
}

.reset-password-left::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(245, 241, 233, 0.7);
    mix-blend-mode: multiply;
}

.login-left::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.login-left-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

/* Estilos para la imagen del logo */
.logo-image {
    max-width: 300px;
    width: 100%;
    height: auto;
    filter: brightness(1.1);
}

.copyright {
    position: absolute;
    bottom: 30px;
    left: 30px;
    font-size: 0.85rem;
    opacity: 0.8;
    z-index: 2;
}

.login-right {
    flex: 1;
    background: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 4rem;
}

.login-form-container {
    width: 100%;
    max-width: 480px;
}

.welcome-title {
    font-size: 2.5rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 0.75rem;
    text-align: center;
}

.welcome-subtitle {
    color: #666;
    margin-bottom: 0.5rem;
    text-align: center;
    font-size: 1rem;
}

.welcome-subtitle .emoji {
    color: #ffc107;
}

.login-instruction {
    color: #888;
    margin-bottom: 3rem;
    text-align: center;
    font-size: 1rem;
}

.form-group {
    margin-bottom: 2rem;
}

.form-label {
    display: block;
    margin-bottom: 0.75rem;
    color: #333;
    font-weight: 500;
    font-size: 1rem;
}

.form-control {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1.1rem;
    transition: border-color 0.3s;
    box-sizing: border-box;
    min-height: 50px;
}

.form-control:focus {
    outline: none;
    border-color: #E2231A;
    box-shadow: 0 0 0 3px rgba(226, 35, 26, 0.1);
}

.form-control.is-invalid {
    border-color: #dc3545;
}

.invalid-feedback {
    color: #dc3545;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.stay-logged {
    display: flex;
    align-items: center;
    margin-bottom: 2.5rem;
    font-size: 1rem;
    color: #666;
}

.stay-logged input {
    margin-right: 0.75rem;
    transform: scale(1.2);
}

.btn-login {
    width: 100%;
    padding: 1rem;
    background: #E2231A;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-bottom: 2rem;
    min-height: 50px;
}

.btn-login:hover {
    background: #c41e17;
}

.forgot-password {
    text-align: center;
}

.forgot-password a {
    color: #666;
    text-decoration: none;
    font-size: 1rem;
}

.forgot-password a:hover {
    color: #E2231A;
    text-decoration: underline;
}

.alert {
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    border: 1px solid transparent;
    border-radius: 8px;
}

.alert-danger {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}
.alert-success {
    color: #155724;
    background-color: #d4edda;
    border-color: #c3e6cb;
    padding: 1rem 1.25rem;
    margin-bottom: 2rem;
    border: 1px solid transparent;
    border-radius: 8px;
}

.alert-success strong {
    font-weight: 600;
}

/* Estilos para el panel izquierdo con texto */
.brand-title {
    font-size: 4rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 0.5rem;
    font-family: 'Source Sans Pro', sans-serif;
}

.brand-subtitle {
    font-size: 1.2rem;
    color: #666;
    font-style: italic;
    margin-bottom: 0;
}

/* Estilos para los mensajes de reset */
.reset-message {
    color: #666;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    text-align: center;
}

.reset-message.secondary {
    font-size: 0.9rem;
    color: #888;
    margin-bottom: 2.5rem;
}

/* Botón Home */
.back-to-login {
    text-align: center;
}

.home-button {
    display: inline-block;
    padding: 0.75rem 2rem;
    background: #FFFFFF;
    color: #666;
    text-decoration: none;
    border-radius: 6px;
    border: 1.5px solid #F0E7D5;
    border-radius: 8px;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.home-button:hover {
    background: #e9ecef;
    color: #495057;
    text-decoration: none;
}

.password-requirements {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 1rem;
    margin-bottom: 2rem;
}

.password-requirements ul {
    margin: 0;
    padding-left: 1.2rem;
    font-size: 0.85rem;
    color: #666;
    line-height: 1.4;
}

.password-requirements li {
    margin-bottom: 0.3rem;
}

.form-text {
    font-size: 0.85rem;
    color: #6c757d;
}

@media (max-width: 768px) {
    .login-container {
        flex-direction: column;
        height: auto;
        min-height: 100vh;
        padding: 0;
    }

    body {
        background: #f5f5f5;
        font-family: 'Source Sans Pro', sans-serif;
        display: flex;
        justify-content: center;
        align-items: center;
        min-height: 100vh;
    }

    .login-container {
        flex-direction: column;
        width: 100%;
        max-width: 420px;
        background: #fff;
        border-radius: 12px;
        overflow: hidden;
        box-shadow: 0 4px 15px rgba(0,0,0,0.1);
        height: auto;
        margin: 0 auto;
    }

    .login-left {
        width: 100%;
        min-height: 75px;
        max-height: 75px;
        background-color: #E2231A;
        background-image:
            linear-gradient(rgba(0,0,0,0.10), rgba(0,0,0,0.10)),
            url('../images/ondas.png');
        background-size: 230% 170%;
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
        overflow: hidden;
        padding: 8px 0;
        border-top-left-radius: 0;
        border-top-right-radius: 0;
        margin: 0;
        height: 100vh;
        flex-shrink: 0;
        }

    .reset-password-left {
        content: "";
        position: absolute;
        inset: 0;
        background-color: #F5F1E9;
        background-image: url('../images/ondas.png');
        z-index: 1;
        }

    .login-left .logo-image {
        width: 130px;
        height: auto;
        object-fit: contain;
        position: relative;
        z-index: 3;
        }

    .copyright {
        display: none;
    }

    .login-right {
        background: #fff;
        padding: 2rem 1.5rem 2.5rem;
        text-align: center;
        margin-top: 0;
        justify-content: flex-start;
    }

    .welcome-title {
        font-size: 1.6rem;
        font-weight: 700;
        color: #111;
        margin-bottom: 0.4rem;
    }

    .welcome-subtitle {
        font-size: 1rem;
        color: #666;
        margin-bottom: 0.2rem;
    }

    .login-instruction {
        font-size: 0.9rem;
        color: #888;
        margin-bottom: 1.5rem;
    }

    .form-group {
        text-align: left;
        margin-bottom: 1rem;
    }

    .form-label {
        display: block;
        font-weight: 600;
        font-size: 0.9rem;
        color: #333;
        margin-bottom: 0.4rem;
    }

    .form-control {
        width: 100%;
        padding: 10px 12px;
        border: 1px solid #ddd;
        border-radius: 6px;
        font-size: 0.95rem;
        transition: border-color 0.3s ease;
    }

    .form-control:focus {
        outline: none;
        border-color: #E2231A;
        box-shadow: 0 0 0 2px rgba(226, 35, 26, 0.15);
    }

    .stay-logged {
        display: flex;
        align-items: center;
        gap: 8px;
        margin: 10px 0 18px;
        font-size: 0.9rem;
        color: #444;
    }

    .btn-login {
        width: 55%;
        background: #E2231A;
        border: none;
        color: #fff;
        padding: 10px;
        border-radius: 6px;
        font-weight: 600;
        font-size: 1rem;
        transition: background 0.3s ease;
    }

    .btn-login:hover {
        background: #b81d16;
    }

    .forgot-password {
        margin-top: 1rem;
    }

    .forgot-password a {
        color: #E2231A;
        text-decoration: none;
        font-weight: 500;
        font-size: 0.9rem;
    }

    .forgot-password a:hover {
        text-decoration: underline;
    }

    .emoji {
        font-size: 1.2rem;
    }
}
