
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body,
html {
  height: 100%;
  font-family: Segoe UI, sans-serif;
  display: flex;
  justify-content: center;
  background-color: #F1F1F1;
}

.container {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 100%;
  background-color: transparent;
}


.header {
  position: relative;
  background-size: cover;
  background-position: center;
  height: 250px;
}

.header .logo {
  position: absolute;
  top: 15px;
  left: 190px;
  width: 120px;
  height: auto;
}

.logo {
  width: 250px !important; 
  height: auto;
  max-width: none;
  display: block;
}

.header .close {
  position: absolute;
  top: 7px;
  right: 7px;
  width: 42px; 
  height: auto;
  cursor: pointer;
}


.header .title {
  position: absolute;
  bottom: 16px;
  right: 16px;       
  text-align: right; 
  color: white;      
  font-size: 15px;
  line-height: 1.3;
  max-width: 90%;    
}

.titleinterno{
  margin-bottom: 1.3px;
  font-size: 15px;
  font-weight: 600;
}


.title {
  color: #fff;
  position: absolute;
  top: 85px; 
  left: 20px;
  z-index: 2;
}

.opciones {
  text-align: center;
  margin-top: 10px;
}
.checkbox-center {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5px;
}
.link-centrado a {
  display: block;
  margin-top: 5px;
  color: #ED1E24; 
  text-decoration: none;
}

input[type="checkbox"] {
  accent-color: #ED1E24; 
}



.login-card {
  background: #fff;
  margin: -90px 16px 0;
  padding: 16px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  z-index: 20;
  margin-top: -100px;
  position: relative;
}
.login-card .field {
  margin-bottom: 16px;
}
.login-card label {
  display: block;
  margin-bottom: 40px;
  font-size: 15px;
  color: #333;
}
.login-card .input-group {
  display: flex;
  align-items: center;
  border-bottom: 1px solid #ccc;
  padding-bottom: 4px;
}
.login-card .input-group img {
  width: 21px;
  margin-right: 8px;
}
.login-card .input-group input {
  border: none;
  flex: 1;
  font-size: 16px;
  outline: none;
}

.login-card .checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: -6px; 
}

.login-card .checkbox input {
  width: 22px;
  height: 22px;
  accent-color: #ED1E24;
}

.login-card .checkbox label {
  font-size: 15px;
}

.btn {
  display: block;
  width: 100%;
  text-align: center;
  padding: 12px;
  font-size: 16px;
  border-radius: 24px;
  cursor: pointer;
  border: none;
}
.btn-primary {
  background: #ED1E24;
  color: #fff;
  margin-bottom: 12px;
}
.btn-secondary {
  background: #fff;
  color: #333;
  border: 1px solid #333;
  display: flex;
  align-items: center;
  justify-content: center;
}
.btn-secondary img {
  width: 24px;
  margin-right: 8px;
}

.field {
  font-size: 14px; 
  font-weight: 400;
}


.btn-qr {
  display: inline-flex;
  width: auto;      
  min-width: 120px; 
  padding: 10px 16px; 
  margin: 16px auto;  
  color: #fff;
  background-color: #6D6E72;
  border-color: #6D6E72;
  font-size: 13px;

}


.nav {
  display: flex;
  justify-content: space-around;
  background: #fff;
  padding: 8px 0;
  border-top: 1px solid #ddd;
  margin-top: auto;
}
.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 12px;
  color: #333;
  cursor: pointer;
}
.nav-item img {
  width: 24px;
  margin-bottom: 4px;
}





.bottom-spacer {
  height: env(safe-area-inset-bottom, 16px);
}



.header::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      circle at top right,
      rgba(255, 235, 180, 0.3) 0%,
      transparent 50%
    ),
  
    linear-gradient(
      to bottom,
      rgba(60, 30, 0, 0.6),    
      rgba(60, 30, 0, 0.8)     
    );
  pointer-events: none;
  z-index: 0;
}


.header::after {
  content: "";
  position: absolute;
  top: -50px;
  left: 25%;
  transform: translateX(-50%) rotate(10deg);
  width: 100%;
  height: 60px;
  background: radial-gradient(circle at center,
              rgba(255,255,255,0.6) 0%,
              rgba(255,255,255,0) 70%);
  filter: blur(10px);
  pointer-events: none;
  z-index: 0;
}


