/*
 * login.css
 * Estilos exclusivos para la página de login / registro
 * No afecta ninguna otra página del sistema
 */

/* Layout principal */

#contenedor20 {
  display: flex;
  flex-direction: row;
  align-items: center;
  width: 100%;
  max-width: 1100px;
  margin: 2rem auto;
  background: #fff;
  gap: 0;
}

#ContainerTxt {
  flex: 1;
  padding: 2rem 3rem 2rem 2rem;
  text-align: left;
  border-right: 1px solid rgba(128, 128, 128, 0.12);
}

#ContainerTable {
  flex: 1;
  padding: 2.5rem 2.5rem 2.5rem 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Columna izquierda — criterios */

#ContainerTxt h4 {
  font-size: 0.9em;
  line-height: 1.85;
  color: #555;
  font-weight: 300;
}

.TxtPrincipalInicio {
  width: 100%;
  max-width: 920px;
  margin: 0 auto 1.25rem auto;
  padding: 0 1.25rem;
  left: 0 !important;
  top: 0 !important;
  text-align: center !important;
  color: #580f33;
}

.TxtPrincipalInicio p {
  margin: 0;
  font-size: 1.05em;
  line-height: 1.7;
  font-weight: 500;
  text-align: center !important;
  color: inherit;
}

#ContainerTxt .login-criterios {
  text-align: left;
  color: #222;
  font-size: 1em;
  line-height: 1.7;
  margin: 0 auto 1rem auto;
  max-width: 720px;
  padding-left: 22px;
}

#ContainerTxt .login-criterios li {
  margin: 0 0 0.65rem 0;
}

#ContainerTxt .login-criterios li:last-child {
  margin-bottom: 0;
}

.TxtPrincipal {
  font-size: 1em !important;
  font-weight: 600 !important;
  color: #580f33 !important;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 1rem;
  border-bottom: 2px solid rgba(254, 140, 24, 0.3);
  padding-bottom: 0.6rem;
}

#ContainerTxt strong {
  display: block;
  font-size: 0.82em;
  color: #777;
  font-weight: 400;
  margin-top: 1rem;
  line-height: 1.7;
  border-top: 1px solid rgba(128, 128, 128, 0.12);
  padding-top: 1rem;
}

/* Tarjeta del formulario */

.table20 {
  width: 100%;
  max-width: 360px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 6px 28px rgba(88, 15, 51, 0.1);
  padding: 2rem 1.8rem 1.8rem;
  border-collapse: separate;
}

.table20 td {
  padding: 0;
}

/* Labels e inputs  */

.table20 label {
  display: block;
  font-size: 0.7em;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #999;
  margin: 1.2rem 0 0.35rem;
}

.table20 label:first-child {
  margin-top: 0;
}

#txt_document {
  width: 100% !important;
  height: 46px;
  border-radius: 8px !important;
  border: 1.5px solid #e0d8d8 !important;
  background: #fafafa !important;
  color: #333 !important;
  font-size: 0.88em;
  text-align: left !important;
  padding: 0 1em !important;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

#txt_document:focus {
  border-color: #580f33 !important;
  background: #fff !important;
  color: #333 !important;
  outline: none;
  box-shadow: 0 0 0 3px rgba(88, 15, 51, 0.08) !important;
}

.table20 input[type="password"] {
  width: 100% !important;
  height: 46px;
  border-radius: 8px !important;
  border: 1.5px solid #e0d8d8 !important;
  background: #fafafa !important;
  color: #333 !important;
  font-size: 0.88em;
  text-align: left !important;
  padding: 0 1em !important;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.table20 input[type="password"]:focus {
  border-color: #580f33 !important;
  background: #fff !important;
  color: #333 !important;
  outline: none;
  box-shadow: 0 0 0 3px rgba(88, 15, 51, 0.08) !important;
}

/* Recuperar contraseña */

#Recuperar {
  font-size: 0.75em !important;
  color: #fe8c18 !important;
  font-weight: 600;
  cursor: pointer;
  margin: 0.5rem 0 0 0;
  text-align: right;
  transition: color 0.2s;
}

#Recuperar:hover {
  color: #580f33 !important;
}

/* Botones */

.table20 .button {
  width: 100% !important;
  padding: 0.65em 1em !important;
  font-size: 0.88em !important;
  font-weight: 600 !important;
  letter-spacing: 0.05em;
  border-radius: 8px !important;
  box-shadow: 0 3px 10px rgba(254, 140, 24, 0.2);
  margin-bottom: 0.2rem;
}

.table20 .button:hover {
  background: #580f33 !important;
  box-shadow: 0 5px 16px rgba(88, 15, 51, 0.25) !important;
}

/* Botón "Registrar" — diferenciado visualmente */
.table20 .button:last-of-type {
  background: transparent !important;
  color: #580f33 !important;
  border: 1.5px solid #580f33 !important;
  box-shadow: none !important;
}

.table20 .button:last-of-type:hover {
  background: #580f33 !important;
  color: #fff !important;
}

/* Responsive — tablet */

@media screen and (max-width: 900px) {
  #contenedor20 {
    flex-direction: column;
    margin: 1.5rem 1rem;
    gap: 0;
  }

  #ContainerTxt {
    width: 100%;
    padding: 2rem 1.5rem 1.5rem;
    border-right: none;
    border-bottom: 1px solid rgba(128, 128, 128, 0.12);
  }

  #ContainerTable {
    width: 100%;
    padding: 2rem 1.5rem;
  }

  .table20 {
    max-width: 100%;
  }
}

/* Responsive — móvil */

@media screen and (max-width: 600px) {
  #contenedor20 {
    margin: 1rem 0;
  }

  #ContainerTxt {
    padding: 1.5rem 1.2rem;
  }

  #ContainerTxt h4 {
    font-size: 0.85em;
  }

  #ContainerTable {
    padding: 1.5rem 1.2rem 2rem;
  }

  .table20 {
    padding: 1.5rem 1.2rem;
    border-radius: 10px;
  }

  #txt_document,
  .table20 input[type="password"] {
    height: 50px;
    font-size: 1em;
  }

  .table20 .button {
    height: 48px;
    font-size: 0.95em !important;
  }
}
