body {
    background: linear-gradient(135deg, #f5f7fa, #e3eaf1, #d4dde4);
    background-image: linear-gradient(to bottom, rgba(0,0,0,0.5), rgba(0,0,0,0.2)), url('/static/img/RippleGlowBackground.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    margin: 0;
    padding: 0;
}

.logo {
    height: 35px;
    margin-left: 15px;
    margin-top: 8px;
    float: left;
    cursor: pointer;
}

.logoIn {
    height: 55px;
    margin-top: 0px;
    cursor: pointer;
}

.login-container {
    background-color: #005352;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 50px 70px;
    border-radius: 15px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
    width: 300px;
    text-align: center;
    margin-top: 50px;
    margin-left: auto;
    margin-right: auto;
}

h2 {
    color: white;
}

form {
    display: flex;
    flex-direction: column;
    align-items: center;
}

input {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    box-sizing: border-box;
    border: 1px solid #ccc;
    border-radius: 4px;
    text-align: center;
}

button {
    width: 100%;
    padding: 10px;
    background-color: #4A4A4A;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

button:hover {
    background-color: #333;
}

#captcha {
    display: inline-block;
    margin-bottom: 20px;
    position: relative;
}

#captcha img {
    vertical-align: middle;
}

.reload-captcha {
    cursor: pointer;
    position: absolute;
    right: -25px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
}

.footer {
    width: 100%;
    background-color: #005352;
    color: white;
    text-align: center;
    padding: 10px 0;
    position: fixed;
    bottom: 0;
    left: 0;
    font-family: 'Arial', sans-serif;
}

.label-hidden {
    visibility: hidden;
    height: 0;
}

.input-container {
    position: relative;
    width: 100%;
    padding-top: 15px;
}

.label {
    position: absolute;
    top: 0;
    left: 8px;
    color: black;
    background-color: white;
    padding: 5px 10px;
    border-radius: 5px;
    visibility: hidden;
    transition: visibility 0.0s;
    z-index: 2;
    font-size: 15px;
}

/* ========== MODAL LIGHTBOX GENERAL ========== */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    z-index: 100;
}

