:root{
  --font-typewriter:"Cutive Mono","Courier New",Courier,monospace;
  --font-title:"Special Elite",serif;
}

*{box-sizing:border-box}

html,
body{
  margin:0;
  min-height:100%;
  background:#050302;
}

body{
  font-family:var(--font-typewriter);
  overflow-x:hidden;
}

.sr-only{
  position:absolute;
  width:1px;
  height:1px;
  padding:0;
  margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
  border:0;
}

.restricted-access-page{
  position:relative;
  width:100%;
  min-height:100svh;
  overflow-x:hidden;
  background:#050302;
}

.restricted-access-art{
  position:relative;
  width:100%;
  min-height:100svh;
  overflow:hidden;
  background-image:url("/assets/rc4/img/area-restrita/acesso-area-restrita-desktop-v3-cacheclear-20260802-1656.png?v=20260802_area_v3_alignment_05");
  background-repeat:no-repeat;
  background-position:center center;
  background-size:cover;
}

.restricted-access-form{
  position:absolute;
  left:50.7%;
  top:42.05%;
  width:min(23vw,445px);
  min-width:0;
  transform:translateX(-50%);
}

.restricted-access-field{
  position:relative;
  width:100%;
  height:clamp(42px,3.05vw,58px);
}

.restricted-access-field--key{
  margin-top:clamp(38px,2.8vw,54px);
}

.restricted-access-input{
  width:100%;
  height:clamp(44px,4.8vw,58px);
  box-sizing:border-box;
  background:rgba(255,248,222,.06);
  border:1px solid transparent;
  color:#21160e;
  font-family:var(--font-typewriter);
  font-size:clamp(15px,1vw,18px);
  letter-spacing:.04em;
  padding:10px 14px;
  outline:none;
  border-radius:2px;
}

.restricted-access-input--key{
  padding-right:48px;
}

.restricted-access-input:focus{
  border-color:rgba(111,65,28,.45);
  background:rgba(255,248,222,.13);
  box-shadow:inset 0 0 0 1px rgba(111,65,28,.16),0 0 0 2px rgba(255,216,139,.1);
}

.restricted-access-key-toggle{
  position:absolute;
  top:50%;
  right:8px;
  width:44px;
  min-width:44px;
  height:44px;
  min-height:44px;
  transform:translateY(-50%);
  border:0;
  border-radius:0;
  background:transparent;
  color:rgba(126,83,43,.9);
  font-family:Arial,sans-serif;
  font-size:19px;
  letter-spacing:0;
  cursor:pointer;
  display:grid;
  place-items:center;
}

.restricted-access-key-toggle:hover,
.restricted-access-key-toggle:focus-visible{
  outline:0;
  background:transparent;
  color:rgba(166,111,57,.98);
}

.restricted-access-key-icon{
  display:block;
  width:22px;
  height:22px;
  fill:currentColor;
  opacity:.88;
  pointer-events:none;
  transition:opacity .18s ease,color .18s ease;
}

.restricted-access-feedback{
  min-height:20px;
  margin:8px 0 0;
  font-family:var(--font-typewriter);
  font-size:13px;
  line-height:1.35;
  color:#7e1f18;
  text-align:left;
  font-weight:700;
}

.restricted-access-error{
  position:absolute;
  left:50%;
  top:58%;
  z-index:20;
  width:min(calc(100% - 40px),430px);
  box-sizing:border-box;
  padding:22px 24px;
  transform:translate(-50%,-50%);
  background:rgba(10,6,3,.88);
  border:1px solid rgba(185,131,57,.55);
  box-shadow:0 18px 42px rgba(0,0,0,.48),inset 0 0 24px rgba(120,72,30,.08);
  color:#ead9b8;
  text-align:center;
  font-family:var(--font-typewriter);
  opacity:0;
  visibility:hidden;
  pointer-events:none;
  transition:opacity 220ms ease,visibility 0s linear 220ms;
}

.restricted-access-error.is-visible{
  opacity:1;
  visibility:visible;
  pointer-events:auto;
  transition-delay:0s;
}

.restricted-access-error strong{
  display:block;
  margin-bottom:12px;
  color:#c9a15f;
  font-size:clamp(17px,1.3vw,21px);
  letter-spacing:.09em;
}

.restricted-access-error span{
  display:block;
  font-size:clamp(14px,1vw,17px);
  line-height:1.55;
}

.restricted-access-error button{
  margin-top:18px;
  min-width:130px;
  min-height:42px;
  padding:10px 18px;
  background:rgba(112,29,22,.9);
  border:1px solid rgba(207,153,76,.42);
  color:#f0ddbb;
  font-family:var(--font-typewriter);
  letter-spacing:.07em;
  cursor:pointer;
}

