/*style-lrv.css*/
body {
    margin: 0;
    font-family: "Segoe UI", Arial, sans-serif;
    background-color: #f2f2f2;
}
/* ======== HEADER ======== */
.header {
  background: #08163b;
  color: white;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo img {
  width: 100px;
  height: auto;
  background: white;
  border: 4px solid #efefef;
  border-radius: 10px;
}


/* ======== Menú principal ======== */
.menu {
  display: flex;
  gap: 20px;
}

.menu a {
  color: white;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s;
}

.menu a:hover {
  color: #00c3ff;
}

.menu-btn {
  display: none;
  font-size: 28px;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
}
.btn {
  display: inline-block;
  background-color: #0a1a44;
  color: white;
  padding: 10px 20px;
  text-decoration: none;
  border-radius: 6px;
  transition: background-color 0.3s;
}

.btn:hover {
  background-color: #142b70;
}
/* Fondo centrado */
.container {
    min-height: calc(100vh - 100px);
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Caja del login */
.box {
    background: white;
    padding: 30px;
    width: 330px;
    border-radius: 12px;
    box-shadow: 0 0 12px rgba(0,0,0,0.25);
    text-align: center;
}

/* Título */
.box h2 {
    color: #0a1a44;
    margin-bottom: 20px;
}

/* Inputs */
.box input {
    width: 100%;          /* Ocupa todo el ancho disponible */
    padding: 10px;
    padding-right: 40px;  /* Para que no tape el botón de ojo */
    margin-top: 6px;
    margin-bottom: 15px;
    border: 2px solid #0a1a44;
    border-radius: 6px;
    font-size: 1rem;
    box-sizing: border-box; /* Muy importante para que padding no rompa el ancho */
}

/* Botón */
.btn {
    width: 100%;
    background-color: #0a1a44;
    color: white;
    padding: 10px 0;
    border-radius: 6px;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: background 0.3s ease;
}

.btn:hover {
    background-color: #142b70;
}

.error { background: #ffdddd; color: #a30000; padding: 8px; border-radius: 6px; margin-bottom: 15px; font-size: 0.9rem; }

.msg { padding:10px; margin-bottom:10px; border-radius:6px; }
.msg.error { background:#ffe0e0; color:#900; }
.success-msg {
    background: #e6f7e6;
    border-left: 4px solid #28a745;
    color: #1b5e20;
    padding: 15px;
    border-radius: 8px;
    font-size: 1rem;
    margin-bottom: 15px;
    animation: fadeIn 0.6s ease;
}
.error-msg {
    background: #ffe0e0;
    border-left: 4px solid #c00;
    color: #900;
    padding: 15px;
    border-radius: 8px;
    font-size: 1rem;
    margin-bottom: 15px;
    animation: fadeIn 0.6s ease;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}
@media (max-width: 768px) {
  .menu-btn {
    display: block;
    position: relative;
    z-index: 1100;
  }

  .menu {
    position: fixed;
    top: 0;
    right: -300px;
    width: 250px;
    height: 100vh;
    background: #0a1a44;
    flex-direction: column;
    align-items: flex-start;
    padding: 80px 20px;
    gap: 25px;
    transition: right 0.4s ease;
    box-shadow: -4px 0 10px rgba(0, 0, 0, 0.3);
    z-index: 1000;
  }

  .menu.show {
    right: -80px;
  } 
  .overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 900;
  }

  .overlay.active {
    opacity: 1;
    pointer-events: all;
  }

  .menu a {
    width: 100%;
    font-size: 1.1rem;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    padding: 10px 0;
  }
  .box {
    padding: 20px;
    max-width: 300px;
  }
}
.password-wrapper {
    position: relative;
    width: 100%;
    margin-bottom: 1rem;
}

.password-wrapper input {
    width: 100%;
    padding-right: 40px;
    box-sizing: border-box;
}

.toggle-password {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent !important;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    padding: 0;
    line-height: 1;
}


