/* ═══════════════════════════════════════════════════════════
   Fazendata — Auth Layout  (login · recover · contact)
   Standalone: no fd2.css dependency. Brand colors hardcoded.
   ═══════════════════════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  height: 100%;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen,
               Ubuntu, sans-serif;
  font-size: 15px;
  color: #1a1a1a;
  background: #f0f4ef;
}

/* ── Wrapper ──────────────────────────────────────────────── */
.auth-wrap {
  display: grid;
  grid-template-columns: 1fr 480px;
  min-height: 100vh;
}

/* ── Left: photo hero ────────────────────────────────────── */
.auth-hero {
  position: relative;
  background-image: url(/app/i/frmb/bg/atvd-1.png);
  background-size: cover;
  background-position: center center;
  overflow: hidden;
}

.auth-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(10, 30, 12, 0.20)  0%,
    rgba(10, 30, 12, 0.05) 40%,
    rgba(10, 40, 16, 0.80) 100%
  );
}

.auth-hero-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 40px 52px;
}

.auth-hero-logo {
  display: block;
  height: 30px;
  width: auto;
  margin-bottom: 14px;
  opacity: 0.95;
}

.auth-hero-tagline {
  font-size: 21px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.4;
  letter-spacing: -0.3px;
  max-width: 340px;
}

.auth-hero-sub {
  margin-top: 8px;
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.62);
  line-height: 1.5;
}

/* ── Right: form panel ───────────────────────────────────── */
.auth-panel {
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 56px 44px;
  min-height: 100vh;
}

.auth-form-wrap {
  width: 100%;
  max-width: 360px;
}

.auth-logo {
  display: block;
  height: 32px;
  width: auto;
  margin-bottom: 36px;
}

.auth-title {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.4px;
  color: #1a1a1a;
  margin-bottom: 6px;
  line-height: 1.2;
}

.auth-subtitle {
  font-size: 14px;
  color: #666;
  margin-bottom: 28px;
  line-height: 1.5;
}

/* ── Alert ───────────────────────────────────────────────── */
.auth-alert {
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.5;
  margin-bottom: 18px;
}
.auth-alert-error {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}
.auth-alert-success {
  background: #f0fdf4;
  color: #15803d;
  border: 1px solid #bbf7d0;
}

/* ── Fields ──────────────────────────────────────────────── */
.auth-field {
  margin-bottom: 14px;
}

.auth-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #333;
  margin-bottom: 5px;
}

.auth-input-wrap {
  position: relative;
}

.auth-input {
  display: block;
  width: 100%;
  padding: 9px 12px;
  font-size: 14px;
  font-family: inherit;
  color: #1a1a1a;
  background: #fff;
  border: 1.5px solid #d1d5db;
  border-radius: 8px;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
  appearance: none;
}
.auth-input:focus {
  border-color: #2D6A3E;
  box-shadow: 0 0 0 3px rgba(45, 106, 62, 0.12);
}
.auth-input::placeholder { color: #b0b0b0; }
.auth-input.auth-input-error {
  border-color: #ef4444;
}
.auth-input.auth-input-error:focus {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.12);
}

.auth-input-has-toggle { padding-right: 40px; }

.auth-toggle-btn {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  color: #9ca3af;
  padding: 0;
  transition: color 0.15s;
}
.auth-toggle-btn:hover { color: #2D6A3E; }

.auth-textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.5;
}

/* ── Button ──────────────────────────────────────────────── */
.auth-btn {
  display: block;
  width: 100%;
  padding: 10px 16px;
  font-size: 14.5px;
  font-weight: 600;
  font-family: inherit;
  color: #fff;
  background: #2D6A3E;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  letter-spacing: 0.1px;
  transition: background 0.15s;
  margin-top: 22px;
}
.auth-btn:hover  { background: #245634; }
.auth-btn:active { background: #1a3f27; }

/* ── Links ───────────────────────────────────────────────── */
.auth-links {
  margin-top: 18px;
  font-size: 13px;
  color: #666;
  line-height: 1.9;
}
.auth-links a {
  color: #2D6A3E;
  font-weight: 500;
  text-decoration: none;
}
.auth-links a:hover { text-decoration: underline; }

/* ── Footer ──────────────────────────────────────────────── */
.auth-footer {
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid #f0f0f0;
  font-size: 12.5px;
  color: #aaa;
  line-height: 1.7;
  text-align: center;
}
.auth-footer a {
  color: #2D6A3E;
  font-weight: 500;
  text-decoration: none;
}
.auth-footer a:hover { text-decoration: underline; }

/* ── Success state ───────────────────────────────────────── */
.auth-success-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #f0fdf4;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

/* ── Honeypot (invisible to humans, bait for bots) ────────── */
.hp-trap {
  display: none !important;
  position: absolute;
  left: -99999px;
  top: -99999px;
  visibility: hidden;
  height: 0;
  overflow: hidden;
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 820px) {
  .auth-wrap {
    grid-template-columns: 1fr;
    grid-template-rows: 220px 1fr;
  }
  .auth-hero { height: 220px; min-height: 0; }
  .auth-hero-tagline { font-size: 17px; }
  .auth-hero-sub { display: none; }
  .auth-hero-content { padding: 24px 28px; }
  .auth-hero-logo { height: 24px; margin-bottom: 10px; }
  .auth-panel {
    min-height: auto;
    padding: 36px 28px 48px;
    justify-content: flex-start;
    align-items: stretch;
  }
  .auth-form-wrap { max-width: 100%; }
  .auth-logo { margin-bottom: 24px; }
}