.restricted-access-submit{
  width:100%;
  min-height:clamp(50px,3.55vw,68px);
  margin-top:4px;
  background:transparent;
  border:0;
  color:transparent;
  cursor:pointer;
  border-radius:4px;
}

.restricted-access-submit:hover,
.restricted-access-submit:focus-visible{
  background:rgba(255,210,120,.08);
  box-shadow:inset 0 0 0 2px rgba(255,216,139,.28),0 0 14px rgba(117,45,28,.22);
  outline:none;
}

.restricted-access-form.is-validating .restricted-access-submit{
  animation:restrictedValidatePulse 1s ease-in-out infinite;
  pointer-events:none;
}

@keyframes restrictedValidatePulse{
  0%,100%{box-shadow:inset 0 0 0 1px rgba(255,216,139,.08),0 0 0 rgba(117,45,28,0)}
  50%{box-shadow:inset 0 0 0 2px rgba(255,216,139,.24),0 0 18px rgba(117,45,28,.2)}
}

.restricted-access-secondary-actions{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:20px;
  margin-top:29px;
}

.restricted-access-secondary{
  display:block;
  min-height:clamp(50px,3.55vw,68px);
  background:transparent;
  border:0;
  color:transparent;
  border-radius:4px;
}

.restricted-access-secondary:hover,
.restricted-access-secondary:focus-visible{
  background:rgba(255,210,120,.07);
  box-shadow:inset 0 0 0 2px rgba(111,65,28,.24);
  outline:none;
}

body:has(.restricted-access-form.is-validating) .restricted-access-page{
  animation:restrictedPageSubmit .55s ease .2s forwards;
}

@keyframes restrictedPageSubmit{
  to{opacity:.82}
}

@media (max-width:767px){
  .restricted-access-art{
    min-height:100svh;
    background-image:url("/assets/rc4/img/area-restrita/acesso-area-restrita-mobile.png?v=20260802_area_v2_1136");
    background-size:cover;
    background-position:center top;
    overflow-y:auto;
  }

  .restricted-access-form{
    left:50%;
    top:42.85%;
    width:49%;
    min-width:0;
    transform:translateX(-50%);
  }

  .restricted-access-field--key{
    margin-top:34px;
  }

  .restricted-access-field{
    height:clamp(48px,8.1vw,56px);
  }

  .restricted-access-input{
    height:clamp(48px,8.1vw,56px);
    font-size:16px;
  }

  .restricted-access-feedback{
    min-height:24px;
    margin-top:8px;
    font-size:12px;
  }

  .restricted-access-error{
    top:55%;
    width:calc(100% - 48px);
    max-width:380px;
    padding:20px 18px;
  }

  .restricted-access-submit{
    min-height:58px;
    margin-top:-4px;
  }

  .restricted-access-secondary-actions{
    gap:9px;
    margin-top:13px;
  }

  .restricted-access-secondary{
    min-height:58px;
  }
}

@media (min-width:768px) and (max-width:900px) and (orientation:portrait){
  .restricted-access-art{
    background-position:66.5% center;
  }

  .restricted-access-form{
    left:50%;
    width:55vw;
    min-width:0;
  }

  .restricted-access-field--key{
    margin-top:47px;
  }

  .restricted-access-input{
    height:52px;
  }

  .restricted-access-submit,
  .restricted-access-secondary{
    min-height:64px;
  }

  .restricted-access-secondary-actions{
    gap:18px;
    margin-top:27px;
  }
}

@media (prefers-reduced-motion:reduce){
  .restricted-access-form.is-validating .restricted-access-submit,
  body:has(.restricted-access-form.is-validating) .restricted-access-page{
    animation:none!important;
  }
}

/* Transparent functional overlays: the approved artwork provides all visible UI. */
.restricted-access-input,
.restricted-access-input:hover,
.restricted-access-input:focus,
.restricted-access-input:focus-visible,
.restricted-access-input:active{
  display:block;
  width:100%;
  height:100%;
  box-sizing:border-box;
  margin:0;
  padding:8px 14px;
  background:transparent!important;
  background-color:transparent!important;
  background-image:none!important;
  border:0!important;
  border-radius:0!important;
  outline:0!important;
  box-shadow:none!important;
  appearance:none;
  -webkit-appearance:none;
  color:#21160e;
  caret-color:#6d261d;
  font-family:var(--font-typewriter);
  font-size:inherit;
  letter-spacing:.05em;
  text-decoration:none;
}

