.login-page {
  min-height: 100vh;
  padding: 0 !important;
  overflow-x: hidden;
  background: #05070b;
}

.login-page .topbar {
  display: none;
}

.login-page .container {
  width: 100%;
  max-width: none;
  min-height: 100vh;
  margin: 0;
  padding: 0;
}

.login-page .messages {
  position: fixed;
  top: 18px;
  left: 50%;
  z-index: 100;
  width: min(560px, calc(100% - 32px));
  transform: translateX(-50%);
}

.login-hero {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  overflow: hidden;
  background-color: #05070b;
}

.login-hero::before {
  content: "";
  position: absolute;
  inset: -3%;
  z-index: -3;
  background-image: var(--login-background);
  background-position: 55% 34%;
  background-size: cover;
  background-repeat: no-repeat;
  filter: saturate(.78) contrast(1.08);
  transform: scale(1.035);
}

.login-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(3, 6, 12, .96) 0%, rgba(3, 6, 12, .90) 28%, rgba(3, 6, 12, .58) 55%, rgba(3, 6, 12, .28) 100%),
    linear-gradient(180deg, rgba(3, 6, 12, .18) 0%, rgba(3, 6, 12, .12) 60%, rgba(3, 6, 12, .80) 100%);
}

.login-hero__content {
  width: min(1280px, 100%);
  min-height: 100vh;
  margin: 0 auto;
  padding: 48px clamp(24px, 5vw, 72px);
  display: grid;
  grid-template-columns: minmax(340px, 480px) minmax(260px, 1fr);
  gap: clamp(36px, 7vw, 96px);
  align-items: center;
}

.login-panel {
  position: relative;
  padding: clamp(26px, 4vw, 42px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 28px;
  background:
    linear-gradient(145deg, rgba(19, 25, 38, .91), rgba(8, 12, 21, .82));
  box-shadow:
    0 32px 90px rgba(0, 0, 0, .48),
    inset 0 1px 0 rgba(255, 255, 255, .08);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.login-panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(244, 185, 37, .85), transparent);
}

.login-brand {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 36px;
}

.login-brand__mark {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  border: 1px solid rgba(244, 185, 37, .45);
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(244, 185, 37, .23), rgba(244, 185, 37, .07));
  box-shadow: 0 10px 28px rgba(244, 185, 37, .12);
}

.login-brand__mark svg {
  width: 25px;
  fill: #f4b925;
}

.login-brand strong,
.login-brand small {
  display: block;
}

.login-brand strong {
  color: #fff;
  font-size: 1.05rem;
  letter-spacing: .01em;
}

