﻿/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Estilos generales */
html, body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* Contenedor principal */
.login-container {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.15);
    text-align: center;
    width: 90%;
    margin-top: 50px;
    transition: all 0.3s ease;
}

/* Contenedor del logo */
.logo-container {
    margin-bottom: 10px;
}

.logo {
    max-width: 200px;
    height: auto;
}

/* Título */
.title {
    font-size: 13px;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
}

/* Formulario */
.form-container {
    display: flex;
    flex-direction: column;
    gap: 8px; /* Reducido para acercar los campos */
    text-align: left;
}

/* Etiquetas */
.label {
    font-weight: 500;
    font-size: 14px;
    color: #555;
}

/* Inputs */
.form-control {
    width: 100%;
    padding: 10px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    background: #f2f2f2;
    outline: none;
    transition: all 0.3s ease;
}

.form-control:focus {
    background: #e6e6e6;
    box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.1);
}

/* Botón */
.button-container {
    margin-top: 10px;
}

/* Botón */
.btn-login {
    width: 100%;
    background: #808080; /* Gris oscuro */
    color: white;
    padding: 2px;
    border: none;
    border-radius: 8px;
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-login:hover {
    background: #666666; /* Gris más oscuro al pasar el mouse */
    transform: scale(1.03);
}

/* FOOTER SIEMPRE AL FINAL */
.footer {
    text-align: center;
    font-size: 12px;
    color: #666;
    margin-top: auto;
    padding: 10px;
}

/* Ajusta la celda del mensaje de error */
td[id$="_ETC"] {
    white-space: normal !important; /* Permite saltos de línea */
    word-wrap: break-word; /* Asegura que el texto se ajuste al contenedor */
    max-width: 100%; /* Evita que el texto haga crecer el cuadro */
    display: block; /* Hace que el mensaje se comporte como un bloque separado */
}

/* RESPONSIVE DESIGN */
@media (min-width: 768px) {
    .login-container {
        max-width: 420px;
        margin-top: 50px;
    }

    .logo {
        max-width: 220px; /* Aumentado en pantallas más grandes */
    }

    .title {
        font-size: 14px;
    }

    .form-container {
        gap: 10px; /* Un poco más de espacio en pantallas más grandes */
    }

    .form-control {
        font-size: 16px;
        padding: 12px;
    }

    .btn-login {
        font-size: 12px;
        padding: 2px;
    }
}

@media (min-width: 1024px) {
    .login-container {
        width: 110%;
        margin-top: 40px;
    }

    .logo {
        max-width: 240px; /* Más grande */
    }

    .title {
        font-size: 15px;
    }

    .form-container {
        gap: 1px; /* Más espacio en pantallas grandes */
    }

    .form-control {
        font-size: 18px;
    }

    .btn-login {
        font-size: 12px;
        padding: 2px;
    }
}