.restricted-access-input:-webkit-autofill,
.restricted-access-input:-webkit-autofill:hover,
.restricted-access-input:-webkit-autofill:focus,
.restricted-access-input:-webkit-autofill:active{
  -webkit-text-fill-color:#21160e!important;
  caret-color:#6d261d!important;
  -webkit-box-shadow:0 0 0 1000px transparent inset!important;
  box-shadow:0 0 0 1000px transparent inset!important;
  background-color:transparent!important;
  background-image:none!important;
  -webkit-background-clip:text!important;
  background-clip:text!important;
  transition:background-color 9999s ease-out 0s,color 9999s ease-out 0s;
}

.restricted-access-key-toggle,
.restricted-access-key-toggle:hover,
.restricted-access-key-toggle:focus,
.restricted-access-key-toggle:focus-visible,
.restricted-access-key-toggle:active{
  background:transparent!important;
  border:0!important;
  outline:0!important;
  box-shadow:none!important;
  color:rgba(126,83,43,.9)!important;
}

.restricted-access-key-toggle:hover .restricted-access-key-icon,
.restricted-access-key-toggle:focus-visible .restricted-access-key-icon{
  opacity:1;
}

.restricted-access-submit,
.restricted-access-submit:hover,
.restricted-access-submit:focus,
.restricted-access-submit:focus-visible,
.restricted-access-submit:active,
.restricted-access-secondary,
.restricted-access-secondary:hover,
.restricted-access-secondary:focus,
.restricted-access-secondary:focus-visible,
.restricted-access-secondary:active{
  background:transparent!important;
  background-color:transparent!important;
  background-image:none!important;
  border:0!important;
  outline:0!important;
  box-shadow:none!important;
  color:transparent!important;
  cursor:pointer;
}

.restricted-access-form.is-validating .restricted-access-submit{
  animation:none!important;
}

body:has(.restricted-access-form.is-validating) .restricted-access-page{
  animation:none!important;
}

.restricted-access-feedback{
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
  color:#7e1f18;
  font-family:var(--font-typewriter);
}

/* Arquivo Vivo shell: scoped restore for the authenticated restricted page. */
.restricted-shell{
  position:relative;
  min-height:100svh;
  display:grid;
  align-items:end;
  justify-items:center;
  padding:clamp(18px,3vw,42px);
  background-image:url("/assets/rc4/img/area-restrita/area-restrita-01.png");
  background-repeat:no-repeat;
  background-position:center center;
  background-size:cover;
  color:#ead9b8;
}

.restricted-paper{
  position:relative;
  width:min(92vw,760px);
  padding:0;
  border:0;
  background:transparent;
  box-shadow:none;
  overflow:visible;
}

.orion-stamp{
  display:none;
}

.restricted-paper .eyebrow{
  display:none;
}

.restricted-paper h1{
  display:none;
}

.validated-box{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  width:max-content;
  max-width:100%;
  margin:0 auto 14px;
  padding:10px 14px;
  border:1px solid rgba(185,131,57,.38);
  background:rgba(10,6,3,.62);
  color:#ead9b8;
  text-align:center;
}

.validated-box p{
  margin:0;
  font-family:var(--font-typewriter);
  font-size:clamp(11px,1.1vw,13px);
  line-height:1.45;
}

.validated-box p:nth-child(n+3){
  display:none;
}

.validated-box strong{
  font-size:1em;
  letter-spacing:.08em;
  color:#f0ddbb;
}

.secondary-actions{
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap:14px;
  margin-top:0;
}

.secondary-link{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:44px;
  padding:12px 18px;
  border:1px solid rgba(207,153,76,.42);
  color:#f0ddbb;
  background:rgba(10,6,3,.68);
  font-family:var(--font-typewriter);
  font-size:14px;
  font-weight:700;
  letter-spacing:.04em;
  text-decoration:none;
}

.secondary-link:hover,
.secondary-link:focus-visible{
  background:rgba(10,6,3,.78);
  outline:1px solid rgba(207,153,76,.55);
  outline-offset:2px;
}

.restricted-paper .eyebrow{
  margin:0;
  font-family:var(--font-typewriter);
  font-size:clamp(12px,1.4vw,15px);
  text-transform:uppercase;
  color:#ead9b8;
}

@keyframes orionStampFloat{
  0%,100%{
    transform:translate3d(0,0,0) rotate(-6deg);
    filter:drop-shadow(0 6px 5px rgba(0,0,0,.22));
  }
  50%{
    transform:translate3d(0,-8px,0) rotate(-4.8deg);
    filter:drop-shadow(0 11px 8px rgba(0,0,0,.17));
  }
}

@media (max-width:767px){
  .restricted-shell{
    align-items:end;
    padding:18px 12px;
  }

  .restricted-paper{
    width:100%;
  }

  .validated-box{
    width:100%;
    justify-content:center;
    padding:10px 12px;
  }

  .secondary-actions{
    display:grid;
    grid-template-columns:1fr;
  }
}