.login-brand small {
  margin-top: 3px;
  color: #8f9ab0;
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.login-heading {
  margin-bottom: 27px;
}

.login-eyebrow {
  margin: 0 0 10px;
  color: #f4b925;
  font-size: .76rem;
  font-weight: 900;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.login-heading h1 {
  max-width: 390px;
  margin: 0 0 13px;
  color: #fff;
  font-size: clamp(2.25rem, 4vw, 3.5rem);
  line-height: .98;
  letter-spacing: -.045em;
}

.login-heading > p:last-child {
  max-width: 390px;
  margin: 0;
  color: #a8b2c4;
  font-size: .98rem;
  line-height: 1.65;
}

.login-alert {
  display: grid;
  gap: 4px;
  margin-bottom: 18px;
  padding: 13px 15px;
  border: 1px solid rgba(255, 107, 107, .42);
  border-radius: 13px;
  background: rgba(120, 25, 35, .18);
  color: #ffd7d7;
  font-size: .88rem;
}

.login-alert span {
  color: #e5b8bc;
}

.login-form {
  display: grid;
  gap: 17px;
}

.login-field {
  display: grid;
  gap: 8px;
}

.login-field label {
  color: #d8dfec;
  font-size: .82rem;
  font-weight: 800;
}

.login-field input {
  width: 100%;
  min-height: 54px;
  padding: 0 15px;
  border: 1px solid rgba(116, 132, 163, .38);
  border-radius: 14px;
  background: rgba(4, 8, 15, .66);
  color: #fff;
  font-size: 1rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .025);
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.login-field input:hover {
  border-color: rgba(151, 166, 196, .56);
}

.login-field input:focus {
  outline: none;
  border-color: rgba(244, 185, 37, .80);
  background: rgba(4, 8, 15, .86);
  box-shadow: 0 0 0 4px rgba(244, 185, 37, .11);
}

.login-field.has-error input {
  border-color: rgba(255, 107, 107, .65);
}

.login-field__error {
  color: #ff9f9f;
  font-size: .78rem;
}

.login-password {
  position: relative;
}

.login-password input {
  padding-right: 54px;
}

.login-password__toggle {
  position: absolute;
  top: 50%;
  right: 8px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 11px;
  background: transparent;
  color: #8692a8;
  cursor: pointer;
  transform: translateY(-50%);
}

.login-password__toggle:hover,
.login-password__toggle:focus-visible {
  background: rgba(255, 255, 255, .06);
  color: #fff;
  outline: none;
}

.login-password__toggle svg {
  width: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.login-password__toggle .icon-eye-off,
.login-password__toggle[aria-pressed="true"] .icon-eye {
  display: none;
}

.login-password__toggle[aria-pressed="true"] .icon-eye-off {
  display: block;
}

.login-submit {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 55px;
  margin-top: 4px;
  padding: 0 18px 0 20px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, #f8c438, #edae16);
  color: #131313;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 14px 30px rgba(244, 185, 37, .18);
  transition: transform .18s ease, filter .18s ease, box-shadow .18s ease;
}

.login-submit:hover {
  filter: brightness(1.04);
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(244, 185, 37, .24);
}

.login-submit:active {
  transform: translateY(0);
}

.login-submit svg {
  width: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.login-social-block {
  margin-top: 30px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, .09);
}

.login-social-block > p {
  margin: 0 0 12px;
  color: #7f8aa0;
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.login-socials {
  display: flex;
  gap: 10px;
}

.login-socials a {
  display: grid;
  place-items: center;
  width: 43px;
  height: 43px;
  border: 1px solid rgba(255, 255, 255, .11);
  border-radius: 13px;
  background: rgba(255, 255, 255, .035);
  color: #bec7d6;
  transition: color .18s ease, border-color .18s ease, background .18s ease, transform .18s ease;
}

.login-socials a:hover,
.login-socials a:focus-visible {
  border-color: rgba(244, 185, 37, .55);
  background: rgba(244, 185, 37, .10);
  color: #f4b925;
  outline: none;
  transform: translateY(-2px);
}

.login-socials a[data-pending-social] {
  cursor: default;
}

.login-socials a[data-pending-social]:hover,
.login-socials a[data-pending-social]:focus-visible {
  transform: none;
}

.login-socials svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.login-socials .social-fill,
.login-socials a:nth-child(2) svg,
.login-socials a:nth-child(3) svg {
  fill: currentColor;
  stroke: none;
}

.login-message {
  align-self: end;
  max-width: 430px;
  margin: 0 0 clamp(28px, 7vh, 82px) auto;
  padding-left: 24px;
  border-left: 2px solid rgba(244, 185, 37, .65);
  text-shadow: 0 2px 18px rgba(0, 0, 0, .58);
}

.login-message span {
  display: block;
  margin-bottom: 12px;
  color: #f4b925;
  font-size: .76rem;
  font-weight: 900;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.login-message blockquote {
  margin: 0;
  color: #fff;
  font-size: clamp(1.45rem, 2.8vw, 2.4rem);
  font-weight: 800;
  line-height: 1.16;
  letter-spacing: -.025em;
}

@media (prefers-reduced-motion: no-preference) {
  .login-hero::before {
    animation: login-background-breathe 16s ease-in-out infinite alternate;
  }

  .login-panel {
    animation: login-panel-enter .65s cubic-bezier(.2, .8, .2, 1) both;
  }

  .login-message {
    animation: login-message-enter .8s .12s cubic-bezier(.2, .8, .2, 1) both;
  }
}

@keyframes login-background-breathe {
  from { transform: scale(1.035); }
  to { transform: scale(1.075); }
}

@keyframes login-panel-enter {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes login-message-enter {
  from { opacity: 0; transform: translateX(24px); }
  to { opacity: 1; transform: translateX(0); }
}

@media (max-width: 900px) {
  .login-hero::after {
    background:
      linear-gradient(180deg, rgba(3, 6, 12, .36) 0%, rgba(3, 6, 12, .66) 44%, rgba(3, 6, 12, .96) 100%);
  }

  .login-hero__content {
    grid-template-columns: 1fr;
    align-items: end;
    padding: 34px 20px 28px;
  }

  .login-panel {
    width: min(100%, 520px);
    margin: auto;
  }

  .login-message {
    display: none;
  }
}

@media (max-width: 560px) {
  .login-hero::before {
    background-position: 57% 20%;
  }

  .login-hero__content {
    min-height: 100svh;
    padding: max(18px, env(safe-area-inset-top)) 12px max(16px, env(safe-area-inset-bottom));
  }

  .login-panel {
    padding: 23px 18px;
    border-radius: 22px;
    background: linear-gradient(160deg, rgba(17, 23, 35, .93), rgba(7, 11, 19, .93));
  }

  .login-brand {
    margin-bottom: 24px;
  }

  .login-heading h1 {
    font-size: 2.25rem;
  }

  .login-heading > p:last-child {
    font-size: .92rem;
  }

  .login-socials {
    display: grid;
    grid-template-columns: repeat(6, minmax(36px, 1fr));
    gap: 8px;
  }

  .login-socials a {
    width: 100%;
  }
}

.login-info-links{display:flex;justify-content:center;align-items:center;gap:9px;margin-top:14px;color:rgba(255,255,255,.58);font-size:.78rem}
.login-info-links a{transition:color .15s ease}
.login-info-links a:hover,.login-info-links a:focus-visible{color:#fff}


/* Ajustes mobile, tela de login compacta */
.login-info-link-disabled {
  color: rgba(255,255,255,.34);
  cursor: default;
}

@media (max-width: 560px) {
  .login-page {
    overflow-y: auto;
  }

  .login-hero {
    min-height: 100svh;
  }

  .login-hero__content {
    min-height: 100svh;
    padding:
      max(8px, env(safe-area-inset-top))
      10px
      max(8px, env(safe-area-inset-bottom));
    align-items: center;
  }

  .login-panel {
    padding: 16px 15px;
    border-radius: 20px;
  }

  .login-brand {
    margin-bottom: 13px;
  }

  .login-brand__mark {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
  }

  .login-heading {
    margin-bottom: 15px;
  }

  .login-eyebrow {
    margin-bottom: 6px;
  }

  .login-heading h1 {
    margin-bottom: 8px;
    font-size: clamp(1.75rem, 8vw, 2.05rem);
    line-height: 1;
  }

  .login-heading > p:last-child {
    font-size: .84rem;
    line-height: 1.38;
  }

  .login-form {
    gap: 11px;
  }

  .login-field {
    gap: 5px;
  }

  .login-field input {
    min-height: 48px;
  }

  .login-submit {
    min-height: 49px;
    margin-top: 1px;
  }

  .login-social-block {
    margin-top: 17px;
    padding-top: 13px;
  }

  .login-social-block > p {
    margin-bottom: 8px;
  }

  .login-socials a {
    height: 39px;
  }

  .login-info-links {
    flex-wrap: wrap;
    gap: 6px 8px;
    margin-top: 10px;
    font-size: .72rem;
  }
}

/* Evita animação contínua da imagem de fundo na tela de login. */
.login-hero::before {
  animation: none !important;
  transform: scale(1.035);
}
