/* ===== GESCO AUTH FORMS ===== */

:root{
  --gesco-auth-bg: #96ab95;
  --gesco-auth-glow: #5ef088;
  --gesco-auth-dark: #42444c;
  --gesco-auth-input: #d7dfeb;
  --gesco-auth-text: #ffffff;
  --gesco-auth-link: #f2de00;
  --gesco-auth-btn: #f2de00;
  --gesco-auth-btn-text: #20242b;
  --gesco-auth-error-bg: #fff1f2;
  --gesco-auth-error-text: #a0222f;
  --gesco-auth-success-bg: #eef9d9;
  --gesco-auth-success-text: #466100;
}

/* wrapper general */
.gesco-auth-wrap{
  max-width: 900px;
  margin: 32px auto;
  padding: 38px 40px 34px;
  background: var(--gesco-auth-bg);
  border-radius: 22px;
  box-shadow:
    0 0 0 2px rgba(255,255,255,.88),
    0 0 18px rgba(94,240,136,.45);
  box-sizing: border-box;
}

/* barra superior */
.gesco-auth-title{
  margin: 0 0 34px;
  padding: 10px 16px;
  background: var(--gesco-auth-dark);
  color: #bff016;
  text-align: center;
  font-size: 24px;
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: .02em;
  border-radius: 4px;
  text-transform: uppercase;
}

/* mensajes */
.gesco-auth-notice{
  margin-bottom: 18px;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 14px;
  line-height: 1.4;
  font-weight: 600;
}

.gesco-auth-notice-success{
  background: var(--gesco-auth-success-bg);
  color: var(--gesco-auth-success-text);
}

.gesco-auth-notice-error{
  background: var(--gesco-auth-error-bg);
  color: var(--gesco-auth-error-text);
}

/* form */
.gesco-auth-form{
  display: grid;
  gap: 12px;
}

/* campos */
.gesco-auth-field{
  display: block;
}

.gesco-auth-field label{
  display: block;
  margin: 0 0 6px;
  color: var(--gesco-auth-text);
  font-size: 17px;
  line-height: 1.25;
  font-weight: 700;
}

.gesco-auth-field input{
  width: 100%;
  min-height: 58px;
  border: 0;
  border-radius: 0;
  background: var(--gesco-auth-input);
  color: #1e2228;
  font-size: 16px;
  line-height: 1.3;
  padding: 16px 18px;
  box-sizing: border-box;
  outline: none;
}

.gesco-auth-field input:focus{
  box-shadow: 0 0 0 3px rgba(242,222,0,.22);
}

.gesco-auth-field input::placeholder{
  color: #68707a;
}

/* checkbox */
.gesco-auth-check{
  margin-top: -2px;
  margin-bottom: 4px;
}

.gesco-auth-check label{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--gesco-auth-text);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.gesco-auth-check input[type="checkbox"]{
  width: 14px;
  height: 14px;
  accent-color: #ffffff;
}

/* recaptcha */
.gesco-auth-recaptcha{
  display: flex;
  justify-content: flex-start;
  margin: 6px 0 6px;
  overflow-x: auto;
}

/* botón */
.gesco-auth-actions{
  margin-top: 2px;
}

.gesco-auth-actions .button,
.gesco-auth-actions .button-primary,
.gesco-auth-actions button[type="submit"]{
  appearance: none;
  border: 0;
  border-radius: 4px;
  background: var(--gesco-auth-btn);
  color: var(--gesco-auth-btn-text);
  min-width: 130px;
  min-height: 42px;
  padding: 10px 24px;
  font-size: 18px;
  line-height: 1;
  font-weight: 800;
  cursor: pointer;
  box-shadow: none;
  transition: transform .15s ease, filter .2s ease;
}

.gesco-auth-actions .button:hover,
.gesco-auth-actions .button-primary:hover,
.gesco-auth-actions button[type="submit"]:hover{
  transform: translateY(-1px);
  filter: brightness(1.02);
}

/* links */
.gesco-auth-links{
  margin-top: 6px;
  text-align: left;
}

.gesco-auth-links a{
  color: var(--gesco-auth-link);
  text-decoration: none;
  font-size: 14px;
  line-height: 1.4;
  font-weight: 500;
}

.gesco-auth-links a:hover{
  text-decoration: underline;
}

/* variantes específicas opcionales */
.gesco-auth-lost-password .gesco-auth-title{
  color: #bff016;
}

.gesco-auth-reset-password .gesco-auth-title{
  color: #bff016;
}

/* móvil */
@media (max-width: 767px){
  .gesco-auth-wrap{
    margin: 18px 14px;
    padding: 24px 18px 24px;
    border-radius: 18px;
  }

  .gesco-auth-title{
    margin-bottom: 24px;
    font-size: 20px;
    padding: 10px 12px;
  }

  .gesco-auth-field label{
    font-size: 15px;
  }

  .gesco-auth-field input{
    min-height: 52px;
    font-size: 16px;
    padding: 14px 14px;
  }

  .gesco-auth-actions .button,
  .gesco-auth-actions .button-primary,
  .gesco-auth-actions button[type="submit"]{
    width: 100%;
    min-width: 0;
    font-size: 17px;
  }

  .gesco-auth-recaptcha{
    justify-content: flex-start;
  }
}
