/* Telas de login: foto de lavoura ao fundo + painel de vidro à esquerda. Carregado depois de style.css. */

.auth-body {
  margin: 0; min-height: 100vh; color: #fff; overflow-x: hidden;
  background: #0b2a19 url('/img/login-campo.webp') center / cover no-repeat fixed;
  font-family: 'Plus Jakarta Sans', sans-serif;
}
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; }

.auth-lang { position: fixed; top: 22px; right: 26px; z-index: 5; display: flex; border: 1px solid rgba(255, 255, 255, .45); border-radius: 10px; overflow: hidden; background: rgba(10, 30, 20, .35); backdrop-filter: blur(8px); }
.auth-lang a { padding: 7px 14px; font-size: 12px; font-weight: 800; color: #fff; }
.auth-lang a.selected { background: #f2d65c; color: #102016; }

.auth-wrap { min-height: 100vh; display: flex; align-items: stretch; padding: 8px 0; }

/* painel de vidro */
.auth-panel {
  width: min(38vw, 600px); min-width: 440px; flex: none; display: flex; flex-direction: column; justify-content: center;
  padding: 44px clamp(34px, 4.2vw, 64px);
  background: linear-gradient(180deg, rgba(22, 56, 36, .55) 0%, rgba(12, 40, 25, .66) 100%);
  -webkit-backdrop-filter: blur(16px) saturate(1.15); backdrop-filter: blur(16px) saturate(1.15);
  border: 1px solid rgba(255, 255, 255, .28); border-left: 0; border-radius: 0 22px 22px 0;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .18);
}

.auth-brand { display: inline-flex; align-items: center; gap: 10px; align-self: flex-start; margin-bottom: 30px; font-weight: 800; font-size: 14px; letter-spacing: .04em; color: #fff; }
.auth-brand small { display: block; margin-top: 3px; font-size: 8px; letter-spacing: .3em; color: #f2d65c; }

.auth-panel h1 { margin: 0; font-size: clamp(34px, 3.6vw, 54px); font-weight: 800; letter-spacing: .01em; line-height: 1.05; color: #fff; text-transform: uppercase; }
.auth-sub { margin: 10px 0 0; font-size: clamp(16px, 1.55vw, 22px); font-weight: 400; letter-spacing: .02em; text-transform: uppercase; color: #fff; }
.auth-bar { display: block; width: 96px; height: 4px; margin: 18px 0 22px; border-radius: 4px; background: #7ed36c; }
.auth-bar-short { width: 56px; margin: 12px 0 22px; }
.auth-desc { margin: 0 0 34px; max-width: 470px; font-size: clamp(15px, 1.35vw, 19px); font-weight: 300; line-height: 1.55; color: #eef6f0; }
.auth-h2 { margin: 0; font-size: clamp(26px, 2.4vw, 34px); font-weight: 800; letter-spacing: .02em; color: #fff; }

.auth-flash { margin: 0 0 16px; padding: 12px 16px; border-radius: 14px; font-size: 14px; font-weight: 600; line-height: 1.45; }
.auth-flash-error { background: rgba(150, 28, 28, .55); border: 1px solid rgba(255, 170, 170, .55); color: #fff; }
.auth-flash-success { background: rgba(30, 120, 60, .55); border: 1px solid rgba(160, 235, 180, .55); color: #fff; }

/* telas de recuperação de senha */
.auth-panel h1.auth-title-sm { font-size: clamp(26px, 2.6vw, 38px); }
.auth-text { margin: 0 0 20px; max-width: 470px; font-size: 15px; font-weight: 300; line-height: 1.55; color: #eef6f0; }

/* campos */
.auth-form { display: flex; flex-direction: column; gap: 16px; }
.auth-field {
  position: relative; display: flex; align-items: center; gap: 14px; height: 58px; padding: 0 22px;
  border: 1.5px solid rgba(255, 255, 255, .55); border-radius: 14px; background: rgba(255, 255, 255, .07);
  transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
}
.auth-field .ico { flex: none; color: #fff; }
.auth-field:focus-within { border-color: #8be38a; background: rgba(255, 255, 255, .12); box-shadow: 0 0 0 4px rgba(126, 211, 108, .22); }
.auth-field input {
  flex: 1; min-width: 0; height: 100%; margin: 0; padding: 0; border: 0; outline: 0; background: transparent;
  color: #fff; font-size: 17px; font-weight: 500; box-shadow: none;
}
.auth-field input::placeholder { color: rgba(255, 255, 255, .88); font-weight: 400; }
.auth-field input:-webkit-autofill { -webkit-text-fill-color: #fff; transition: background-color 9999s ease 0s; }
.auth-eye { flex: none; display: grid; place-items: center; width: 34px; height: 34px; margin-right: -8px; padding: 0; border: 0; border-radius: 8px; background: transparent; color: #fff; cursor: pointer; }
.auth-eye:hover { background: rgba(255, 255, 255, .14); }
.auth-eye .eye-open { display: none; }
.auth-eye.is-on .eye-open { display: grid; }
.auth-eye.is-on .eye-closed { display: none; }

.auth-row { display: flex; justify-content: flex-end; margin: -2px 0 2px; }
.auth-link { font-size: 14px; color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.auth-link:hover { color: #f2d65c; }

.auth-btn {
  height: 60px; border: 1px solid rgba(255, 255, 255, .35); border-radius: 14px; cursor: pointer;
  font-family: inherit; font-size: 20px; font-weight: 800; letter-spacing: .02em; color: #fff;
  background: linear-gradient(180deg, #3fae4a 0%, #1f7c30 100%);
  box-shadow: 0 12px 28px rgba(18, 90, 38, .45), inset 0 1px 0 rgba(255, 255, 255, .28);
  transition: filter .2s ease, box-shadow .2s ease;
}
.auth-btn:hover { filter: brightness(1.1); box-shadow: 0 14px 32px rgba(18, 90, 38, .55), inset 0 1px 0 rgba(255, 255, 255, .3); }
.auth-btn:focus-visible, .auth-btn-outline:focus-visible, .auth-link:focus-visible { outline: 3px solid #f2d65c; outline-offset: 3px; }

.auth-divider { height: 1px; margin: 28px 0 20px; background: rgba(255, 255, 255, .26); }
.auth-no { margin: 0 0 14px; text-align: center; font-size: 17px; color: #fff; }
.auth-btn-outline {
  display: flex; align-items: center; justify-content: center; width: 88%; height: 52px; margin: 0 auto;
  border: 1.5px solid #8be38a; border-radius: 14px; background: rgba(0, 0, 0, .12);
  font-size: 18px; font-weight: 800; color: #9be89a; transition: background .2s ease, color .2s ease;
}
.auth-btn-outline:hover { background: rgba(139, 227, 138, .16); color: #c1f5bf; }
.auth-alt { margin: 14px 0 0; text-align: center; font-size: 14px; color: #dbe9de; }
.auth-alt a { color: #f2d65c; text-decoration: underline; text-underline-offset: 3px; font-weight: 700; }
.auth-back { align-self: center; margin-top: 22px; font-size: 13px; color: #cfe0d4; }
.auth-back:hover { color: #fff; }

/* ===== o painel precisa caber na tela sem rolar: tamanhos diminuem conforme a ALTURA da janela ===== */
.auth-logo { display: block; height: 40px; width: auto; max-width: 100%; }

/* notebooks e janelas médias (até 860 px de altura) */
@media (min-width: 901px) and (max-height: 860px) {
  .auth-wrap { padding: 6px 0; }
  .auth-panel { padding-top: 24px; padding-bottom: 24px; }
  .auth-brand { margin-bottom: 18px; }
  .auth-panel h1 { font-size: clamp(30px, 3.1vw, 42px); }
  .auth-sub { margin-top: 6px; font-size: clamp(14px, 1.3vw, 18px); }
  .auth-bar { margin: 12px 0 14px; height: 3px; }
  .auth-bar-short { margin: 8px 0 14px; }
  .auth-desc { margin-bottom: 20px; font-size: 15px; }
  .auth-h2 { font-size: 26px; }
  .auth-form { gap: 12px; }
  .auth-field { height: 50px; padding: 0 18px; }
  .auth-field input { font-size: 16px; }
  .auth-btn { height: 52px; font-size: 18px; }
  .auth-divider { margin: 18px 0 12px; }
  .auth-no { margin-bottom: 9px; font-size: 15px; }
  .auth-btn-outline { height: 46px; font-size: 16px; }
  .auth-alt { margin-top: 9px; font-size: 13px; }
  .auth-back { margin-top: 12px; }
}

/* telas baixas, como notebook com a barra do navegador (até 720 px de altura): modo compacto */
@media (min-width: 901px) and (max-height: 720px) {
  .auth-wrap { padding: 4px 0; }
  .auth-panel { padding: 12px clamp(28px, 3.2vw, 48px); }
  .auth-brand { gap: 8px; margin-bottom: 6px; font-size: 12px; }
  .auth-logo { height: 32px; }
  .auth-brand small { margin-top: 2px; font-size: 7px; }
  .auth-panel h1 { font-size: 30px; }
  .auth-sub { margin-top: 3px; font-size: 13px; }
  .auth-bar { margin: 7px 0 8px; height: 3px; width: 72px; }
  .auth-bar-short { margin: 5px 0 8px; width: 44px; }
  .auth-desc { margin-bottom: 8px; max-width: 440px; font-size: 12.5px; line-height: 1.38; }
  .auth-panel.has-flash .auth-desc { display: none; }
  .auth-h2 { font-size: 19px; }
  .auth-flash { margin-bottom: 8px; padding: 8px 12px; font-size: 13px; }
  .auth-form { gap: 8px; }
  .auth-field { height: 40px; gap: 11px; padding: 0 14px; }
  .auth-field .ico { width: 19px; height: 19px; }
  .auth-field input { font-size: 14px; }
  .auth-eye { width: 28px; height: 28px; margin-right: -6px; }
  .auth-eye .ico { width: 18px; height: 18px; }
  .auth-row { margin: -1px 0 0; }
  .auth-link { font-size: 12px; }
  .auth-btn { height: 42px; font-size: 16px; }
  .auth-divider { margin: 8px 0 6px; }
  .auth-no { margin-bottom: 6px; font-size: 13px; }
  .auth-btn-outline { height: 36px; font-size: 14px; }
  .auth-alt { margin-top: 5px; font-size: 12px; }
  .auth-back { margin-top: 6px; font-size: 12px; }
}

/* janelas muito baixas (até 580 px): tira o texto de apoio para não precisar rolar */
@media (min-width: 901px) and (max-height: 580px) {
  .auth-desc, .auth-alt { display: none; }
  .auth-brand { margin-bottom: 4px; }
}

/* telas estreitas (celular): o painel ocupa a largura toda sobre a foto */
@media (max-width: 900px) {
  .auth-body { background-attachment: scroll; background-position: 62% center; }
  .auth-wrap { padding: 0; }
  .auth-panel {
    width: 100%; min-width: 0; padding: 70px 24px 40px; border: 0; border-radius: 0;
    background: linear-gradient(180deg, rgba(14, 42, 27, .74) 0%, rgba(10, 34, 21, .84) 100%);
  }
  .auth-lang { top: 14px; right: 14px; }
  .auth-brand { margin-bottom: 22px; }
  .auth-btn-outline { width: 100%; }
}