/* CUADRO DEL MODAL */
.lightbox-content {
    background-color: #ffffff;
    padding: 30px 40px;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
    text-align: center;
    max-width: 400px;
    width: 90%;
    animation: fadeInScale 0.4s ease-out;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lightbox2 {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    z-index: 999;
}

.lightbox-content2 {
    background-color: #ffffff;
    padding: 30px 40px;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
    text-align: center;
    max-width: 400px;
    width: 90%;
    animation: fadeInScale 0.4s ease-out;
    font-size: 16px;
    color: #333;
}

/* ICONO MODAL */
.icon-verify {
    width: 60px;
    margin-bottom: 15px;
    animation: fadeInScale 0.5s ease;
}

/* TÍTULO MODAL */
.verify-title {
    font-size: 22px;
    color: #005352;
    margin-bottom: 10px;
    font-weight: 600;
    font-family: 'Arial', sans-serif;
}

/* TEXTO MODAL */
.verify-text {
    font-size: 16px;
    color: #333;
    margin-bottom: 20px;
    padding: 0 10px;
    line-height: 1.6;
    font-family: 'Arial', sans-serif;
}

/* INPUT CÓDIGO */
.verify-input {
    width: 100%;
    padding: 12px 15px;
    font-size: 16px;
    border: 2px solid #00bfa5;
    border-radius: 8px;
    margin-bottom: 15px;
    outline: none;
    text-align: center;
    transition: border-color 0.3s;
}

.verify-input:focus {
    border-color: #005352;
}

/* BOTONES MODAL */
.verify-button {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    background-color: #005352;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s ease;
    margin-bottom: 10px;
}

.verify-button:hover {
    background-color: #00756e;
}

.lightbox-button,
.lightbox-button2 {
    margin-top: 10px;
    padding: 10px;
    background-color: #4A4A4A;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.lightbox-button:hover,
.lightbox-button2:hover {
    background-color: #333;
}

@keyframes fadeInScale {
    0% {
        opacity: 0;
        transform: scale(0.95) translateY(10px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* NUEVA ANIMACIÓN PROFESIONAL DE CARGA */
.loading-screen {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #005352;
    justify-content: center;
    align-items: center;
    z-index: 20;
}

.loading-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #C19D3C;
    font-family: 'Orbitron', sans-serif;
    animation: fadeIn 0.3s ease-in-out;
}

.ripple-loader {
    position: relative;
    width: 80px;
    height: 80px;
    margin: auto;
}

.ripple-loader div {
    position: absolute;
    border: 4px solid #C19D3C;
    opacity: 1;
    border-radius: 50%;
    animation: ripple 1.5s cubic-bezier(0, 0.2, 0.8, 1) infinite;
    border-color: #C19D3C transparent transparent transparent;
}

.ripple-loader div:nth-child(2) {
    animation-delay: -0.75s;
}

@keyframes ripple {
    0% {
        top: 36px;
        left: 36px;
        width: 0;
        height: 0;
        opacity: 1;
    }
    100% {
        top: 0px;
        left: 0px;
        width: 72px;
        height: 72px;
        opacity: 0;
    }
}

.loading-text {
    margin-top: 20px;
    font-size: 20px;
    font-weight: bold;
    letter-spacing: 2px;
    text-shadow: 0 0 10px #C19D3C, 0 0 20px #00e6e6;
}

/* ANIMACIÓN DE BARRAS DE PROGRESO */
.progress-animation-screen {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 83, 82, 0.5);
    justify-content: center;
    align-items: center;
    z-index: 30;
    animation: fadeIn 0.5s ease-in-out;
}

.progress-content {
    text-align: center;
    color: #ffffff;
    font-family: 'Roboto', sans-serif;
    letter-spacing: 1px;
}

.progress-bars {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin: 20px auto;
}

.bar {
    width: 8px;
    height: 40px;
    background-color: #ffab00;
    animation: pulse 1.2s infinite ease-in-out;
}

.bar:nth-child(1) { animation-delay: -1.1s; }
.bar:nth-child(2) { animation-delay: -1s; }
.bar:nth-child(3) { animation-delay: -0.9s; }
.bar:nth-child(4) { animation-delay: -0.8s; }
.bar:nth-child(5) { animation-delay: -0.7s; }

@keyframes pulse {
    0%, 100% { transform: scaleY(0.3); }
    50% { transform: scaleY(1); }
}

.progress-text {
    margin-top: 15px;
    font-size: 18px;
    font-weight: bold;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.display-flex {
    display: flex;
}

/* BOTÓN DE INICIAR SESIÓN – ESTILO RIPPLE GLOW */
.login-btn {
  width: 100%;
  height: 38px;
  font-size: 14px;
  font-weight: 600;
  font-family: 'Segoe UI', sans-serif;
  color: #ffffff;
  background: linear-gradient(to right, #009f95, #007d74);
  border: 1px solid #006e66;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 60, 60, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  transition: background-color 0.25s ease-in-out;
  margin-top: 8px;
  margin-bottom: 4px;
}

.login-btn:hover {
  background: linear-gradient(to right, #00b5ab, #008e84);
}

/* Ícono del botón iniciar sesión */
.login-icon {
  font-size: 15px;
  color: #ffffff;
  filter: drop-shadow(0 0 1px rgba(0, 0, 0, 0.2));
}


/* CONTENEDOR DEL BOTÓN CÓDIGO RÁPIDO */
.quick-login-container {
  width: 100%;
  margin-top: 0px;
}

/* BOTÓN: Usar Código Rápido */
.quick-login-btn {
  width: 100%;
  height: 38px;
  font-size: 14px;
  font-weight: 600;
  font-family: 'Segoe UI', sans-serif;
  color: #ffffff;
  background: linear-gradient(to right, #00b7a4, #008378);
  border: 1px solid #006b5f;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 60, 60, 0.2);
  margin-top: 0px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: background-color 0.25s ease-in-out;
}

.quick-login-btn:hover {
  background: linear-gradient(to right, #00d4c0, #00a396); /* Hover más claro */
}

.quick-icon {
  font-size: 15px;
  color: #ffeb3b;
  filter: drop-shadow(0 0 1px rgba(255, 255, 255, 0.4));
}


/* ==== MODAL Código Rápido – Estilo Ripple Glow ==== */

.lightbox-content {
  background: linear-gradient(145deg, #ffffff, #f1fdfc);
  border: 1px solid #cfeae7;
  padding: 28px 30px;
  border-radius: 14px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.15);
  text-align: center;
  width: 95%;
  max-width: 360px;
  font-family: 'Segoe UI', sans-serif;
}

.lightbox-content h3 {
  font-size: 20px;
  color: #005352;
  margin-bottom: 6px;
}

.lightbox-content p {
  font-size: 14px;
  color: #444;
  margin-bottom: 20px;
}

/* Campo de entrada de código */
#quickCodeInput {
  width: 100%;
  padding: 10px 15px;
  font-size: 20px;
  border: 2px solid #00b7a0;
  border-radius: 8px;
  text-align: center;
  letter-spacing: 6px;
  outline: none;
  background-color: #f9fdfd;
  transition: border-color 0.3s;
}

#quickCodeInput:focus {
  border-color: #005352;
}

/* Botón de enviar código */
#btnSubmitQuickCode {
  width: 100%;
  padding: 10px;
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
  background: linear-gradient(to right, #009f95, #007d74);
  border: 1px solid #006e66;
  border-radius: 8px;
  cursor: pointer;
  margin-top: 15px;
  transition: background-color 0.3s ease;
}

#btnSubmitQuickCode:hover {
  background: linear-gradient(to right, #00b5ab, #008e84);
}

/* Botón cancelar */
#btnCloseQuickCodeModal {
  margin-top: 10px;
  padding: 10px;
  font-size: 13px;
  background-color: #e0e0e0;
  color: #333;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.25s ease;
}

#btnCloseQuickCodeModal:hover {
  background-color: #cfcfcf;
}
