@import url('https://fonts.googleapis.com/css2?family=Asap:ital,wght@0,100..900;1,100..900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
    font-family: "Asap", sans-serif;
    background-color: #f0f0f0;
}

header {
    width: 100%;
    background: linear-gradient(90deg, rgba(66,72,146,1) 0%, rgba(124,41,242,1) 100%);
    position: sticky;
    top: 0;
    z-index: 10;
}


.wrapper {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-grow: 1;
    padding: 30px 15px;
}

/* --- Estilos para el diseño de columnas --- */
.grid-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    overflow: hidden;
    width: 100%;
    min-height: 60vh;
    max-width: 1000px;
}

.image-column {
    background-image: url('/static/img/login.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.login-column {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: white;
    padding: 20px;
}

.login-container {
    width: 100%;
    max-width: 400px;

    background-color: #ffffff;
    margin: 0;
    padding-top: 20px;
}

.login-container h3{
    text-align: left!important;}
/* --- Fin Estilos para el diseño de columnas --- */


.header-wrapper {
    max-width: 966px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    padding-left: 15px;
    padding-right: 15px;
}

.logo img {
    width: 200px;
}

.login-container h3{
    text-align: center;
    font-size: 1.8em;
    margin-bottom: 20px; 
}

.separator {
    border: 0;
    height: 1px;
    background-color: #ddd;
    margin: 25px 0;
}

.login-tecnicos {
    display: flex;
    flex-direction: column;
}

.terms-paragraph {
    color: #444; 
    font-size: 1.1em;
    line-height: 1.4em;
    margin-bottom: 10px;
    text-align: justify;
}


.acceptance-box {
    display: flex;
    align-items: flex-start; 
    margin-bottom: 20px;
    padding: 0 5px; 
    margin-top: 30px;
}

.login-form input,
.login-tecnicos input {
    margin-bottom: 20px;
    padding: 12px 16px;
    border: 1px solid #bbb;
    border-radius: 8px;
    font-size: 1.1em;
    background: #f7f7fb;
    box-shadow: 0 2px 8px rgba(80, 84, 222, 0.08);
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
}

.login-form input:focus,
.login-tecnicos input:focus {
    border-color: #5054DE;
    box-shadow: 0 2px 12px rgba(80, 84, 222, 0.18);
    background: #fff;
}
.acceptance-box input[type="checkbox"] {
    margin-right: 10px;
    margin-top: 5px; 
    min-width: 18px; 
    min-height: 18px;
}



.login-tecnicos p {
    text-align: left;
    padding-left: 2px;
    color: #74778a;
    font-size: 1.1em; 
    line-height: 1.4em;
    margin: 0; 
}


.login-container h3{
    text-align: center;
    font-size: 1.8em;
}

.login-tecnicos {
    display: flex;
    flex-direction: column;
}


.btn {
    cursor: pointer;
    border: none;
    font-family: "Asap", sans-serif; /* Vuelvo al font principal */
    font-size: 1.3em; /* Ajusto el tamaño de la fuente */
    font-weight: 300;
    color: white; 
    padding: 10px 30px;
    transition: all 0.3s ease;
    border-radius: 50px;
    background: #5054DE;
    position: relative; 
    overflow: hidden; 
    box-shadow: 4px 4px 8px rgba(0, 0, 0, 0.3),
                -4px -4px 8px rgba(255, 255, 255, 0.1);
    margin: 0 auto;
    text-align: center;
    z-index: 1; 
    width: 100%; /* Asegura que ocupe todo el ancho */
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    color: white!important;
    background-color: rgb(84, 70, 185); /* Un color que combine con el hover anterior */
    border-radius: 50px; 
    transform: scaleX(1); 
    transform-origin: right; 
    transition: transform 0.3s ease-out; 
    z-index: -1; 
}

.btn:hover {
    color: white;
    box-shadow: inset 3px 3px 7px rgba(0, 0, 0, 0.4),
                inset -3px -3px 7px rgba(255, 255, 255, 0.05);
    scale: 1.0; 
}

.btn:hover::before {
    transform: scaleX(0); 
}

footer {
    background-color: #5446B9;
    color: white;
    display: flex;
    justify-content: space-between;
    padding: 30px;
    width: 100%;
}

footer > div {
    flex: 1;
    padding: 0 15px;
    text-align: center;
}

.btn2 {
    cursor: pointer;
    border: none;
    font-family: "Asap", sans-serif; /* Vuelvo al font principal */
    font-size: 1.3em; /* Ajusto el tamaño de la fuente */
    font-weight: 300;
    color: #5054DE; 
    padding: 10px 30px;
    transition: all 0.3s ease;
    border-radius: 50px;
    background: rgb(219, 216, 244);
    position: relative; 
    overflow: hidden; 
    box-shadow: 4px 4px 8px rgba(0, 0, 0, 0.3),
                -4px -4px 8px rgba(255, 255, 255, 0.1);
    margin: 0 auto;
    text-align: center;
    z-index: 1; 
    width: 100%; /* Asegura que ocupe todo el ancho */
    margin-top: 20px;
}

.btn2::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    color: rgb(84, 70, 185)!important;
    background-color: rgb(219, 216, 244); 
    border-radius: 50px; 
    transform: scaleX(1); 
    transform-origin: right; 
    transition: transform 0.3s ease-out; 
    z-index: -1; 
}

