:root{
  --bg1:#d7c3a8;     /* Fondo degradado (color 1) */ /* [file:3] */
  --bg2:#566f34;     /* Fondo degradado (color 2) */ /* [file:3] */
  --text:#000000;    /* Color letra (login) */       /* [file:3] */

  --input:#f8f7cc;   /* Campos correo/contraseña */  /* [file:3] */
  --line:#b8b892;    /* Línea campos + botón */      /* [file:3] */
  --inputText:#535353; /* Letra dentro inputs */     /* [file:3] */

  --btn:#b8b892;     /* Botón inicio sesión */       /* [file:3] */
  --btnShadow:#686c51; /* Sombra botón */            /* [file:3] */
}

*{box-sizing:border-box}
body{
  margin:0;
  min-height:100vh;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color:var(--text);
  background: linear-gradient(90deg, var(--bg1), var(--bg2));
}

.login-top{
  padding: 18px 22px;
}

.back{
  display:inline-flex;
  align-items:center;
  gap:10px;
  text-decoration:none;
  color:var(--text);
  font-weight:700;
}

.back-icon{
  font-size: 28px;
  line-height: 1;
}

.login-wrap{
  display:grid;
  place-items:center;
  padding: 10px 18px 34px;
}

.login-card{
  width: min(980px, 100%);
  padding: 18px 18px 24px;
}

.login-card h1{
  margin: 6px 0 12px;
  font-size: clamp(34px, 4.4vw, 64px);
  font-weight: 900;
  letter-spacing: 0.5px;
  text-align:center;
}

.logo-area{
  display:grid;
  place-items:center;
  margin: 10px 0 14px;
}

.logo{
  width: 190px;
  height: 190px;
  object-fit: contain;
  border-radius: 999px;
}

.alert{
  width: min(520px, 100%);
  margin: 10px auto 10px;
  padding: 10px 12px;
  background: rgba(248,247,204,0.55);
  border: 1px solid rgba(0,0,0,0.18);
  border-radius: 12px;
  text-align:center;
  font-weight: 700;
}

.form{
  width: min(520px, 100%);
  margin: 0 auto;
  display:grid;
  gap: 10px;
}

.label{
  font-size: 28px;
  font-weight: 800;
  margin-top: 6px;
}

.input{
  height: 44px;
  padding: 10px 14px;
  font-size: 20px;
  border-radius: 8px;
  border: 2px solid var(--line);
  background: var(--input);
  color: var(--inputText);
  outline: none;
}

.input:focus{
  filter: brightness(1.02);
}

.is-invalid{
  border-color: #8b2b2b;
}

.field-error{
  margin-top: -6px;
  font-weight: 700;
  color: #8b2b2b;
}

.btn-login{
  margin-top: 10px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  background: var(--btn);
  color: var(--text);
  font-size: 22px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 10px 0 var(--btnShadow);
  transition: transform .12s ease;
}

.btn-login:active{
  transform: translateY(3px);
  box-shadow: 0 7px 0 var(--btnShadow);
}

.forgot{
  margin-top: 6px;
  text-align:center;
  text-decoration:none;
  color: var(--text);
  font-size: 20px;
  opacity: 0.9;
}

.forgot:hover{
  text-decoration: underline;
}

@media (min-width: 860px){
  /* Layout estilo mockup grande: logo a la izquierda, formulario a la derecha */
  .login-card{
    padding: 10px 18px 10px;
  }

  .login-card h1{
    text-align:center;
    margin-bottom: 8px;
  }

  .logo-area{
    float:left;
    width: 46%;
    margin-top: 18px;
  }

  .form{
    float:right;
    width: 54%;
    margin-top: 10px;
  }
}