/* Lexos — padrão único para todas as páginas antes do login */
.lx-auth {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
  background: #f7f7f8;
  color: #0a0a0a;
  font-family: var(--lx-font-body);
}

.lx-auth-wrap {
  width: 100%;
  max-width: 1040px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 420px);
  gap: 96px;
  align-items: center;
}

.lx-auth-brand {
  display: flex;
  flex-direction: column;
  gap: 28px;
  max-width: 440px;
}

.lx-auth-logo {
  width: min(100%, 250px);
  min-height: 82px;
  display: flex;
  align-items: center;
}

.lx-auth-logo-image {
  width: auto;
  max-width: 250px;
  max-height: 82px;
  object-fit: contain;
  object-position: left center;
}

.lx-auth-line {
  width: 42px;
  height: 1px;
  background: #9ca3af;
}

.lx-auth-title {
  margin: 0;
  font-family: var(--lx-font-heading);
  font-size: 32px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: #0a0a0a;
}

.lx-auth-title-sub {
  display: block;
  margin-top: 8px;
  font-family: var(--lx-font-heading);
  font-weight: 700;
  color: #6b7280;
}

.lx-auth-desc {
  max-width: 380px;
  margin: 0;
  font-family: var(--lx-font-body);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.7;
  color: #6b7280;
}

.lx-auth-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.lx-auth-head {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 4px;
}

.lx-auth-form-title {
  margin: 0;
  font-family: var(--lx-font-heading);
  font-size: 22px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: #0a0a0a;
}

.lx-auth-form-sub {
  margin: 0;
  font-family: var(--lx-font-body);
  font-size: 14px;
  line-height: 1.6;
  color: #4b5563;
}

.lx-auth-form-help {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  color: #6b7280;
}

.lx-auth-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.lx-auth-input {
  height: 54px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  background: #fff;
  transition: border-color .18s ease, box-shadow .18s ease;
}

.lx-auth-input:focus-within {
  border-color: #0a0a0a;
  box-shadow: 0 0 0 3px rgba(10, 10, 10, .04);
}

.lx-auth-input input {
  width: 100%;
  min-width: 0;
  height: 52px;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #0a0a0a;
  font-family: var(--lx-font-body);
  font-size: 15px;
  font-weight: 400;
}

.lx-auth-input input::placeholder {
  color: #9ca3af;
}

.lx-auth-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  color: #9ca3af;
  stroke-width: 1.7;
}

.lx-auth-eye {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  display: grid;
  place-items: center;
  margin-right: -7px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #9ca3af;
  cursor: pointer;
}

.lx-auth-eye:hover {
  color: #6b7280;
}

.lx-auth-submit {
  width: 100%;
  height: 54px;
  margin-top: 4px;
  border: 0;
  border-radius: 14px;
  background: #0a0a0a;
  color: #fff;
  font-family: var(--lx-font-body);
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: .01em;
  cursor: pointer;
  transition: background .18s ease, transform .18s ease;
}

.lx-auth-submit:hover {
  background: #1f1f1f;
  transform: translateY(-1px);
}

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

.lx-auth-submit:disabled {
  opacity: .5;
  cursor: not-allowed;
  transform: none;
}

.lx-auth-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 2px;
}

.lx-auth-trust {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #4b5563;
  font-size: 14px;
  cursor: pointer;
}

.lx-auth-trust input {
  width: 16px;
  height: 16px;
  accent-color: #0a0a0a;
  cursor: pointer;
}

.lx-auth-link {
  border: 0;
  background: transparent;
  color: #4b5563;
  font-family: var(--lx-font-body);
  font-size: 14px;
  text-decoration: none;
  cursor: pointer;
  transition: color .18s ease;
}

.lx-auth-link:hover {
  color: #0a0a0a;
  text-decoration: none;
}

.lx-auth-center {
  display: flex;
  justify-content: center;
  margin-top: 4px;
}

.lx-auth-alert {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #f3c7c3;
  border-radius: 12px;
  background: #fff3f2;
  color: #b42318;
  font-size: 13px;
  line-height: 1.45;
}

.lx-auth-alert.is-success {
  border-color: #a7dfc5;
  background: #effcf6;
  color: #067647;
}

.lx-auth-feedback {
  margin: 0 2px;
  font-size: 12.5px;
  font-weight: 600;
}

