/* ===== Componente de acesso — medidas copiadas do modal original ===== */
.jp-auth { position: relative; font-family: var(--sans); color: rgba(0,0,0,.88); }
.jp-auth [hidden] { display: none !important; }
.jp-auth__step { position: relative; }
.jp-auth__head { display: flex; flex-direction: column; gap: 32px; margin-bottom: 18px; }
.jp-auth__head h1 { font-family: var(--display); font-weight: 600; font-size: 32px; line-height: 50px; color: rgba(0,0,0,.88); margin: 0; }
.jp-auth__head h4 { font-size: 20px; font-weight: 600; line-height: 28px; margin: 0 0 2px; color: rgba(0,0,0,.88); }
.jp-sec { color: rgba(0,0,0,.45); font-size: 16px; line-height: 1.5625; }
.jp-sec a, .jp-link { color: #1677ff; background: none; border: 0; padding: 0; font: inherit; cursor: pointer; }
.jp-sec a:hover, .jp-link:hover { color: #4096ff; }
.jp-sec strong { color: rgba(0,0,0,.88); font-weight: 600; white-space: nowrap; }

.jp-group { display: flex; height: 40px; }
.jp-group__addon { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-width: 90px; flex: none; white-space: nowrap; padding: 0 11px; font-size: 16px; background: rgba(0,0,0,.02); border: 1px solid #d9d9d9; border-right: 0; border-radius: 8px 0 0 8px; color: rgba(0,0,0,.88); }
.jp-group__addon svg { color: rgba(0,0,0,.25); }
.jp-input { width: 100%; min-width: 0; height: 40px; padding: 7px 11px; font: inherit; font-size: 16px; color: rgba(0,0,0,.88); background: #fff; border: 1px solid #d9d9d9; border-radius: 8px; outline: none; transition: border-color .2s, box-shadow .2s; }
.jp-group .jp-input { border-radius: 0 8px 8px 0; }
.jp-input:hover { border-color: #4096ff; }
.jp-input:focus { border-color: #1677ff; box-shadow: 0 0 0 2px rgba(5,145,255,.1); }
.jp-input::placeholder { color: rgba(0,0,0,.25); }
.jp-group.is-invalid .jp-input, .jp-group.is-invalid .jp-group__addon, .jp-input.is-invalid { border-color: #ff4d4f; }
.jp-input--otp { margin-top: 6px; }
.jp-input:disabled { background: rgba(0,0,0,.04); cursor: not-allowed; }

.jp-auth__erro { color: #ff4d4f; font-size: 14px; line-height: 22px; min-height: 22px; margin: 2px 0 0; }
.jp-btn { display: flex; align-items: center; justify-content: center; width: 100%; height: 40px; padding: 0 15px; margin-top: 2px; border: 0; border-radius: 8px; background: #1677ff; color: #fff; font: inherit; font-size: 16px; cursor: pointer; box-shadow: 0 2px 0 rgba(5,145,255,.1); transition: background .2s; }
.jp-btn:hover { background: #4096ff; }
.jp-btn:disabled { background: #91caff; cursor: not-allowed; }
.jp-auth__foot { margin-top: 24px; }

.jp-auth__voltar { position: absolute; left: -8px; top: -36px; width: 32px; height: 32px; display: grid; place-items: center; border: 0; border-radius: 6px; background: transparent; color: rgba(0,0,0,.88); cursor: pointer; }
.jp-auth__voltar:hover { background: rgba(0,0,0,.06); }
.jp-auth__reenvio { font-size: 16px; text-align: center; color: rgba(0,0,0,.88); margin: 4px 0 0; }
.jp-auth__reenvio--esq { text-align: left; color: rgba(0,0,0,.45); }
.jp-auth__dev { background: #fffbe6; border: 1px solid #ffe58f; border-radius: 8px; padding: 10px 12px; font-size: 14px; margin: -4px 0 16px; }
.jp-auth__dev code { font-size: 16px; font-weight: 700; letter-spacing: 2px; }
.jp-auth__carregando { position: absolute; inset: -8px; background: rgba(255,255,255,.6); display: grid; place-items: center; z-index: 2; }
.jp-auth__carregando span { width: 32px; height: 32px; border: 3px solid #bae0ff; border-top-color: #1677ff; border-radius: 50%; animation: jp-girar .8s linear infinite; }
@keyframes jp-girar { to { transform: rotate(360deg); } }

/* ===== Modal (landing) ===== */
.jp-modal[hidden] { display: none; }
.jp-modal { position: fixed; inset: 0; z-index: 1000; overflow-y: auto; }
.jp-modal__mask { position: fixed; inset: 0; background: rgba(0,0,0,.45); animation: jp-fade .2s ease-out; }
.jp-modal__box { position: relative; width: 540px; max-width: calc(100vw - 32px); margin: 100px auto 40px; background: #fff; border-radius: 24px; padding: 48px 32px; box-shadow: 0 6px 16px rgba(0,0,0,.08), 0 3px 6px -4px rgba(0,0,0,.12), 0 9px 28px 8px rgba(0,0,0,.05); animation: jp-zoom .25s cubic-bezier(.08,.82,.17,1); }
.jp-modal__fechar { position: absolute; top: 12px; right: 12px; width: 32px; height: 32px; display: grid; place-items: center; border: 0; border-radius: 4px; background: transparent; color: rgba(0,0,0,.45); cursor: pointer; transition: background .2s, color .2s; }
.jp-modal__fechar:hover { background: rgba(0,0,0,.06); color: rgba(0,0,0,.88); }
body.jp-sem-rolagem { overflow: hidden; }
@keyframes jp-fade { from { opacity: 0; } }
@keyframes jp-zoom { from { opacity: 0; transform: scale(.85); } }
@keyframes jp-subir { from { transform: translateY(100%); } }

@media (max-width: 767px) {
  /* No celular o original vira uma folha que sobe do rodapé */
  .jp-modal__box { position: fixed; left: 0; right: 0; bottom: 0; width: 100%; max-width: none; margin: 0; max-height: 92vh; overflow-y: auto; border-radius: 24px 24px 0 0; padding: 48px 20px 32px; animation: jp-subir .3s cubic-bezier(.08,.82,.17,1); }
}

/* ===== Página entrar.html (mesmo cartão, sem máscara) ===== */
.auth-page { background: var(--gray); min-height: 100vh; margin: 0; }
.auth-top { max-width: 1248px; margin: 0 auto; padding: 24px; }
.auth-top img { width: 170px; height: auto; }
.auth-page .jp-modal__box { animation: none; margin-top: 40px; }
@media (max-width: 767px) {
  .auth-page .jp-modal__box { position: static; border-radius: 24px; width: auto; margin: 16px; max-height: none; }
}

.jp-rotulo { display: grid; gap: 6px; font-size: 14px; font-weight: 500; color: rgba(0,0,0,.75); }
.jp-auth__step { display: grid; gap: 12px; }
.jp-auth__foot { display: grid; gap: 6px; }