.btn2:hover{
    color: rgb(84, 70, 185);
    box-shadow: inset 3px 3px 7px rgba(0, 0, 0, 0.4),
                inset -3px -3px 7px rgba(255, 255, 255, 0.05);
    scale: 1.0; 
}

.btn:hover::before,
.btn2:hover::before {
    transform: scaleX(0); 
}

/* --- Media Query para Responsividad --- */
@media (max-width: 768px) {
    .grid-container {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .image-column {
        display: none;
    }

    .login-column {
        padding: 15px;
    }
    .header-wrapper {
        justify-content: center; /* Centra los elementos */
    }
    /* Ocultamos el elemento <nav> ya que está vacío y ocupa espacio */
    .header-wrapper nav {
        display: none;
    }
    .wrapper {
        padding: 15px;
    }

    footer {
        flex-direction: column;
    }

    footer > div {
        margin-bottom: 15px;
    }
}

/* popup  */
/* Overlay */
#flash-overlay-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9998;
}

/* Modal Dialog */
.modal-dialog {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 9999;
  max-width: 600px;
  width: 90%;
  margin: 0;
}

/* Modal Content */
.modal-content {
  background: white;
  border: none;
  border-radius: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  border-top: 3px solid #333;
  padding: 0;
}

/* Modal Header */
.modal-header {
  background: white;
  border-bottom: 1px solid #e0e0e0;
  padding: 20px;
  display: flex;
  align-items: center;
}

.modal-title {
  font-size: 0.95rem;
  font-weight: 500;
  color: #333;
  margin: 0;
  letter-spacing: 0.5px;
}

.modal-header .close {
  background: none;
  border: none;
  font-size: 28px;
  color: #ccc;
  cursor: pointer;
  padding: 0;
  width: auto;
  height: auto;
  opacity: 1;
  line-height: 1;
}

.modal-header .close:hover {
  color: #999;
}

/* Modal Body */
.modal-body {
  padding: 20px;
  color: #666;
  line-height: 1.6;
  font-size: 0.9rem;
  border-bottom: 1px solid #e0e0e0;
}

.modal-body p {
  margin: 0;
}

/* Iconos de alerta */
.fa-warning {
  color: #d9534f;
  margin-right: 5px;
}

/* Modal Footer */
.modal-footer {
  border-top: none;
  padding: 15px 20px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  background: white;
}

.modal-footer::before {
  content: none;
}

.modal-footer::after {
  content: none;
}

/* Base de alerta */
.alert {
  position: relative;
  padding: 0.75rem 1.25rem;
  margin-bottom: 1rem;
  border: 1px solid transparent;
  border-radius: 0.25rem;
}

/* Alert Success - Verde */
.alert-success {
  color: #155724;
  background-color: #d4edda;
  border-color: #c3e6cb;
}

.alert-success hr {
  border-top-color: #b1dfbb;
}

.alert-success .alert-link {
  color: #0b2e13;
}

/* Alert Danger - Rojo */
.alert-danger {
  color: #721c24;
  background-color: #f8d7da;
  border-color: #f5c6cb;
}

.alert-danger hr {
  border-top-color: #f1b0b7;
}

.alert-danger .alert-link {
  color: #491217;
}

/* Alert Warning - Amarillo */
.alert-warning {
  color: #856404;
  background-color: #fff3cd;
  border-color: #ffeaa7;
}

.alert-warning hr {
  border-top-color: #ffe69c;
}

.alert-warning .alert-link {
  color: #533f03;
}

/* Alert Info - Azul */
.alert-info {
  color: #0c5460;
  background-color: #d1ecf1;
  border-color: #bee5eb;
}

.alert-info hr {
  border-top-color: #abdde5;
}

.alert-info .alert-link {
  color: #062c33;
}

/* Alert Primary - Azul Oscuro */
.alert-primary {
  color: #004085;
  background-color: #cfe2ff;
  border-color: #b6d4fe;
}

.alert-primary hr {
  border-top-color: #a7cfff;
}

.alert-primary .alert-link {
  color: #002052;
}

/* Alert Secondary - Gris */
.alert-secondary {
  color: #383d41;
  background-color: #e2e3e5;
  border-color: #d3d6d8;
}

.alert-secondary hr {
  border-top-color: #c8cbcf;
}

.alert-secondary .alert-link {
  color: #202326;
}

/* Alert Light - Blanco/Gris claro */
.alert-light {
  color: #818182;
  background-color: #fefefe;
  border-color: #fdfdfe;
}

.alert-light hr {
  border-top-color: #ececf6;
}

.alert-light .alert-link {
  color: #595a5c;
}

/* Alert Dark - Oscuro */
.alert-dark {
  color: #1c1e21;
  background-color: #d6d8db;
  border-color: #bcb