.lx-auth-feedback.is-success { color: #065f46; }
.lx-auth-feedback.is-error { color: #b91c1c; }
.lx-auth-input.is-success { border-color: #065f46; box-shadow: 0 0 0 3px rgba(6,95,70,.08); }
.lx-auth-input.is-error { border-color: #b91c1c; box-shadow: 0 0 0 3px rgba(185,28,28,.08); }

.lx-auth-checklist {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.lx-auth-checklist li {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #6b7280;
  font-size: 13px;
}

.lx-auth-checklist li.is-done {
  color: #0a0a0a;
}

.lx-auth-check {
  width: 16px;
  height: 16px;
  display: grid;
  place-items: center;
  color: #a7b0be;
  font-size: 11px;
}

.lx-auth-checklist li.is-done .lx-auth-check {
  color: #0a0a0a;
}

.lx-auth-code {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
  margin: 6px 0 2px;
}

.lx-auth-code input {
  width: 100%;
  height: 56px;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  background: #fff;
  color: #0a0a0a;
  text-align: center;
  font-family: var(--lx-font-heading);
  font-size: 20px;
  font-weight: 700;
  outline: none;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.lx-auth-code input:focus {
  border-color: #0a0a0a;
  box-shadow: 0 0 0 3px rgba(10,10,10,.06);
  transform: translateY(-1px);
}

.lx-auth-resend {
  min-height: 22px;
  display: flex;
  justify-content: center;
  color: #6b7280;
  font-size: 13px;
}

@media (max-width: 1023px) {
  .lx-auth {
    align-items: flex-start;
    justify-content: center;
    padding: 56px 28px 80px;
  }

  .lx-auth-wrap {
    max-width: 420px;
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .lx-auth-brand {
    max-width: none;
    gap: 24px;
  }

  .lx-auth-logo,
  .lx-auth-logo-image {
    max-width: 220px;
    max-height: 72px;
  }

  .lx-auth-title {
    font-size: 28px;
  }

  .lx-auth-desc {
    max-width: none;
    font-size: 14px;
  }

  .lx-auth-foot {
    flex-wrap: wrap;
    gap: 12px;
  }

  .lx-auth-code {
    gap: 8px;
  }

  .lx-auth-code input {
    height: 52px;
    font-size: 18px;
    border-radius: 12px;
  }
}

@media (max-width: 520px) {
  .lx-auth {
    padding: 36px 18px 60px;
  }

  .lx-auth-wrap {
    gap: 38px;
  }

  .lx-auth-title {
    font-size: 26px;
  }

  .lx-auth-foot {
    align-items: flex-start;
    flex-direction: column;
  }
}


/* Cadastro público */
.lx-auth--cadastro {
  padding-top: 32px;
  padding-bottom: 32px;
}

.lx-auth-form--cadastro {
  gap: 14px;
}

.lx-auth-row {
  display: grid;
  gap: 12px;
}

.lx-auth-row--oab {
  grid-template-columns: minmax(0, 1fr) 96px;
}

.lx-auth-input--select {
  padding-right: 12px;
}

.lx-auth-input select {
  width: 100%;
  height: 52px;
  border: 0;
  outline: 0;
  background: transparent;
  color: #4b5563;
  font-family: var(--lx-font-body);
  font-size: 15px;
  cursor: pointer;
}

.lx-auth-file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.lx-auth-upload {
  min-height: 72px;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px dashed #cfd3da;
  border-radius: 14px;
  background: #fff;
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease;
}

.lx-auth-upload:hover {
  border-color: #0a0a0a;
  background: #fafafa;
}

.lx-auth-upload-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: #f3f4f6;
  color: #6b7280;
}

.lx-auth-upload-icon svg {
  width: 18px;
  height: 18px;
}

.lx-auth-upload-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.lx-auth-upload-copy strong {
  color: #111827;
  font-size: 13px;
  font-weight: 700;
}

.lx-auth-upload-copy small {
  overflow: hidden;
  color: #6b7280;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lx-auth-upload-action {
  color: #111827;
  font-size: 12px;
  font-weight: 700;
}

.lx-auth-legal {
  margin: -2px 2px 0;
  color: #6b7280;
  font-size: 11.5px;
  line-height: 1.55;
  text-align: center;
}

@media (max-width: 520px) {
  .lx-auth-row--oab {
    grid-template-columns: minmax(0, 1fr) 88px;
  }

  .lx-auth-upload {
    grid-template-columns: 38px minmax(0, 1fr);
  }

  .lx-auth-upload-action {
    display: none;
  }
}


/* CTA elegante de cadastro no login */
.lx-auth-signup {
  margin-top: 14px;
  padding-top: 16px;
  border-top: 1px solid #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  color: #6b7280;
  font-size: 13px;
}

.lx-auth-signup-button {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 14px;
  border: 1px solid #d9dce2;
  border-radius: 999px;
  background: rgba(255,255,255,.72);
  color: #111827;
  font-family: var(--lx-font-body);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 1px 2px rgba(17,24,39,.03);
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}

.lx-auth-signup-button svg {
  width: 15px;
  height: 15px;
  stroke-width: 1.8;
}

.lx-auth-signup-button:hover {
  border-color: #0a0a0a;
  background: #fff;
  transform: translateY(-1px);
}

@media (max-width: 520px) {
  .lx-auth-signup {
    align-items: stretch;
    flex-direction: column;
  }

  .lx-auth-signup-button {
    width: 100%;
  }
}


/* Logo horizontal oficial nas páginas deslogadas */
.lx-auth-logo {
  width: min(100%, 320px);
  min-height: 74px;
}

.lx-auth-logo-image {
  width: auto;
  max-width: 320px;
  max-height: 82px;
  object-fit: contain;
  object-position: left center;
}

@media (max-width: 520px) {
  .lx-auth-logo,
  .lx-auth-logo-image {
    max-width: 270px;
  }
}
