﻿body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    background-color: #7bb827 /*#58ab01*/;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.login-container {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0,0,0,0.2);
    overflow: hidden;
    width: 800px;
    max-width: 100%;
    display: flex;
    flex-wrap: wrap;
}

.left-panel {
    background-color: #7bb827 /*#58ab01*/;
    color: white;
    padding: 40px 30px;
    flex: 1 1 50%;
    display: flex;
    align-items: center;
    position: relative;
}

    .left-panel h1 {
        font-size: 2.2em;
        margin: 0;
    }

    .left-panel .fecha-disponible {
        position: absolute;
        bottom: 10px;
        left: 10px;
        color: white;
        font-size: 0.9em;
    }

.right-panel {
    padding: 40px 30px;
    background-color: white;
    flex: 1 1 50%;
}

    .right-panel h2 {
        text-align: center;
        margin-bottom: 25px;
    }

.form-control {
    margin-bottom: 15px;
}

.btn-login {
    width: 100%;
    padding: 12px;
    background-color: #58ab01;
    border: none;
    color: white;
    font-weight: bold;
    border-radius: 5px;
    font-size: 1.2em;
}

.logo {
    display: block;
    margin: 0 auto 20px auto;
    max-width: 250px; /* Aumentado desde 150px */
    height: auto;
}


@media (max-width: 600px) {
    .left-panel .fecha-disponible {
        position: static; /* Ya no absoluto, queda debajo del contenido */
        display: block;
        margin-top: 10px;
        text-align: center;
        font-size: 0.9em; /* Un poco más pequeño */
    }
}

@media (max-width: 768px) {
    body {
        align-items: flex-start;
        background-color: white;
    }

    .login-container {
        flex-direction: column;
        flex-wrap: wrap;
        width: 100%;
        border-radius: 0;
        box-shadow: none;
        min-height: 100vh;
    }

    .left-panel {
        flex: 0 0 auto; /* no crecer, no reducir, usar solo el alto necesario */
        padding: 10px 15px;
        text-align: center;
    }

        .left-panel h1 {
            font-size: 1.5em;
            margin: 0 !important;
            padding: 10px 15px !important; /* Ajustable */
        }

    .right-panel {
        flex: 1 1 100%;
        padding: 20px 15px;
        text-align: center;
    }

        .right-panel input[type="text"],
        .right-panel input[type="password"] {
            width: 95%;
            margin: 0 auto 15px auto;
            display: block;
            font-size: 1.1em;
        }

    .btn-login {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        padding: 16px;
        background-color: #58ab01;
        color: white;
        border: none;
        border-radius: 0;
        font-size: 1.2em;
        font-weight: bold;
        z-index: 1000;
        box-shadow: 0 -2px 6px rgba(0,0,0,0.15);
    }
}