.nav {
  display: flex;
  justify-content: space-between;
  background: #fff;
  border-top: 1px solid #ddd;
  padding: 8px 0;
}

.nav-item {
  flex: 1;                     
  min-width: 100px;            
  height: 50px;                
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4px;
  box-sizing: border-box;
  font-size: 10px;
}


.nav-item + .nav-item {
  border-left: 1px solid #ccc;
}


.input-group {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 37px;
}

.input-group img {
  width: 10px;
  height: auto;
  margin-top: -2px;
}

.input-group input {
  flex: 1;
  font-size: 17px;
  padding: 6px 0;
  border: none;
  outline: none;
  background: transparent;
}


label[for="usuario"] {
  font-size: 15px;
  margin-bottom: 6px;
  display: block;
}


label[for="recordar"] {
  font-size: 15px;
  margin-bottom: 40px;
  display: block;
  align-items: center;
}


.checkbox-center {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center; 
  gap: 10px;
  
}


.checkbox-center input[type="checkbox"] {
  width: 22px;
  height: 22px;
  accent-color: #ED1E24;
  margin-bottom: 42px; 
  margin-right: 60px;
}

.checkbox-center label {
  font-size: 15px;
  margin-left: -50px;
  padding-right: 45px;
}


.link-centrado {
  text-align: center;
  margin-top: 10px;
  font-size: 15px;
  margin-bottom: 30px;
  cursor: pointer;

}

.divider {
  border: none;
  height: 1px;
  background-color: #ccc;
  width: 51%;
  margin: 0 auto;
  transform: translateY(-15px); 
}

.modal {
  display: none;
  position: fixed;
  z-index: 999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.5);
  justify-content: center;
  align-items: center;
}

.modal-content {
  background-color: white;
  padding: 30px 30px;
  border-radius: 10px;
  text-align: center;
  max-width: 300px;
  box-shadow: 0 0 10px rgba(0,0,0,0.25);
  font-size: 20px;
  line-height: 1.5;
}


.modal-content button {
  margin-top: 50px;
  padding: 15px 33px;
  background-color: #ED2124; 
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 20px;
  cursor: pointer;
}

#usuario::placeholder {
  font-size: 15px;
}



@media screen and (max-width: 480px) {
  html, body {
    width: 100%;
    height: 100%;
    overflow: hidden; 
  }

  .container {
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    position: relative;
  }

  .header {
    height: 200px;
    background-position: center;
  }

  .logo {
    width: 160px;
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
  }

  .header .close {
    width: 30px;
    top: 10px;
    right: 10px;
  }

  .title {
    font-size: 14px;
    top: 100px;
    left: 16px;
    right: auto;
    text-align: left;
  }

  .login-card {
    margin: -60px 12px 0;
    padding: 12px;
    margin-bottom: 70px; 
  }

  .login-card label,
  .login-card input,
  .btn,
  .btn-qr,
  .link-centrado,
  .checkbox-center label {
    font-size: 14px;
  }

  .btn {
    padding: 10px;
  }

  .btn-qr {
    font-size: 12px;
    padding: 8px 12px;
    margin: 16px auto;
  }

  .nav {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60px;
    padding-bottom: env(safe-area-inset-bottom, 8px);
    display: flex;
    justify-content: space-around;
    background: #fff;
    border-top: 1px solid #ddd;
  }

  .nav-item {
    flex: 1;
    min-width: 70px;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    text-align: center;
    padding: 4px;
    box-sizing: border-box;
  }

  .btn-qr {
  font-size: 12px;
  padding: 8px 12px;
  margin: 20px auto 0; 
}

.header .close {
  position: absolute;
  top: 7px;
  right: 7px;
  width: 40px; 
  height: auto;
  cursor: pointer;
}


.title {
  color: #fff;
  position: absolute;
  top: 70px; 
  left: 20px;
  z-index: 2;
}

.header {
  position: relative;
  background-size: cover;
  background-position: center;
  height: 250px; 
}

.header .title {
  max-width: 88%;    
}

.header .logo {
  position: absolute;
  top: 15px;
  left: 195px;
  width: 120px;
  height: auto;
}

.login-card {
  background: #fff;
  margin: -90px 16px 0;
  padding: 16px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  z-index: 10;
  margin-top: -110px;
}

.divider {
  width: 70%;
}


}





