/* Estilos extraídos de estilos.css */
html {
  height: 100vh;
  height: 100dvh;
}

body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  background-color: #f0f0f0;
  /* background-image: url(imagenes/logo1.png);
    background-size: 70px; */
}

header {
  background-color: #0f51d5;
  width: 100%;
  text-align: center;
  padding: 20px;
  color: white;
  margin-bottom: 10px;
}

h1 {
  text-shadow: rgb(139, 138, 138) 3px 3px 5px;
}

main {
  width: 90%; /* Ajuste para que el contenido no quede tan pegado a los bordes en pantallas pequeñas */
  max-width: 600px; /* Limita el ancho máximo en pantallas grandes */
  background-color: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  text-align: center;
}

h1 {
  margin: 0;
}

.input-disabled {
  max-width: 50px;
  text-align: center;
}

.asterisco {
  color: rgb(239, 51, 51);
  font-weight: bold;
}

select,
input[type="text"],
input[type="email"],
textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 15px;
}
.btn-select-turno {
  margin-left: 10px;
}

.modal-body {
  text-align: center;
}

.modal-header {
  background-color: rgb(15, 81, 213);
  color: aliceblue;
}

.logo img {
  width: 100%;
  max-width: 300px; /* Tamaño máximo en pantallas pequeñas */
  height: auto; /* Mantener la proporción de la imagen */
}

.modal-header {
  border-top-left-radius: 15px;
  border-top-right-radius: 15px;
  padding: 20px;
}

.modal-body {
  padding: 25px;
  font-size: 1.05rem;
}

/* Estilos para calendario de turno castigo */
/* Estilo para fechas bloqueadas por castigo */
.ui-datepicker td.castigo-bloqueado a {
  background-color: #ffcccc !important;
  color: #cc0000 !important;
  cursor: not-allowed !important;
  text-decoration: line-through !important;
  opacity: 0.6;
}

.ui-datepicker td.castigo-bloqueado:hover a {
  background-color: #ff9999 !important;
}

/*  Estilos para el botón de Ir Al Mi panel en reserva de turno */
/* ========================================
 /* ========================================
   BOTÓN VOLVER A MI PANEL
   ======================================== */

.header-buttons {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  margin-top: 10px;
}

.btn-volver-panel i {
  font-size: 1.2rem;
}

.familiar-selector-item {
  transition: all 0.3s ease;
}

.familiar-selector-item:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

#mensaje-confirmacion p {
  margin-bottom: 15px;
}

*/ #mensaje-confirmacion li {
  margin-bottom: 15px;
  padding: 10px;
  background-color: #f2f2f4;
  border-radius: 5px;
}

/* Estilos para el panel de Mi turno Actual */
/* Asegurar que las tarjetas tengan la misma altura */
.card-turno.h-100 {
  height: 100%;
}

@media (max-width: 768px) {
  header {
    padding: 15px;
  }
  main {
    width: 95%; /* Aumentar el ancho para pantallas más pequeñas */
    padding: 15px; /* Reducir el padding */
  }
  select,
  input[type="text"],
  input[type="email"],
  textarea {
    font-size: 14px; /* Reducir el tamaño de fuente para pantallas pequeñas */
  }
  .logo img {
    max-width: 250px; /* Tamaño máximo en pantallas medianas */
  }
}

@media (max-width: 480px) {
  header {
    padding: 10px;
  }
  main {
    width: 100%; /* Ancho completo para teléfonos pequeños */
    padding: 10px; /* Reducir el padding aún más */
  }
  .login-container {
    margin: 15px auto 20px;
  }
  select,
  input[type="text"],
  input[type="email"],
  textarea {
    font-size: 17px; /* Reducir aún más el tamaño de fuente */
  }
  .logo img {
    max-width: 200px; /* Tamaño máximo en pantallas pequeñas */
  }
}

@media (max-width: 480px) {
  .login-container {
    margin: 20px auto !important;
  }
}

