/* GestiFac / Verde — local brand assets, generous space and readable contrast. */
.gestifac-auth {
  --primary: #15803d;
  --secondary: #065f46;
  --text: #10231c;
  --muted: #64736b;
  --line: #e2e9e5;
  color: var(--text);
  background: #fff;
  font-family: 'Inter', 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
}
.gestifac-auth [hidden] { display: none !important; }
.gestifac-auth :focus-visible { outline: 3px solid #16a34a; outline-offset: 4px; }
.g-auth-skip { position: fixed; top: 10px; left: 50%; z-index: 10; transform: translate(-50%, -160%); padding: 12px 20px; color: #fff; background: #065f46; border-radius: 8px; }
.g-auth-skip:focus { transform: translate(-50%, 0); }
.g-auth-shell { display: grid; grid-template-columns: minmax(0, 1.04fr) minmax(440px, .96fr); max-width: 2400px; min-height: 100svh; margin: 0 auto; padding: 18px; }
.g-auth-story { isolation: isolate; position: relative; display: flex; flex-direction: column; justify-content: space-between; min-width: 0; min-height: 700px; overflow: hidden; border-radius: 24px; background: #042e23; color: #fff; }
/* Keep the original 4:3 composition at every panel height: no cropped face or wall logo. */
.g-auth-story__visual { position: relative; flex: 0 0 auto; width: 100%; aspect-ratio: 4 / 3; margin-bottom: -18%; }
.g-auth-photo { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: contain; }
.g-auth-story__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(4, 46, 35, .025) 0%, rgba(4, 46, 35, .025) 48%, rgba(4, 46, 35, .12) 59%, rgba(4, 46, 35, .64) 79%, #042e23 100%); }
.g-auth-story__top { position: absolute; inset: 0 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 32px 36px; }
.g-auth-story__signature { display: inline-flex; align-items: center; gap: 9px; color: #134c37; background: #f5fff4ed; border: 1px solid #fff9; border-radius: 30px; padding: 10px 14px; font-size: 9px; font-weight: 650; letter-spacing: .11em; }
.g-auth-story__signature > span { width: 6px; height: 6px; flex-shrink: 0; border-radius: 50%; background: #16a34a; box-shadow: 0 0 0 3px #16a34a14; }
.g-auth-story__corner { display: grid; place-items: center; width: 37px; height: 37px; border-radius: 50%; background: #fff2; border: 1px solid #fff6; font-size: 21px; color: #fff; }
.g-auth-story__copy { position: relative; flex: 0 0 auto; margin-top: auto; padding: 42px 44px 36px; }
.g-auth-story__eyebrow { margin: 0 0 17px; color: #caf3d7; font-size: 10px; font-weight: 550; letter-spacing: .12em; }
.g-auth-story__copy h2 { margin: 0; font-family: inherit; font-size: clamp(39px, 4.05vw, 65px); line-height: 1.06; letter-spacing: -.055em; font-weight: 650; color: #fff; }
.g-auth-story__copy h2 span { color: #86efac; }
.g-auth-story__copy > p:not(.g-auth-story__eyebrow) { margin: 22px 0 28px; font-size: 14px; line-height: 1.75; font-weight: 400; color: #edf8f0dd; }
.g-auth-story__features { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 27px; padding-top: 23px; border-top: 1px solid #ffffff29; }
.g-auth-story__features span { display: flex; align-items: center; gap: 9px; font-size: 11px; font-weight: 450; color: #e3f3e9; }
.g-auth-story__features svg { width: 18px; height: 18px; color: #86efac; }
.g-auth-access { min-width: 0; display: flex; flex-direction: column; padding: 32px clamp(30px, 5.6vw, 92px) 14px; }
.g-auth-header { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.g-auth-logo { display: block; width: 176px; height: auto; }
.g-auth-header__label { color: #7a877e; font-size: 8px; font-weight: 550; letter-spacing: .17em; padding-left: 2px; }
.g-auth-main { display: flex; flex-direction: column; justify-content: center; flex: 1; padding: 48px 0; width: 100%; max-width: 460px; margin: 0 auto; }
.g-login { width: 100%; }
.g-login-kicker { display: flex; align-items: center; gap: 8px; color: #15803d; font-size: 9px; font-weight: 650; letter-spacing: .115em; }
.g-login-kicker > span { display: block; width: 17px; height: 2px; background: #16a34a; }
.g-login h1 { margin: 16px 0 14px; font-size: clamp(34px, 3.05vw, 46px); font-weight: 650; line-height: 1.08; letter-spacing: -.06em; }
.g-login-lead { color: #69746e; font-size: 14px; line-height: 1.75; margin: 0; }
.g-login-form { display: grid; gap: 22px; margin: 33px 0 0; }
.g-login-field { min-width: 0; }
.g-login-field label { display: block; color: #223a2c; font-size: 12px; font-weight: 600; }
.g-login-label { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.g-login-label > a { color: #547563; font-size: 11px; font-weight: 500; }
.g-login-label > a:hover { color: #15803d; text-decoration: underline; text-underline-offset: 3px; }
.g-login-input { display: flex; position: relative; align-items: center; margin-top: 9px; border: 1px solid #dbe4dd; border-radius: 9px; background: #fafcfb; transition: border-color .16s, box-shadow .16s, background .16s; }
.g-login-input > svg { width: 17px; height: 17px; margin-left: 16px; color: #7d8f82; flex-shrink: 0; }
.g-login-input > input { min-width: 0; width: 100%; padding: 16px 13px; border: 0; border-radius: 9px; background: transparent; outline: 0; color: #10231c; font-size: 14px; line-height: 20px; box-shadow: none; }
.g-login-input > input::placeholder { color: #87978c; opacity: 1; }
.g-login-input:focus-within { background: #fff; border-color: #16a34a; box-shadow: 0 0 0 3px #16a34a14; }
.g-login-input:has(input:focus-visible) { outline: 2px solid #15803d; outline-offset: 3px; }
.g-login-input input:focus-visible { outline: none; }
.g-login-field.has-error .g-login-input { border-color: #c74136; }
.g-password-toggle { display: grid; place-items: center; width: 44px; height: 44px; padding: 10px; margin-right: 4px; flex-shrink: 0; border: 0; background: transparent; color: #728276; border-radius: 7px; }
.g-password-toggle svg { width: 19px; height: 19px; }
.g-password-toggle:hover { background: #eaf5ee; color: #15803d; }
.g-password-slash { display: none; }
.g-password-toggle[aria-pressed="true"] .g-password-slash { display: block; }
.g-login-submit { display: flex; align-items: center; justify-content: center; gap: 16px; width: 100%; min-height: 52px; padding: 13px 20px; margin-top: 3px; border: 1px solid #15803d; border-radius: 9px; background: #15803d; color: #fff; box-shadow: 0 5px 12px #15803d16; font-size: 14px; font-weight: 550; transition: background .16s, box-shadow .16s, transform .16s; }
.g-login-submit svg { width: 18px; height: 18px; transition: transform .16s; }
.g-login-submit:hover { background: #166534; border-color: #166534; box-shadow: 0 7px 18px #15803d25; }
.g-login-submit:hover svg { transform: translateX(3px); }
.g-login-submit:disabled { opacity: .7; cursor: wait; }
.g-login-register { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 29px; padding-top: 25px; border-top: 1px solid #e5ebe6; }
.g-login-register strong { display: block; color: #45564a; font-size: 12px; font-weight: 550; }
.g-login-register p { margin: 6px 0 0; color: #77867b; font-size: 11px; }
.g-login-register a { flex-shrink: 0; color: #15803d; font-size: 11px; font-weight: 650; }
.g-login-register a:hover { text-decoration: underline; text-underline-offset: 4px; }
.g-login-register a span { margin-left: 5px; font-size: 15px; }
.g-login-team { display: flex; align-items: center; gap: 7px; margin: 28px 0 0; color: #738177; font-size: 10px; line-height: 1.6; }
.g-login-team svg { width: 14px; height: 14px; flex-shrink: 0; color: #65806e; }
.g-login-error, .gestifac-auth .form-errors { padding: 12px 15px; border: 1px solid #f2c9c3; border-radius: 8px; color: #972c21; background: #fff7f5; font-size: 12px; line-height: 1.6; }
.g-login-error p, .gestifac-auth .form-errors p { margin: 0; }
.g-login-caps, .gestifac-auth .error-text { font-size: 11px; line-height: 1.5; margin: 7px 0 0; color: #963b27; }
.g-auth-footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 14px; padding-top: 16px; border-top: 1px solid #e9eee9; font-size: 9px; color: #77847b; line-height: 1.6; }
/* Shared registration/recovery screens retain their existing server-side forms. */
.gestifac-auth .auth-card { padding: 0; width: 100%; max-width: none; background: transparent; box-shadow: none; border: 0; backdrop-filter: none; }
.gestifac-auth .auth-card__header { display: block; margin-bottom: 16px; }
.gestifac-auth .auth-card__brand { display: block; }
.gestifac-auth .auth-card__brand .brand-logo, .gestifac-auth .auth-card__pill, .gestifac-auth .auth-note-grid { display: none; }
.gestifac-auth .auth-card :is(h1,h2) { margin: 10px 0; font-family: inherit; font-size: 30px; line-height: 1.2; letter-spacing: -.045em; font-weight: 650; color: #10231c; }
.gestifac-auth .auth-card .eyebrow { color: #15803d; font-size: 9px; }
.gestifac-auth .auth-card .panel-lead { color: #64736b; font-size: 13px; line-height: 1.8; margin: 0 0 20px; }
.gestifac-auth .stack-form { gap: 18px; }
.gestifac-auth .form-field label { color: #294533; font-size: 12px; font-weight: 550; }
.gestifac-auth .form-field :is(input, select, textarea) { background: #fafcfb; border-color: #dbe4dd; color: #10231c; font-size: 13px; border-radius: 8px; min-height: 47px; box-shadow: none; }
.gestifac-auth .form-field :is(input, select, textarea):focus { border-color: #15803d; box-shadow: 0 0 0 3px #16a34a14; }
.gestifac-auth .form-field :is(input[type="checkbox"],input[type="radio"]) { min-height: auto; accent-color: #15803d; }
.gestifac-auth .form-field small { color: #65776a; font-size: 11px; line-height: 1.65; }
.gestifac-auth .primary-btn { background: #15803d; color: #fff; border: 1px solid #15803d; border-radius: 8px; box-shadow: none; min-height: 48px; font-size: 13px; }
.gestifac-auth .primary-btn:hover { background: #166534; transform: none; }
.gestifac-auth .ghost-btn { border: 1px solid #dbe4dd; color: #166534; background: #fff; border-radius: 8px; box-shadow: none; font-size: 12px; }
.gestifac-auth .auth-helper { font-size: 12px; color: #65776a; line-height: 1.7; }
.gestifac-auth .auth-helper a { color: #15803d; font-weight: 550; }
.gestifac-auth .auth-note { padding: 16px; border-color: #dcebe0; border-radius: 9px; background: #f0fdf4; color: #374151; }
@media (min-width: 981px) {
  .g-auth-story { position: sticky; top: 18px; align-self: start; min-height: max(700px, calc(100svh - 36px)); }
}
@media (min-width: 1700px) {
  .g-auth-access { padding-left: 120px; padding-right: 120px; }
  .g-auth-main { max-width: 490px; }
  .g-login-lead, .g-login-input > input { font-size: 14px; }
  .g-auth-story__copy { padding: 60px; }
}
@media (max-width: 1100px) and (min-width: 981px) {
  .g-auth-shell { grid-template-columns: minmax(0, 1fr) minmax(380px, 1fr); padding: 12px; }
  .g-auth-access { padding: 28px 35px 12px; }
  .g-auth-story__copy { padding: 30px; }
  .g-auth-story__top { padding: 25px; }
  .g-auth-story__features { gap: 15px; }
  .g-auth-story { top: 12px; min-height: max(700px, calc(100svh - 24px)); }
}
@media (max-width: 1100px) {
  /* At small image sizes the decorative badge would cover the portrait. */
  .g-auth-story__top { display: none; }
}
@media (max-width: 980px) {
  .g-auth-shell { grid-template-columns: minmax(0, 1fr); max-width: 640px; padding: 0 20px 20px; }
  .g-auth-access { order: -1; min-height: calc(100svh - 20px); padding: 32px 32px 18px; }
  .g-auth-header { flex-direction: row; align-items: center; justify-content: space-between; }
  .g-auth-header__label { max-width: 95px; text-align: right; line-height: 1.7; }
  .g-auth-logo { width: 160px; }
  .g-auth-main { padding: 48px 0 38px; }
  .g-login h1 { font-size: 40px; }
  .g-auth-story { min-height: 480px; }
  .g-auth-story__copy h2 { font-size: 40px; }
  .g-auth-story__copy { padding: 38px 32px 32px; }
  .g-auth-story__eyebrow { font-size: 9px; }
}
@media (max-width: 480px) {
  .g-auth-shell { padding: 0 12px 12px; }
  .g-auth-access { padding: 26px 16px 20px; min-height: calc(100svh - 12px); }
  .g-auth-main { padding: 44px 0 33px; }
  .g-login h1 { font-size: 39px; }
  .g-login-lead { font-size: 13px; }
  .g-login-input > input { font-size: 16px; padding-top: 14px; padding-bottom: 14px; }
  .g-login-label > a { font-size: 11px; }
  .g-login-field label { font-size: 12px; }
  .g-login-submit { font-size: 13px; }
  .g-login-form { gap: 21px; margin-top: 30px; }
  .g-login-register { gap: 10px; }
  .g-login-register strong, .g-login-register p { font-size: 10px; }
  .g-login-team { font-size: 9px; }
  .g-auth-story { border-radius: 18px; }
  .g-auth-story__top { padding: 23px; }
  .g-auth-story__copy { padding-left: 24px; padding-right: 24px; }
  .g-auth-story__copy h2 { font-size: 38px; }
  .g-auth-story__features { gap: 16px; }
  .g-auth-story__features span { font-size: 10px; }
  .g-desktop-break { display: none; }
  .g-auth-footer { font-size: 8px; gap: 5px; }
}
@media (min-width: 981px) and (max-height: 850px) {
  .g-auth-main { padding-top: 28px; padding-bottom: 28px; }
  .g-auth-access { padding-top: 22px; }
  .g-auth-header__label { display: none; }
  .g-login h1 { font-size: 38px; margin: 13px 0; }
  .g-login-form { gap: 18px; margin-top: 24px; }
  .g-login-register { margin-top: 22px; padding-top: 20px; }
  .g-login-team { margin-top: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .gestifac-auth *, .gestifac-auth *::before, .gestifac-auth *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
