/* Local adaptation of Rocontec's AuthLayout, glass and brand transition. */
[hidden] { display: none !important; }
html[data-local-access] { background: #2b4767; }
html[data-local-access] body { background: #2b4767; overflow: hidden; }
#access-root { position: fixed; inset: 0; z-index: 80; overflow-y: auto; overscroll-behavior-y: contain; }
.rs-auth-layout { --auth-control-radius: var(--rs-radius-control); position: relative; min-height: 100dvh; color: #1d2127; }
.rs-auth-background { position: fixed; inset: 0; width: 100%; height: 100lvh; min-height: 100%; object-fit: cover; object-position: center; pointer-events: none; opacity: 0; transition: opacity 500ms ease-out; }
.rs-auth-background[data-loaded="true"] { opacity: 1; }
.rs-auth-shade { position: fixed; inset: 0; pointer-events: none; background: linear-gradient(135deg,rgba(12,20,28,.62),rgba(12,20,28,.34)); }
.rs-auth-safe { position: relative; z-index: 1; display: flex; flex-direction: column; width: 100%; max-width: 500px; min-height: 100dvh; margin: 0 auto; padding: calc(32px + env(safe-area-inset-top)) max(24px,env(safe-area-inset-right)) calc(32px + env(safe-area-inset-bottom)) max(24px,env(safe-area-inset-left)); }
.rs-auth-card { position: relative; flex-shrink: 0; width: 100%; margin: auto 0; overflow: hidden; border-radius: 28px; box-shadow: 0 24px 64px rgb(0 0 0 / 18%); }
.rs-auth-frost { position: absolute; inset: 0; border-radius: inherit; clip-path: inset(0 round 28px); pointer-events: none; background: linear-gradient(135deg,rgb(255 255 255 / 75%),rgb(255 255 255 / 65%) 55%,rgb(255 255 255 / 71%)); -webkit-backdrop-filter: blur(8px) saturate(120%); backdrop-filter: blur(8px) saturate(120%); }
.rs-auth-card-content { position: relative; z-index: 1; padding: 32px; }
.rs-auth-brand { display: flex; justify-content: center; }
.rs-auth-brand a { display: inline-flex; align-items: center; min-height: 48px; padding: 0 12px; border-radius: var(--auth-control-radius); }
.rs-auth-brand img { width: 164px; height: auto; object-fit: contain; }
#access-step { padding-top: 28px; }
.rs-auth-heading { text-align: center; }
.rs-auth-heading h1 { font-size: 34px; font-weight: 700; line-height: 1.12; letter-spacing: -.04em; outline: none; }
.rs-auth-heading p { margin: 12px auto 0; font-size: 14px; line-height: 20px; color: #434b56; overflow-wrap: anywhere; }
.rs-auth-heading strong { font-weight: 600; }
.rs-auth-controls { margin-top: 24px; }
.rs-auth-controls form { display: flex; flex-direction: column; gap: 20px; }
.rs-auth-controls label { display: block; margin: 0 0 8px 4px; color: #303944; font-size: 13px; font-weight: 600; }
.rs-auth-field { width: 100%; height: 48px; min-height: 48px; border: 1px solid transparent; border-radius: var(--auth-control-radius); background: #dfe3e7; color: #1d2127; caret-color: #c42329; padding: 0 14px; font-size: 16px; outline: none; box-shadow: none; }
.rs-auth-field:focus-visible { border-color: #c42329; box-shadow: none; outline: none; }
.rs-auth-field[aria-invalid="true"] { border-color: rgb(196 35 41 / 55%); }
.rs-auth-field:is(:autofill,:-webkit-autofill) { box-shadow: 0 0 0 1000px #dfe3e7 inset; -webkit-text-fill-color: #1d2127; }
.rs-auth-email { position: relative; }
.rs-auth-email svg { position: absolute; left: 14px; top: 15px; width: 18px; height: 18px; pointer-events: none; color: #89939f; }
.rs-auth-email input { padding-left: 44px; }
.rs-auth-primary { display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; height: 48px; min-height: 48px; border: 0; border-radius: var(--auth-control-radius); padding: 0 20px; background: #c42329; color: white; font-size: 14px; font-weight: 700; box-shadow: 0 8px 20px rgb(196 35 41 / 18%); cursor: pointer; transition: background-color 150ms, opacity 150ms; }
.rs-auth-primary svg { width: 18px; height: 18px; }
.rs-auth-primary:not(:disabled):hover { background: #a91e24; }
.rs-auth-primary:disabled { opacity: .5; cursor: default; }
.rs-auth-primary .rs-loading-dots { color: white; }
.rs-auth-error { color: #a91e24; font-size: 13px; line-height: 20px; }
.rs-auth-error:not(:empty) { margin-top: 8px; animation: rs-auth-message 160ms ease-out both; }
.rs-auth-back { display: inline-flex; align-items: center; min-height: 44px; margin: 0 0 12px; gap: 8px; background: transparent; border: 0; border-radius: var(--rs-radius-item); color: #434b56; font-size: 13px; font-weight: 600; }
.rs-auth-back:hover { color: #1d2127; }
.rs-auth-otp { position: relative; width: 100%; }
.rs-auth-slots { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); gap: 12px; }
.rs-auth-slots span { display: grid; place-items: center; height: 56px; border: 1px solid transparent; border-radius: var(--auth-control-radius); background: #dfe3e7; font-size: 18px; font-weight: 700; }
.rs-auth-slots span[data-active] { border-color: #c42329; }
.rs-auth-otp:has([aria-invalid="true"]) .rs-auth-slots span { border-color: rgb(196 35 41 / 55%); }
.rs-auth-otp input { position: absolute; inset: 0; width: 100%; height: 100%; min-height: 0; padding: 0; border: 0 !important; outline: none !important; box-shadow: none !important; background: transparent !important; color: transparent !important; -webkit-text-fill-color: transparent; caret-color: transparent; font-size: 16px; opacity: 1; cursor: text; }
.rs-auth-otp input::selection { color: transparent; background: transparent; }
.rs-auth-safe footer { display: flex; align-items: flex-end; justify-content: center; min-height: 32px; margin-top: 20px; font-size: 12px; text-align: center; color: rgb(255 255 255 / 70%); text-shadow: 0 1px 8px rgb(0 0 0 / 55%); }
.rs-auth-layout :is(a,button,summary):focus-visible { outline: 2px solid rgb(196 35 41 / 40%); outline-offset: 3px; }
.rs-auth-brand,.rs-auth-heading>*,.rs-auth-controls>:is(a,p,button,.rs-auth-success),.rs-auth-controls form>div,.rs-auth-controls form>button { animation: rs-auth-content-enter 340ms cubic-bezier(.22,1,.36,1) var(--auth-delay,160ms) backwards; }
.rs-auth-brand { --auth-delay: 0ms; animation-duration: 380ms; }
.rs-auth-heading h1 { --auth-delay: 80ms; }
.rs-auth-heading p { --auth-delay: 120ms; }
.rs-auth-controls form>:nth-child(2) { --auth-delay: 200ms; }
.rs-auth-controls form>:nth-child(3) { --auth-delay: 240ms; }
.rs-auth-controls form>:nth-child(n+4) { --auth-delay: 280ms; }
.rs-auth-controls form>button { --auth-delay: 320ms; }
.rs-auth-controls form>button:nth-child(2) { --auth-delay: 240ms; }
.rs-auth-back + form>div:first-child { --auth-delay: 200ms; }
.rs-auth-back + form>button:nth-child(2) { --auth-delay: 280ms; }
#access-root[inert] .rs-auth-brand,#access-root[inert] #access-step * { animation-play-state: paused; }
/* As in the reference, the final opacity comes from the actual enabled/disabled state. */
@keyframes rs-auth-content-enter { from { opacity: 0; translate: 0 8px; } to { translate: 0 0; } }
@keyframes rs-auth-message { from { opacity: 0; } to { opacity: 1; } }
.rs-loading-dots { display: inline-flex; height: 20px; min-width: 30px; align-items: center; justify-content: center; gap: 4px; color: #c42329; }
.rs-loading-dots>span { width: 5px; height: 5px; flex: 0 0 5px; border-radius: 50%; background: currentColor; animation: rs-loading-bounce 900ms ease-in-out -900ms infinite both; }
.rs-loading-dots>span:nth-child(2) { animation-delay: -600ms; }
.rs-loading-dots>span:nth-child(3) { animation-delay: -300ms; }
.rs-brand-cover { --brand-radius: clamp(18px,2vw,28px); position: fixed; inset: calc(-1 * var(--brand-radius)) 0; z-index: 1000; display: grid; place-items: center; overflow: hidden; border-radius: var(--brand-radius); background: white; isolation: isolate; }
.rs-brand-content { display: flex; flex-direction: column; align-items: center; transform: translateY(-12px); }
.rs-brand-content>img { width: clamp(64px,8vw,88px); height: auto; }
.rs-brand-content .rs-loading-dots { min-height: 48px; margin-top: 22px; gap: 6px; }
.rs-brand-content .rs-loading-dots>span { width: 6px; height: 6px; flex-basis: 6px; }
.rs-brand-cover[data-phase="entering"] { animation: rs-brand-cover 400ms cubic-bezier(.22,1,.36,1) both; }
.rs-brand-cover[data-phase="leaving"] { animation: rs-brand-uncover 450ms cubic-bezier(.65,0,.35,1) both; pointer-events: none; }
.rs-brand-cover[data-phase="entering"] img { animation: rs-brand-logo 380ms ease-out 80ms backwards; }
@keyframes rs-loading-bounce { 0%,100% { transform: translateY(0); opacity: .4; } 50% { transform: translateY(-4px); opacity: 1; } }
@keyframes rs-brand-cover { from { transform: translateY(100%); } to { transform: translateY(0); } }
@keyframes rs-brand-uncover { from { transform: translateY(0); } to { transform: translateY(-100%); } }
@keyframes rs-brand-logo { from { opacity: 0; transform: scale(.985); } to { opacity: 1; transform: scale(1); } }
.rs-auth-failure { max-width: 440px; margin: 20vh auto 0; padding: 24px; border-radius: 20px; background: white; }
.rs-auth-failure p { margin: 16px 0; }
@media (max-width: 1023px) {
  .rs-brand-cover[data-phase="entering"] { animation-duration: 620ms; }
  .rs-brand-cover[data-phase="leaving"] { animation-duration: 720ms; }
  .rs-brand-cover[data-phase="entering"] img { animation-duration: 460ms; animation-delay: 110ms; }
}
@media (max-width: 639px) {
  .rs-auth-safe { padding: calc(20px + env(safe-area-inset-top)) max(16px,env(safe-area-inset-right)) calc(20px + env(safe-area-inset-bottom)) max(16px,env(safe-area-inset-left)); }
  .rs-auth-card-content { padding: 24px; }
  #access-step { padding-top: 24px; }
  .rs-auth-heading h1 { font-size: 30px; }
  .rs-auth-slots { gap: 8px; }
  .rs-auth-slots span { height: 48px; }
}
@media (prefers-reduced-motion: reduce) {
  #access-root * { animation: none !important; transition: none !important; }
  .rs-loading-dots>span { animation: none; opacity: .65; }
  .rs-brand-cover[data-phase="entering"],.rs-brand-cover[data-phase="leaving"] { animation-name: rs-auth-message; animation-duration: 120ms; }
  .rs-brand-cover[data-phase="leaving"] { animation-direction: reverse; }
  .rs-brand-cover img { animation: none !important; }
}

.rs-auth-filter { position: absolute; }
.rs-auth-refraction { position: absolute; inset: 0; border-radius: inherit; clip-path: inset(0 round 28px); pointer-events: none; -webkit-backdrop-filter: url("#rs-auth-refraction"); backdrop-filter: url("#rs-auth-refraction"); }
/* The brand cover must never uncover a page before its entrance is prepared. */
#app[data-access-entering] { visibility: hidden; }
#app[data-access-entering] * { animation-play-state: paused !important; }
#app:not([data-motion-ready])[data-access-reveal] :is(.rs-brand,.rs-mobile-brand,.rs-header-work,.rs-header-label,.rs-header-actions,.rs-navigation,.rs-page-heading,.rs-metrics,.rs-users-summary) { animation: rs-auth-content-enter 380ms cubic-bezier(.22,1,.36,1) var(--entry-delay,0ms) backwards; }
#app:not([data-motion-ready])[data-access-reveal] .rs-navigation { --entry-delay: 80ms; }
#app:not([data-motion-ready])[data-access-reveal] .rs-page-heading { --entry-delay: 120ms; }
#app:not([data-motion-ready])[data-access-reveal] :is(.rs-metrics,.rs-users-summary) { --entry-delay: 200ms; }
@media (prefers-reduced-motion: reduce) {
  #app:not([data-motion-ready])[data-access-reveal] * { animation: none !important; }
}

/* Textos e ações da autenticação original; os envios permanecem locais. */
.rs-auth-back svg { width: 16px; height: 16px; flex-shrink: 0; }
.rs-auth-field::placeholder { color: #94a3b8; }
.rs-auth-email svg { color: #94a3b8; }
.rs-auth-help { margin-top: 28px; font-size: 13px; line-height: 20px; text-align: center; color: #434b56; --auth-delay: 360ms; }
.rs-auth-help :is(a,button) { display: inline-flex; align-items: center; min-height: 44px; border: 0; background: transparent; padding: 0 4px; color: #a91e24; font-weight: 700; text-decoration: none; text-underline-offset: 4px; }
.rs-auth-help :is(a,button):hover { color: #8f1a20; text-decoration: underline; }
#access-code-form { gap: 24px; }
#access-code-form label { margin-left: 0; margin-bottom: 10px; }
.rs-auth-error[data-success] { color: #17523d; }
.rs-auth-request-back { margin-bottom: 24px; }
#access-request-form { gap: 16px; }
#access-request-form label { margin-left: 0; }
#access-request-form .rs-auth-error { padding-left: 4px; font-size: 12px; font-weight: 500; }
#access-request-form .rs-auth-error:empty { display: none; }
.rs-auth-heading .rs-auth-eyebrow { margin: 0; color: #c42329; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.rs-auth-eyebrow + h1 { margin-top: 12px; }
.rs-auth-success { padding: 24px; border: 1px solid #a7f3d0; border-radius: var(--rs-radius-panel); background: white; box-shadow: 0 16px 45px rgb(16 24 40 / 8%); }
.rs-auth-success > div { display: flex; align-items: flex-start; gap: 16px; }
.rs-auth-success-icon { display: grid; place-items: center; width: 44px; height: 44px; flex-shrink: 0; border-radius: var(--rs-radius-control); background: #ecfdf5; color: #047857; }
.rs-auth-success-icon svg { width: 20px; height: 20px; }
.rs-auth-success h2 { font-size: 16px; line-height: 24px; font-weight: 700; }
.rs-auth-success div p { margin-top: 6px; font-size: 14px; line-height: 24px; color: #64748b; }
.rs-auth-success .rs-auth-request-status { display: flex; align-items: center; gap: 8px; margin-top: 20px; padding: 12px 14px; border-radius: var(--rs-radius-control); background: #fffbeb; color: #92400e; font-size: 12px; font-weight: 600; }
.rs-auth-request-status svg { width: 16px; height: 16px; flex-shrink: 0; }
.rs-auth-return { margin-top: 24px; background: #1d2127; box-shadow: none; }
.rs-auth-return:hover { background: #30363e; }
.rs-auth-secondary { display: block; width: 100%; min-height: 44px; margin-top: 8px; border: 0; border-radius: var(--rs-radius-control); background: transparent; color: #434b56; font-size: 12px; font-weight: 600; }
.rs-auth-secondary:hover { background: rgb(29 33 39 / 6%); color: #1d2127; }
#access-request-form > div:nth-child(2) { --auth-delay: 200ms; }
#access-request-form > div:nth-child(3) { --auth-delay: 240ms; }
#access-request-form > div:nth-child(4) { --auth-delay: 280ms; }
#access-request-form > button { --auth-delay: 320ms; }
@media (min-width: 1024px) { .rs-auth-field { font-size: 15px; } }
@media (max-width: 639px) { .rs-auth-success { padding: 20px; } }
