/* =======================
   VARIABLES Y FUENTES
======================= */
:root {
  --primary-color: #336699;
  --primary-hover: #31415b;
  --text-light: #fff;
  --text-dark: #333;
}

@font-face {
  font-family: Poppins-Regular;
  src: url('../fonts/poppins/Poppins-Regular.ttf');
}

@font-face {
  font-family: Poppins-Medium;
  src: url('../fonts/poppins/Poppins-Medium.ttf');
}

@font-face {
  font-family: Poppins-Bold;
  src: url('../fonts/poppins/Poppins-Bold.ttf');
}

@font-face {
  font-family: Poppins-SemiBold;
  src: url('../fonts/poppins/Poppins-SemiBold.ttf');
}

@font-face {
  font-family: Montserrat-Bold;
  src: url('../../fonts/montserrat/Montserrat-Bold.ttf');
}

@font-face {
  font-family: Montserrat-SemiBold;
  src: url('../../fonts/montserrat/Montserrat-SemiBold.ttf');
}

@font-face {
  font-family: Montserrat-Regular;
  src: url('../../fonts/montserrat/Montserrat-Regular.ttf');
}

/* Global Reset*/
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Montserrat-Regular", sans-serif;
}

body {
  font-weight: 700;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: #f0f0f0;
}

#background-video {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  z-index: -1;
  pointer-events: none;
  opacity: 1;
  transition: opacity 1s ease;
}

.background-image {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-size: cover;
  background-position: center;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.5s ease; /* Transición más rápida para la imagen */
}

.background-image.loaded {
  opacity: 1;
}

.text-center {
  text-align: center;
}

.contenedor {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.main {
  flex-grow: 1;
  display: flex;
  align-items: center;
  padding: 1rem;
  justify-content: flex-end;
}

.content-wrapper {
  background: #fff;
  padding: 25px;
  margin-right: 5em;
  border-radius: 10px;
  width: 100%;
  max-width: 420px;
  text-align: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  border: 1px solid gray;
}

.content-divImg {
  margin-bottom: 1.5rem;
}

.content-img{
  width: 100%;
  max-width: 150px;
  height: auto;
  margin-bottom: 15px;
}

/* Form Styles */
.loginForm {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.validate-input{
  position: relative;
  margin-bottom: 1.5rem;
}

.formulario-input{
  width: 100%;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 15px;
  outline: none;
}

.formulario-input:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 5px rgba(0, 123, 255, 0.3);
}

.validate-input::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: width 0.3s ease-in-out;
}

.validate-input:focus-within::after {
  width: 100%;
  right: auto;
  left: 0;
}

.formulario-label {
  position: absolute;
  font-size: 15px;
  left: 14px;
  top: 25%;
  transform: translateY(7%);
  transition: all 0.2s ease-in-out;
  color: #666;
  pointer-events: none;
  background: white;
  padding: 0 5px;
}

.formulario-input:focus + .formulario-label,
.formulario-input:not(:placeholder-shown) + .formulario-label {
  top: -10px;
  font-size: 13px;
  color: var(--primary-color);
}

.error-container {
  padding: 0.5rem;
  color: var(--danger-color);
  font-size: 13px;
  text-align: center;
  margin: 10px 0 10px 0;
}

/* Buttons */
.form-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1rem;
}

.formulario-btn {
  display: inline-block;
  width: 100%;
  padding: 10px;
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  text-align: center;
  color: var(--text-light);
  border: none;
  border-radius: 5px;
  transition: background-color 0.4s;
}

.btn-primary {
  background-color: var(--primary-color);
}

/* Branding */
.logoIsisma {
  max-height: 40px;
  width: auto;
}

/* Logo de Aplicativo */
.imagen-inferior-izquierda {
  position: absolute;
  bottom: 120px;
  left: 0px;
  z-index: 10;
  background-color: rgba(255, 255, 255, 0.900);
  border-radius: 0 20px 20px 0;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  border: 1px solid gray;
}

.imagen-inferior-izquierda img {
  max-width: 600px;
  height: auto;
  margin: 5px 30px;
}

/* Footer */
.site-footer {
  background: #333;
  text-align: center;
  color: var(--text-light);
}

.footer-content {
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
  margin: 0 50px 0 50px;
}

.footer-logo {
  max-width: 120px;
  height: auto;
}

.footer-text {
  font-weight: 400;
  font-size: 12px;
  width: 210px;
}

#footer-text {
  width: auto;
}

.footer-link {
  color: var(--text-light);
  font-size: 12px;
  text-decoration: none;
}

.footer-link:hover {
  color: var(--text-light);
  text-decoration: underline;
}

/* Switch Styles */
.switch-container {
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 10;
  background: rgba(255, 255, 255, 0.9);
  padding: 8px 12px;
  border-radius: 5px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  gap: 8px;
}

.switch-label {
  font-size: 12px;
  color: var(--text-dark);
  font-weight: 400;
}

.switch {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 28px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: background-color 0.4s;
  border-radius: 28px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: transform 0.4s;
  border-radius: 50%;
}

.switch input:checked + .slider {
  background-color: var(--primary-color);
}

.switch input:checked + .slider:before {
  transform: translateX(20px);
}