/* Telas de acesso (entrar, redefinir senha, orçamento): floresta do camaleão + cartão de vidro escuro. */

.auth { position: relative; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; color: #fff; background: #0a0806; isolation: isolate; }
.auth-bg { position: fixed; inset: 0; z-index: -1; background: url(/assets/img/hero.webp?v=38ea8fce66) 30% 50% / cover no-repeat; }
.auth-bg::after { content: ""; position: absolute; inset: 0; background:
  radial-gradient(ellipse 55% 80% at 78% 50%, rgba(8, 7, 4, .55), transparent 70%),
  linear-gradient(180deg, rgba(6, 5, 3, .55), transparent 22%, transparent 70%, rgba(6, 5, 3, .7)); }
.auth-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: calc(18px + var(--safe-t)) max(clamp(16px, 4vw, 44px), var(--safe-r)) 18px max(clamp(16px, 4vw, 44px), var(--safe-l)); }
.auth-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.auth-brand img:first-child { filter: drop-shadow(0 0 12px rgba(224, 178, 74, .45)); }
.auth-word { width: 150px; }
.auth-back { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; border: 1px solid rgba(245, 220, 138, .45); background: rgba(10, 8, 6, .35); color: #fff; font-size: 14px; font-weight: 600; text-decoration: none; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.auth-top-actions { display: flex; align-items: center; gap: 8px; flex: none; }
.auth-install { cursor: pointer; font-family: inherit; }
.auth-install .ic { color: #f5dc8a; }
.auth-back:hover { border-color: #f5dc8a; background: rgba(217, 173, 69, .18); }
.auth-main { flex: 1; display: flex; align-items: center; justify-content: flex-end; padding: 12px clamp(16px, 6vw, 96px) 48px; }
.auth-main.is-wide { justify-content: center; align-items: flex-start; }

.glass {
  position: relative;
  background: linear-gradient(160deg, rgba(40, 33, 20, .72), rgba(14, 12, 8, .78) 55%, rgba(24, 20, 12, .74));
  border: 1px solid rgba(245, 220, 138, .22);
  border-radius: 28px;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .8), inset 0 1px 0 rgba(255, 255, 255, .08);
  backdrop-filter: blur(22px) saturate(1.2);
  -webkit-backdrop-filter: blur(22px) saturate(1.2);
}
.auth-card { width: min(520px, 100%); padding: clamp(28px, 4.5vw, 52px) clamp(22px, 4.5vw, 48px) clamp(24px, 3vw, 34px); }
.auth-title { margin: 0 0 10px; font-size: clamp(30px, 4vw, 44px); font-weight: 650; line-height: 1.1; letter-spacing: -.02em; color: #fff; text-align: center; text-wrap: balance; }
.auth-sub { margin: 0 0 28px; text-align: center; color: rgba(255, 255, 255, .72); font-size: 16.5px; }
.auth-sub strong { color: #fff; }
.auth-badge { display: grid; place-items: center; width: 60px; height: 60px; margin: 0 auto 18px; border-radius: 18px; background: rgba(224, 178, 74, .15); color: #f5dc8a; border: 1px solid rgba(245, 220, 138, .3); }
.auth-msg { margin: 0 0 18px; padding: 11px 14px; border-radius: 12px; font-size: 14px; font-weight: 600; }
.auth-msg.tone-bad { background: rgba(177, 38, 31, .25); color: #ffd7d2; border: 1px solid rgba(255, 140, 128, .35); }
.auth-msg.tone-warn { background: rgba(224, 178, 74, .16); color: #f8e2a6; border: 1px solid rgba(245, 220, 138, .3); }

.auth-field {
  display: flex; align-items: center; gap: 16px; margin-bottom: 16px; padding: 14px 18px; min-height: 76px;
  border: 1px solid rgba(255, 255, 255, .14); border-radius: 16px; background: rgba(255, 255, 255, .04); cursor: text;
  transition: border-color .2s, background-color .2s, box-shadow .2s;
}
.auth-field:hover { border-color: rgba(245, 220, 138, .38); }
.auth-field:focus-within { border-color: rgba(245, 220, 138, .75); background: rgba(255, 255, 255, .06); box-shadow: 0 0 0 4px rgba(224, 178, 74, .12); }
.auth-field-ic { color: rgba(255, 255, 255, .78); display: flex; }
.auth-field-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.auth-field-label { font-size: 14.5px; font-weight: 600; color: #fff; }
.auth-input { width: 100%; padding: 0; border: 0; background: transparent; color: #fff; font-size: 16px; outline: none; }
.auth-input::placeholder { color: rgba(255, 255, 255, .5); }
.auth-input:-webkit-autofill { -webkit-text-fill-color: #fff; transition: background-color 9999s; caret-color: #fff; }
.auth-eye { display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 10px; background: transparent; color: rgba(255, 255, 255, .7); }
.auth-eye:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.auth-row { display: flex; justify-content: flex-end; margin: -4px 0 20px; }
.auth-link { color: #f0cd72; font-weight: 600; font-size: 15px; text-decoration: none; }
.auth-link:hover { text-decoration: underline; }
.auth-submit {
  position: relative; display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; min-height: 64px; padding: 0 24px;
  border: 1px solid rgba(245, 220, 138, .55); border-radius: 16px; color: #fff; font-size: 18px; font-weight: 650; text-decoration: none;
  background: linear-gradient(90deg, rgba(120, 88, 30, .55) 0%, rgba(176, 130, 48, .75) 55%, rgba(226, 180, 86, .92) 100%);
  box-shadow: 0 18px 40px -18px rgba(224, 178, 74, .75), inset 0 1px 0 rgba(255, 255, 255, .25);
  transition: filter .2s, transform .15s, box-shadow .2s;
}
.auth-submit > .ic { position: absolute; right: 22px; }
.auth-submit:hover:not(:disabled) { filter: brightness(1.12); box-shadow: 0 22px 46px -18px rgba(224, 178, 74, .95), inset 0 1px 0 rgba(255, 255, 255, .3); }
.auth-submit:active:not(:disabled) { transform: translateY(1px); }
.auth-submit:disabled { opacity: .7; cursor: progress; }
.auth-submit .spin { position: absolute; right: 24px; border-color: rgba(255, 255, 255, .3); border-top-color: #fff; }
.auth-sep { display: flex; align-items: center; gap: 14px; margin: 28px 0 16px; color: rgba(255, 255, 255, .6); font-size: 14px; }
.auth-sep::before, .auth-sep::after { content: ""; flex: 1; height: 1px; background: rgba(255, 255, 255, .16); }
.auth-alt { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; margin-top: 12px; border-radius: 14px; border: 1px solid rgba(255, 255, 255, .14); background: rgba(255, 255, 255, .04); color: #f5dc8a; font-weight: 650; text-decoration: none; }
.auth-alt:hover { border-color: rgba(245, 220, 138, .6); background: rgba(224, 178, 74, .1); }
.auth-foot { margin: 22px 0 0; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .1); text-align: center; color: rgba(255, 255, 255, .6); font-size: 13.5px; }

/* ---------- entrar ou criar conta (fluxo em etapas) ---------- */
.auth-card-form { width: min(560px, 100%); }
.auth-card-form .auth-title { font-size: clamp(27px, 3.2vw, 36px); text-align: left; }
.auth-card-form .auth-sub { text-align: left; margin-bottom: 22px; }
.auth-inline { display: inline; padding: 0; border: 0; background: none; color: #f0cd72; font: inherit; font-weight: 650; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.auth-inline:hover { color: #f8e2a6; }
.auth-legal { margin: 2px 2px 18px; color: rgba(255, 255, 255, .62); font-size: 13.5px; line-height: 1.5; }
.auth-legal a, .auth-consent a, .auth-foot a { color: #f0cd72; font-weight: 600; }
.auth-hint { margin: -4px 2px 18px; color: rgba(255, 255, 255, .6); font-size: 13.5px; }
.auth-field.is-compact { min-height: 64px; padding: 10px 16px; margin-bottom: 12px; gap: 12px; }
.auth-field.is-compact .auth-field-label { font-size: 13.5px; }
.auth-field.has-err { border-color: rgba(255, 140, 128, .8); }
.auth-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.auth-code { letter-spacing: .28em; font-variant-numeric: tabular-nums; font-weight: 650; }
.auth-code::placeholder { letter-spacing: normal; font-weight: 400; }
.auth-resend:disabled { cursor: default; opacity: 1; }
.auth-count { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid rgba(245, 220, 138, .45); color: #f5dc8a; font-size: 12.5px; font-weight: 700; font-variant-numeric: tabular-nums; }
.auth-consent { position: relative; display: flex; align-items: flex-start; gap: 12px; margin: 6px 2px 20px; color: rgba(255, 255, 255, .82); font-size: 14.5px; line-height: 1.45; cursor: pointer; }
.auth-consent input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.auth-check { display: grid; place-items: center; width: 22px; height: 22px; flex: none; margin-top: 1px; border-radius: 7px; border: 1.5px solid rgba(255, 255, 255, .45); color: transparent; transition: .15s; }
.auth-consent input:checked + .auth-check { background: var(--grad-gold); border-color: #f0cd72; color: #1a1206; }
.auth-consent input:focus-visible + .auth-check { box-shadow: 0 0 0 3px rgba(224, 178, 74, .45); }
.auth-consent.has-err { color: #ffb4aa; }
.auth-consent.has-err .auth-check { border-color: #ff8c80; }
.auth-social { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.auth-social-1 { grid-template-columns: minmax(0, 1fr); }
.auth-social-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.auth-social-btn { display: flex; align-items: center; justify-content: center; gap: 9px; min-height: 52px; padding: 0 10px; border-radius: 14px; border: 1px solid rgba(255, 255, 255, .16); background: rgba(255, 255, 255, .05); color: #fff; font-size: 14.5px; font-weight: 650; transition: border-color .2s, background-color .2s; }
.auth-social-btn:hover:not(:disabled) { border-color: rgba(245, 220, 138, .6); background: rgba(255, 255, 255, .09); }
.auth-social-btn:disabled { opacity: .6; cursor: progress; }
.auth-social-btn .spin { width: 18px; height: 18px; border-color: rgba(255, 255, 255, .3); border-top-color: #fff; }
.auth-alt-btn { width: 100%; font: inherit; font-weight: 650; cursor: pointer; }
.auth-create { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 54px; margin-top: 4px; border-radius: 14px; border: 1px solid rgba(245, 220, 138, .6); background: rgba(224, 178, 74, .05); color: #f0cd72; font: inherit; font-size: 16px; font-weight: 700; cursor: pointer; transition: background-color .2s, border-color .2s; }
.auth-create:hover { background: rgba(224, 178, 74, .14); border-color: #f0cd72; }
.auth-spam { display: flex; gap: 12px; margin: -8px 0 18px; padding: 13px 15px; border-radius: 14px; border: 1px solid rgba(245, 220, 138, .55); background: rgba(224, 178, 74, .14); }
.auth-spam-ic { display: grid; place-items: center; width: 34px; height: 34px; flex: none; border-radius: 10px; background: var(--grad-gold); color: #1a1206; }
.auth-spam strong { display: block; margin-bottom: 3px; color: #f8e2a6; font-size: 14.5px; line-height: 1.35; }
.auth-spam span { display: block; color: rgba(255, 255, 255, .78); font-size: 13.5px; line-height: 1.5; overflow-wrap: anywhere; }
.auth-spam b { color: #fff; font-weight: 700; }
.auth-create-light { margin-top: 12px; border-color: rgba(255, 255, 255, .22); color: #fff; background: rgba(255, 255, 255, .04); }
.auth-create-light:hover { border-color: rgba(245, 220, 138, .6); color: #f5dc8a; }
.auth-create:disabled { opacity: .6; cursor: progress; }
.auth-row-left { justify-content: flex-start; margin-top: -2px; }
.auth-link-btn { padding: 0; border: 0; background: none; font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.auth-birth { margin: 0; padding: 0; border: 0; min-width: 0; }
.auth-birth legend { padding: 0; margin: 0 0 8px 4px; font-size: 13.5px; font-weight: 600; color: rgba(255, 255, 255, .85); }
.auth-trio { display: grid; grid-template-columns: 1fr 1fr 1.5fr; gap: 12px; }
.auth-num { font-variant-numeric: tabular-nums; }
.auth-countdown { margin: -6px 4px 14px; text-align: right; font-size: 13px; color: rgba(255, 255, 255, .6); }
.auth-rules { display: grid; gap: 4px; margin: -4px 4px 20px; padding: 0; list-style: none; font-size: 13.5px; }
.auth-rules li { display: flex; align-items: center; gap: 8px; color: rgba(255, 200, 190, .85); }
.auth-rules li.is-ok { color: #a7e3b8; }
.auth-actions { display: flex; justify-content: flex-end; gap: 12px; flex-wrap: wrap; }
.auth-btn-ghost, .auth-btn-solid { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 120px; min-height: 52px; padding: 0 26px; border-radius: 999px; font: inherit; font-size: 16px; font-weight: 700; cursor: pointer; }
.auth-btn-ghost { border: 1px solid rgba(255, 255, 255, .3); background: transparent; color: #fff; }
.auth-btn-ghost:hover { border-color: #f0cd72; color: #f5dc8a; }
.auth-btn-solid { border: 1px solid rgba(245, 220, 138, .6); background: var(--grad-gold); color: #1a1206; }
.auth-btn-solid:hover:not(:disabled) { filter: brightness(1.06); }
.auth-btn-solid:disabled { opacity: .7; cursor: progress; }
.auth-btn-solid .spin { width: 16px; height: 16px; border-width: 2px; border-color: rgba(26, 18, 6, .3); border-top-color: #1a1206; }
.auth-help { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; margin: -6px 0 16px; font-size: 14px; color: rgba(255, 255, 255, .5); }
.auth-help .auth-link { font-size: 14px; }
.auth-alt-btn:disabled { opacity: .6; cursor: progress; }
/* verificação em duas etapas: primeiro cadastro da equipe (QR code no cartão escuro) */
.auth-card-mfa { width: min(600px, 100%); }
.mfa-setup.is-dark { margin-bottom: 18px; }
.mfa-setup.is-dark .mfa-qr { border-color: rgba(245, 220, 138, .35); }
.mfa-setup.is-dark .mfa-steps { color: rgba(255, 255, 255, .82); }
.mfa-setup.is-dark .mfa-steps b { color: #fff; }
.mfa-setup.is-dark .mfa-steps a { color: #f0cd72; }
.mfa-setup.is-dark .mfa-key { color: rgba(255, 255, 255, .62); }
.mfa-setup.is-dark .mfa-key code { background: rgba(255, 255, 255, .08); color: #fff; border: 1px solid rgba(255, 255, 255, .14); }
.auth-legal-foot { display: flex; justify-content: center; gap: 10px; padding: 0 16px 18px; color: rgba(255, 255, 255, .55); font-size: 13px; }
.auth-legal-foot a { color: rgba(255, 255, 255, .8); text-decoration: none; font-weight: 600; }
.auth-legal-foot a:hover { color: #f0cd72; text-decoration: underline; }

/* ---------- orçamento ---------- */
/* página longa: fundo rola junto e os cartões não usam desfoque (desfoque em vários cartões pesa no celular) */
.auth-long .auth-bg { position: absolute; height: 115vh; }
.auth-long .auth-bg::after { background: linear-gradient(180deg, rgba(6, 5, 3, .55), rgba(6, 5, 3, .55) 45%, #0a0806 98%); }
.auth-long .glass { backdrop-filter: none; -webkit-backdrop-filter: none; background: linear-gradient(160deg, rgba(36, 30, 18, .93), rgba(14, 12, 8, .95) 60%, rgba(24, 20, 12, .94)); }
.quote { width: min(860px, 100%); }
.quote-head { text-align: center; margin: 8px auto 26px; max-width: 640px; }
.quote-head .kicker { color: #f0cd72; }
.quote-head .auth-sub { margin-bottom: 0; }
.q-card { padding: clamp(20px, 3.5vw, 34px); margin-bottom: 18px; border-radius: 24px; }
.q-title { display: flex; align-items: center; gap: 12px; margin: 0 0 20px; font-size: 20px; font-weight: 700; color: #fff; }
.q-title span { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: var(--grad-gold); color: #1a1206; font-size: 15px; }
.q-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.q-field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 16px; }
.q-grid .q-field { margin-bottom: 0; }
.q-label { font-size: 14.5px; font-weight: 600; color: #fff; margin-bottom: 8px; display: block; }
.q-field .q-label { margin-bottom: 0; }
.q-label b { color: #f0cd72; }
.q-input { width: 100%; min-height: 50px; padding: 12px 15px; border-radius: 13px; border: 1px solid rgba(255, 255, 255, .16); background: rgba(255, 255, 255, .05); color: #fff; font-size: 16px; }
.q-input::placeholder { color: rgba(255, 255, 255, .45); }
.q-input:focus { outline: none; border-color: rgba(245, 220, 138, .8); box-shadow: 0 0 0 4px rgba(224, 178, 74, .14); }
.q-input[aria-invalid="true"] { border-color: #ff8c80; }
select.q-input { appearance: none; background: rgba(255, 255, 255, .05) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%23f0cd72' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E") right 15px center / 16px no-repeat; }
select.q-input option { background: #17130c; color: #fff; }
textarea.q-input { resize: vertical; line-height: 1.5; }
.q-err { font-size: 13px; color: #ffb4aa; font-weight: 600; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.pick { margin-bottom: 18px; }
.pick-opts { display: flex; flex-wrap: wrap; gap: 8px; }
.pick-opt, .tri-opt { position: relative; cursor: pointer; }
.pick-opt input, .tri-opt input { position: absolute; opacity: 0; pointer-events: none; }
.pick-opt span, .tri-opt span { display: inline-flex; align-items: center; min-height: 42px; padding: 0 16px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .16); background: rgba(255, 255, 255, .04); color: rgba(255, 255, 255, .85); font-size: 14.5px; font-weight: 550; transition: .15s; }
.pick-opt:hover span, .tri-opt:hover span { border-color: rgba(245, 220, 138, .5); }
.pick-opt.is-on span, .tri-opt.is-on span { background: rgba(224, 178, 74, .2); border-color: #f0cd72; color: #fff; }
.pick-opt input:focus-visible + span, .tri-opt input:focus-visible + span { box-shadow: 0 0 0 3px rgba(224, 178, 74, .45); }
.tri-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 22px; margin-bottom: 18px; }
.tri legend { padding: 0; margin-bottom: 8px; font-size: 14.5px; font-weight: 600; color: #fff; }
.tri-opts { display: flex; gap: 6px; }
.tri-opt span { min-height: 38px; padding: 0 13px; font-size: 14px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.q-consent { display: flex; align-items: flex-start; gap: 12px; margin: 8px 4px 10px; color: rgba(255, 255, 255, .8); font-size: 14.5px; cursor: pointer; }
.q-consent input { width: 20px; height: 20px; margin-top: 2px; accent-color: #e0b24a; flex: none; }
.q-consent a { color: #f0cd72; font-weight: 600; }
.q-consent.has-err { color: #ffb4aa; }
.q-submit { margin-top: 18px; }

@media (max-width: 900px) {
  .auth-main { justify-content: center; }
  .auth-bg { background-position: 22% 50%; }
  .auth-bg::after { background: linear-gradient(180deg, rgba(6, 5, 3, .5), rgba(6, 5, 3, .35) 30%, rgba(6, 5, 3, .7)); }
}
@media (max-width: 640px) {
  .auth-top { padding: calc(14px + var(--safe-t)) 16px 14px; }
  .auth-word { width: 118px; }
  .auth-back { padding: 7px 12px; font-size: 13px; }
  .auth-install { width: 36px; height: 36px; padding: 0; justify-content: center; }
  .auth-install span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .auth-main { padding: 6px 16px 32px; }
  .glass { border-radius: 22px; }
  .auth-field { min-height: 70px; padding: 12px 14px; gap: 12px; }
  .auth-field.is-compact { min-height: 60px; padding: 9px 13px; }
  .auth-submit { min-height: 58px; font-size: 17px; }
  .auth-social-btn { flex-direction: column; gap: 4px; min-height: 62px; font-size: 13px; }
  .auth-card .pw-meter { flex-wrap: wrap; gap: 4px 10px; }
  .q-grid, .tri-grid { grid-template-columns: 1fr; }
}
