body {
    background-color: #fff0e6;
    font-family: 'Arial', sans-serif;
    text-align: center;
    padding: 50px;
}

form {
    background-color: #ffffff;
    border: 2px solid #cc0000;
    border-radius: 10px;
    padding: 20px;
    width: 300px;
    margin: auto;
}

input {
    display: block;
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
}


button {
    background-color: #cc0000;
    color: white;
    border: none;
    padding: 10px;
    width: 100%;
    border-radius: 5px;
    font-weight: bold;
}

button:hover {
    background-color: #990000;
    cursor: pointer;
}

.error-msg {
    color: red;
    font-size: 0.9em;
    margin-top: -10px;
}

/* ----- CUADRADO DE ALERTA EN CASO DE ERRORES EN INICIO DE SESION U REGISTRO ----- */

.alerta {
    background-color: #fff3cd;
    border: 1px solid #ffeeba;
    color: #856404;
    padding: 15px 20px;
    margin: 20px auto;
    width: 320px;
    border-radius: 8px;
    font-weight: bold;
    position: relative;
    box-shadow: 0px 0px 10px rgba(255, 193, 7, 0.4);
    text-align: left;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
}

.alerta::before {
    content: "⚠️";
    font-size: 1.5rem;
    margin-right: 8px;
}

/* Animación para desvanecer */
@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; display: none; }
}


/*--------------------------*/
/* Campo contraseña */
/*-------------------------*/
.campo-contrasena {
    position: relative;
    width: 100%;
  }
  
  .campo-contrasena input {
    width: 100%;
    padding-right: 40px;
    box-sizing: border-box;
  }
  
  .toggle-password {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 22px;
    color: #555;
    cursor: pointer;
  }

/* --------------------------------------------------------------------------------- */



  /* ========================== */
/*         MODAL      */
/* ========================== */

.custom-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
  }
  
  .custom-modal {
    background-color: #fff;
    border-radius: 8px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 0 15px rgba(0,0,0,0.3);
    overflow: hidden;
    animation: fadeIn 0.3s ease-out;
  }
  
  .custom-modal-header {
    background-color: #b30000;
    color: white;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  .custom-modal-title {
    margin: 0;
    font-size: 18px;
  }
  
  .custom-modal-close {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
  }
  
  .custom-modal-body {
    padding: 20px;
    color: #333;
    font-size: 15px;
  }
  
  .custom-modal-footer {
    padding: 10px 20px 20px 20px;
    text-align: right;
  }
  
  .custom-modal-button {
    background-color: #b30000;
    color: white;
    padding: 8px 16px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
  }
  
  .custom-modal-button:hover {
    background-color: #900;
  }
  
  @keyframes fadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
  }