@media (max-width: 768px) {
  .header-buttons {
    gap: 12px;
    margin-top: 8px;
  }
  header h1 {
    font-size: 1.5rem;
    margin-bottom: 10px;
  }
}

@media (max-width: 480px) {
  .btn-volver-panel i {
    font-size: 1rem;
  }
  .header-buttons {
    gap: 10px;
  }
}

/* Estilos internos originales */

header {
  background-color: #0f51d5;
  color: white;
  padding: 20px;
  text-align: center;
}
.login-container {
  width: 90%;
  max-width: 400px;
  margin: 0 auto;
  max-height: 95vh;
  max-height: 95dvh;
  overflow-y: auto;
  padding: 30px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  transform: translateY(-6%);
}
.logo-container {
  text-align: center;
  margin-bottom: 20px;
}
.logo-container img {
  max-width: 180px;
}
.asterisco {
  color: rgb(239, 51, 51);
  font-weight: bold;
}
.recovery-link {
  text-align: center;
  margin-top: 15px;
  padding: 10px;
  background: #f8f9fa;
  border-radius: 5px;
}
.recovery-link a {
  color: #0f51d5;
  text-decoration: none;
  font-weight: 500;
}
.recovery-link a:hover {
  text-decoration: underline;
}
.admin-hidden-link {
  display: none;
  text-align: center;
  margin-top: 12px;
  font-size: 0.85rem;
  color: #6b7280;
  text-decoration: none;
}
.admin-hidden-link:hover {
  text-decoration: underline;
  color: #0f51d5;
}

@media (max-width: 480px) {
  .logo-container img {
    max-width: 220px;
  }
  .logo-container {
    margin-bottom: 10px;
  }
  .login-container {
    margin: 0 auto;
    padding: 15px 20px;
  }
  body {
    padding: 15px 0;
  }
  #loginForm .mb-3 {
    margin-bottom: 0.6rem !important;
  }
  #loginForm h3 {
    margin-bottom: 0.8rem !important;
  }
  #loginForm .form-label {
    font-size: 1rem;
  }
}

@media (min-width: 481px) {
  select,
  input[type="text"],
  input[type="email"],
  textarea {
    font-size: 14px;
  }
  #loginForm .form-label {
    font-size: 0.9rem;
  }
  #loginForm h3 {
    margin-bottom: 0.8rem;
  }
  #loginForm .mb-3 {
    margin-bottom: 0.7rem;
  }
  #loginForm .checkbox-row {
    display: flex !important;
    flex-wrap: nowrap !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 10px;
  }
  #loginForm .checkbox-row .form-check {
    margin-bottom: 0.7rem !important;
    white-space: nowrap;
  }
  .login-container {
    padding: 20px 30px;
    margin-top: 70px;
  }
  .logo-container {
    margin-bottom: 8px;
  }
  .logo-container img {
    max-width: 200px;
  }
  #loginForm h3.text-center.mb-4 {
    margin-bottom: 0.6rem !important;
  }
  #loginForm .d-grid.gap-2 {
    gap: 8px !important;
  }
  #loginForm .btn-lg {
    padding: 8px 16px;
  }
  .recovery-link {
    margin-top: 8px;
    padding: 8px;
  }
}

/* ─── Formulario de registro inline ───────────────────────────────────────── */
#registroForm .mb-3 {
  margin-bottom: 0.7rem;
}
#registroForm h3 {
  margin-bottom: 0.8rem;
}
#registroForm .form-label {
  font-size: 0.9rem;
}
#registroForm .d-grid.gap-2 {
  gap: 8px;
}
#registroForm .btn-lg {
  padding: 8px 16px;
}
@media (max-width: 480px) {
  #registroForm .mb-3 {
    margin-bottom: 0.6rem !important;
  }
  #registroForm h3 {
    margin-bottom: 0.8rem !important;
  }
  #registroForm .form-label {
    font-size: 1rem;
  }
}

/* Ocultar el placeholder cuando el campo está enfocado */
input:focus::placeholder,
textarea:focus::placeholder {
  color: transparent;
}