/* Variables
  ***********************/
@import url("variables.css");

input[type="radio"],
input[type="checkbox"] {
  margin: 0;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
input[type="number"],
input[type="password"],
textarea,
textarea.form-control,
select {
  color: var(--gris);
  border: 1px solid var(--amarillo);
  background: var(--amarillo-light);
  border-radius: 15px;
  padding: 0 0.8em;
  display: inline-block;
  transition: all 0.2s;
  width: 100%;
  height: 55px;
  font-size: calc(var(--text-general) - 0.2rem);
  font-family: var(--montserrat);
}

input[type="text"]:focus,
input[type="text"]:focus:hover,
input[type="email"]:focus,
input[type="email"]:focus:focus,
input[type="tel"]:focus,
input[type="date"]:focus,
input[type="number"]:focus,
input[type="password"]:focus,
select:focus,
select:focus:hover,
textarea:focus,
textarea:focus:hover {
  color: black;
  border-color: var(--amarillo);
  background: var(--amarillo-claro);
}

input[type="text"]:hover,
input[type="email"]:hover,
input[type="tel"]:hover,
input[type="date"]:hover,
input[type="number"]:hover,
input[type="password"]:hover,
select:hover,
textarea:hover {
  color: black;
  border-color: var(--amarillo);
  background: var(--amarillo-light);
}

.fieldgroup {
  border: 1px solid var(--amarillo);
  background: var(--amarillo-light);
  border-radius: 15px;
  padding: 1rem;
}

.select-wrapper,
.form-select {
  margin-right: 0 !important;
  width: 100% !important;
}

textarea {
  height: 200px;
  padding: 1rem;
}

label,
legend {
  display: block;
  color: var(--gris);
  margin-bottom: 0.2rem;
  padding: 0 15px;
  font-weight: var(--bold);
  font-family: var(--montserrat);
  font-size: var(--text-general-small);
}

.js-form-type-radio,
.js-form-type-checkbox {
  display: grid;
  grid-template-columns: 20px auto;
  grid-gap: 1rem;
}

.js-form-type-checkbox {
  align-items: flex-start;
}

.js-form-type-radio label,
.js-form-type-checkbox label {
  margin: 0;
  padding: 0;
}

.js-form-type-checkbox label {
  line-height: 1.3em;
  font-weight: var(--regular);
}

.fieldset-wrapper {
  padding-left: 15px;
}

.fieldset-wrapper .description {
  padding-left: 35px;
  margin-top: .5rem;
  font-size: var(--text-general-small);
}

#edit-politica-de-privacidad--wrapper {
  border: 0;
  background: white;
}

#edit-politica-de-privacidad--wrapper legend {
  display: none;
}

#edit-politica-de-privacidad--wrapper input[type="checkbox"] {
  margin-top: 4px;
  width: 20px;
  height: 20px;
}

/* Page login */

.path-user,
.path-user .dialog-off-canvas-main-canvas {
  position: fixed;
  width: 100vw;
  height: 100vh;
  top: 0;
  left: 0;
}

.path-user .dialog-off-canvas-main-canvas {
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(245, 245, 252, 1);
}

.login-box {
  width: 90%;
  max-width: 400px;
  padding: 2rem;
  background: white;
  border-radius: 20px;
  box-shadow: 0 0 60px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2rem;
}

.login-logo {
  height: 80px;
}

.path-user h1 {
  font-size: calc(var(--text-general) * 1.3);
  text-align: center;
}

#user-login-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2rem;
}

#user-login-form input[type="text"],
#user-login-form input[type="password"] {
  color: #c6c6c6;
  background: rgba(245, 245, 252, 1);
  border: 1px solid rgb(227, 227, 255);
  border-radius: 5px;
  padding: auto 1em;
  display: inline-block;
  transition: all 0.2s;
  width: 100%;
  height: 40px;
}

#user-login-form input[type="text"]:hover,
#user-login-form input[type="text"]:focus,
#user-login-form input[type="password"]:hover,
#user-login-form input[type="password"]:focus {
  color: black;
  background: rgba(245, 245, 252, 1);
  border: 1px solid black;
}

#user-login-form .button {
  border: 0;
  border-radius: 5px;
  width: 100%;
  height: 40px;
  text-decoration: none;
  font-weight: var(--bold);
  font-size: 16px;
  display: block;
  cursor: pointer;
  transition: all 0.2s;
  background: var(--amarillo);
  color: black;
}

#user-login-form .button:hover {
  background: black;
  color: white;
}

.captcha-type-challenge--image {
  grid-column: span 2;
}

fieldset.captcha {
  display: flex;
  flex-direction: column;
}

.captcha__title {
  text-align: center;
  width: 100%;
}

.captcha__image-wrapper {
    position: relative;
    flex: 0 0 110px;
}

fieldset.captcha .description {
  font-size: var(--text-general-small);
  font-family: var(--montserrat);
  max-width: 600px;
  line-height: 1.4em;
  margin: .5em auto;
  text-align: center;
}

.captcha-type-challenge--image .captcha__element {
  flex-flow: column nowrap;
  align-items: center;
}
