﻿html, body {
    margin: 0;
    padding: 0;
    height: 100%;
}

.login-container {
    display: flex;
    flex-direction: row;
    height: 100vh;
}

.login-img {
    flex: 1;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.login-form {
    width: 40%;
    max-width: 500px;
    background-color: #f8f9fa;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

    .login-form img {
        width: 220px;
        margin-bottom: 1rem;
    }

    .login-form h5 {
        margin-bottom: 1.5rem;
        font-weight: bold;
        font-size: 1.4rem;
        text-align: center;
    }

.form-box {
    width: 100%;
    max-width: 400px;
}

.form-control {
    height: 50px;
    font-size: 1rem;
}

.input-group-text {
    height: 50px;
    font-size: 1.2rem;
}

.btn-login {
    background-color: #4b7c3b;
    color: #ffffff;
    border: none;
    height: 50px;
    font-size: 1rem;
    font-weight: 600;
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease, transform 0.2s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}

    .btn-login .icono-btn {
        transition: transform 0.3s ease;
    }

    .btn-login:hover {
        background-color: #3d6c2e;
        color: antiquewhite;
    }

        .btn-login:hover .icono-btn {
            transform: translateX(75px);
        }

    .btn-login:active {
        transform: scale(0.98);
    }

/* 🔁 RESPONSIVE: diseño móvil */
@media (max-width: 768px) {
    .login-container {
        flex-direction: column;
    }

    .login-img {
        width: 100%;
        height: 220px;
    }

    .login-form {
        width: 100%;
        padding: 2rem 1rem;
    }

    .form-box {
        width: 100%;
    }

    .login-form h5 {
        font-size: 1.2rem;
    }

    .btn-login {
        font-size: 0.95rem;
    }

    .input-group-text {
        font-size: 1rem;
    }
}
