/* static/css/auth.css */

.auth-page{
  --accent: var(--green);
  background:
    linear-gradient(rgba(248,250,248,.62), rgba(248,250,248,.62)),
    url("/static/img/contadoresimg.png") center center / cover no-repeat fixed;
}

/* Cuando hagamos productores, solo cambiamos el fondo y el accent */
.auth-page.auth-producer{
  --accent: var(--wheat);
  background:
    linear-gradient(rgba(248,250,248,.62), rgba(248,250,248,.62)),
    url("/static/img/productoresig.png") center center / cover no-repeat fixed;
}

.auth-shell{
  min-height: calc(100vh - 64px);
  display:grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 22px;
  align-items:center;
  padding: 22px 0;
}

.auth-left{
  padding: 18px 6px;
}

.auth-copy{
  max-width: 540px;
  color: rgba(30,42,54,.78);
  font-weight: 700;
}

.auth-copy-main{
  max-width: 720px;
  font-size: 24px;
  line-height: 1.35;
  color: rgba(30,42,54,.88);
}

.auth-copy-secondary{
  margin-top: 20px;
  font-size: 18px;
  line-height: 1.35;
  color: rgba(30,42,54,.72);
}

.auth-kicker{
  margin: 0 0 10px;
  color: rgba(30,42,54,.75);
  font-weight: 800;
  letter-spacing: .02em;
}

.auth-title{
  margin: 0;
  font-size: 54px;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.auth-accent{
  color: var(--accent);
  position: relative;
}

.auth-right{
  display:flex;
  justify-content:center;
}

.auth-card{
  width: min(520px, 100%);
  border-radius: 22px;
  border: 1px solid rgba(0,0,0,.10);
  background: rgba(255,255,255,.78);
  box-shadow: 0 16px 34px rgba(30,42,54,.12);
  padding: 22px 22px 18px;
  backdrop-filter: blur(10px);
}

.auth-brand{
  display:flex;
  justify-content:center;
  margin-bottom: 10px;
}

.auth-logo{
  height: 34px;
  width: auto;
  opacity: .92;
}

.auth-form{
  display:grid;
  gap: 14px;
}

.auth-alert{
  margin-bottom: 14px;
  border-radius: 14px;
  padding: 12px 14px;
  border: 1px solid rgba(171,93,54,.28);
  background: rgba(220,143,96,.14);
  color: #7a341d;
  font-weight: 800;
}

.field{
  display:grid;
  gap: 8px;
}

.field-label{
  font-weight: 800;
  color: rgba(30,42,54,.85);
}

.field-control{
  display:flex;
  align-items:center;
  gap: 10px;
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,.12);
  background: rgba(255,255,255,.85);
  padding: 0 12px;
  height: 48px;
}

.field-icon{
  width: 22px;
  opacity: .7;
}

.field-input{
  width: 100%;
  border: none;
  outline: none;
  background: transparent;
  font-weight: 700;
  color: var(--txt);
  font-size: 15px;
}

.field-input::placeholder{
  color: rgba(93,106,116,.8);
  font-weight: 700;
}

.auth-alert--success{
  border-color: rgba(59, 116, 102, 0.24);
  background: rgba(232, 245, 239, 0.92);
  color: #245448;
}

.field-action{
  border: none;
  background: transparent;
  cursor: pointer;
  opacity: .65;
  font-size: 18px;
}

.field-control:focus-within{
  border-color: rgba(47,125,96,.35);
  box-shadow: 0 0 0 4px rgba(47,125,96,.12);
}

.auth-page.auth-producer .field-control:focus-within{
  border-color: rgba(184,121,57,.35);
  box-shadow: 0 0 0 4px rgba(184,121,57,.14);
}

.check{
  display:flex;
  align-items:center;
  gap: 10px;
  user-select: none;
}

.check-input{
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.check-box{
  width: 18px;
  height: 18px;
  border-radius: 6px;
  border: 1px solid rgba(0,0,0,.18);
  background: rgba(255,255,255,.85);
  display:inline-block;
  position: relative;
}

.check-input:checked + .check-box{
  background: rgba(47,125,96,.16);
  border-color: rgba(47,125,96,.45);
}

.auth-page.auth-producer .check-input:checked + .check-box{
  background: rgba(184,121,57,.18);
  border-color: rgba(184,121,57,.45);
}

.check-input:checked + .check-box::after{
  content:"✓";
  position:absolute;
  inset:0;
  display:grid;
  place-items:center;
  color: var(--accent);
  font-weight: 900;
  font-size: 13px;
}

.check-label{
  font-weight: 700;
  color: rgba(30,42,54,.78);
}

.auth-submit{
  height: 52px;
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,.08);
  background: var(--accent);
  color: #fff;
  font-weight: 900;
  font-size: 18px;
  cursor: pointer;
  box-shadow: 0 14px 28px rgba(30,42,54,.12);
}

.auth-submit:hover{ filter: brightness(.98); }

.auth-links{
  display:flex;
  justify-content:center;
  gap: 10px;
  align-items: baseline;
  padding-top: 4px;
}

.muted{
  color: var(--muted);
  font-weight: 700;
}

.auth-link{
  color: rgba(30,42,54,.88);
  font-weight: 900;
  text-decoration: none;
}

.auth-link:hover{ text-decoration: underline; }

.auth-link--small{
  justify-self:center;
  font-weight: 800;
  color: rgba(30,42,54,.70);
}

@media (max-width: 980px){
  .auth-shell{
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .auth-title{ font-size: 40px; }
  .auth-left{ text-align:center; }
  .auth-copy-main{ font-size: 20px; }
  .auth-copy-secondary{ font-size: 16px; }
}
