/* --------------------------------------------------------------------------
   Entrar / autenticação
   -------------------------------------------------------------------------- */

.auth {
  min-height: 100dvh;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  background: var(--canvas);
}

.auth__visual {
  position: relative;
  isolation: isolate;
  min-height: 100dvh;
  overflow: hidden;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(24px, 4vw, 48px);
  color: #f4f5f0;
}

.auth__visual>img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 28%;
  filter: grayscale(0.35) contrast(1.05) brightness(0.58);
}

.auth__visual::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to top, rgba(7, 8, 10, 0.96) 0%, rgba(7, 8, 10, 0.35) 45%, rgba(7, 8, 10, 0.55) 100%),
    linear-gradient(90deg, rgba(7, 8, 10, 0.72) 0%, rgba(7, 8, 10, 0.18) 62%, rgba(7, 8, 10, 0.4) 100%),
    radial-gradient(80% 60% at 20% 20%, rgba(3, 184, 255, 0.1), transparent 65%);
}

.auth__visual::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(to right, rgba(244, 245, 240, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(244, 245, 240, 0.05) 1px, transparent 1px);
  background-size: 96px 96px;
  mask-image: linear-gradient(to top, #000, transparent 70%);
}

.auth__brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.auth__brand-logo {
  width: 32px;
  height: 32px;
  flex: none;
}

.auth__brand .brand__mark {
  width: 32px;
  height: 32px;
}

.auth__brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.auth__brand-text small {
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #c9ccd1;
}

.auth__brand-text strong {
  font-family: var(--font-display);
  font-size: 15px;
  letter-spacing: -0.02em;
  font-weight: 600;
}

.auth__quote {
  max-width: 22ch;
}

.auth__quote .mono {
  color: #03b8ff;
  margin-bottom: 14px;
  display: block;
  white-space: nowrap;
}

.auth__quote p {
  font-family: var(--font-display);
  font-size: clamp(36px, 4.6vw, 64px);
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.auth__quote p span {
  color: var(--acid);
}

.auth__foot {
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #c9ccd1;
}

.auth__foot .dot {
  color: var(--acid);
}

.auth__panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(28px, 5vw, 72px) clamp(24px, 4vw, 56px);
  background:
    radial-gradient(90% 60% at 100% 0%, rgba(3, 184, 255, 0.05), transparent 60%),
    var(--canvas);
}

.auth__form {
  width: min(100%, 400px);
}

.auth__form-logo {
  width: 34px;
  height: 34px;
  margin-bottom: 26px;
}

.auth__form h1 {
  font-size: clamp(30px, 3vw, 40px);
  letter-spacing: -0.04em;
  margin-bottom: 8px;
}

.auth__form>p {
  color: var(--muted);
  font-size: var(--fs-sm);
  margin-bottom: 28px;
}

.auth__fields {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.auth__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
}

.auth__link {
  font-size: var(--fs-xs);
  color: var(--paper-dim);
}

.auth__link:hover {
  color: var(--acid);
}

.auth__submit {
  margin-top: 24px;
}

.auth__divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-block: 24px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.auth__divider::before,
.auth__divider::after {
  content: "";
  height: 1px;
  flex: 1;
  background: var(--line);
}

.auth__alt {
  text-align: center;
  font-size: var(--fs-sm);
  color: var(--muted);
}

.auth__alt a {
  color: var(--acid);
}

.auth__alt a:hover {
  text-decoration: underline;
}

.auth__legal {
  margin-top: 32px;
  font-size: var(--fs-xs);
  color: var(--muted);
  line-height: 1.55;
}

.auth__legal a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.auth__legal a:hover {
  color: var(--paper);
}

@media (max-width: 940px) {
  .auth {
    grid-template-columns: 1fr;
  }

  .auth__visual {
    display: none;
  }

  .auth__panel {
    min-height: 100dvh;
  }
}

.auth__brand-logo { width: 32px; height: 32px; flex: none; }
.auth__form-logo { display: block; }

.auth__error {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 4px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 94, 31, 0.34);
  border-radius: var(--r-md);
  background: var(--ember-soft);
  color: var(--paper);
  font-size: var(--fs-sm);
  line-height: 1.45;
}

.auth__error .ico {
  flex: none;
  margin-top: 1px;
  color: var(--ember);
  font-size: 15px;
}

.auth__submit:disabled {
  opacity: 0.72;
  cursor: progress;
}

.auth__hint {
  margin-top: 18px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.auth__submit .ico {
  margin-left: 4px;
}
