/* Esconde navbar do layout guest nestas telas */
body:has(.tf-page) .navbar,
body:has(.tf-split) .navbar {
  display: none !important;
}

/* ——— Login admin: split 50/50 ——— */
.tf-split {
  min-height: 100vh;
  display: flex;
  background: #fff;
}

.tf-split__visual {
  position: relative;
  flex: 0 0 50%;
  width: 50%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 2rem 3rem;
  overflow: hidden;
  background-color: #1db770;
  background-image: url("../frontend/assets/images/hero-bg.svg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.tf-split__logo {
  position: relative;
  z-index: 2;
  display: block;
  width: 250px;
  max-width: 70%;
  height: auto;
  margin: 0 auto 2rem;
}

.tf-split__hero {
  position: relative;
  z-index: 1;
  display: block;
  width: min(100%, 520px);
  max-width: 100%;
  height: auto;
  margin: 0 auto;
  object-fit: contain;
}

.tf-split__panel {
  flex: 0 0 50%;
  width: 50%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 1.5rem;
  background: #fff;
}

.tf-split__form {
  width: 100%;
  max-width: 400px;
}

.tf-split__form .tf-card__title {
  text-align: left;
}

.tf-split__form .tf-card__lead {
  text-align: left;
  margin-bottom: 1.75rem;
}

@media (max-width: 991.98px) {
  .tf-split {
    flex-direction: column;
  }

  .tf-split__visual {
    flex: none;
    width: 100%;
    min-height: auto;
    padding: 2rem 1.25rem 1.5rem;
  }

  .tf-split__logo {
    width: 200px;
    margin-bottom: 1.25rem;
  }

  .tf-split__hero {
    width: min(100%, 340px);
  }

  .tf-split__panel {
    flex: none;
    width: 100%;
    min-height: auto;
    padding: 1.75rem 1.25rem 2.5rem;
    align-items: flex-start;
  }

  .tf-split__form .tf-card__title,
  .tf-split__form .tf-card__lead {
    text-align: center;
  }

  .tf-split__form .tf-form--login label {
    text-align: left;
  }
}

@media (max-width: 575.98px) {
  .tf-split__logo {
    width: 170px;
  }

  .tf-split__hero {
    width: min(100%, 260px);
  }

  .tf-split__visual {
    padding: 1.5rem 1rem 1rem;
  }
}

.tf-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 1rem 3rem;
  background: #1db770;
  position: relative;
}

.tf-page::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(29, 183, 112, 0.83);
  pointer-events: none;
}

.tf-wrap {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
}

.tf-wrap--wide {
  max-width: 520px;
}

.tf-logo {
  display: block;
  margin: 0 auto 1.5rem;
  max-height: 52px;
  width: auto;
}

.tf-card {
  width: 100%;
  background: #fff;
  border-radius: 16px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 18px 48px rgba(18, 38, 63, 0.18);
  overflow: hidden;
}

.tf-card__body {
  padding: 1.75rem;
}

.tf-card__title {
  margin: 0 0 0.35rem;
  font-size: 1.35rem;
  font-weight: 700;
  color: #1f2a37;
  text-align: center;
  letter-spacing: -0.02em;
}

.tf-card__lead {
  margin: 0 0 1.5rem;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: #6b7280;
  text-align: center;
}

.tf-steps {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.tf-step {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
}

.tf-step__num {
  flex-shrink: 0;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 999px;
  background: #1db770;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.1rem;
}

.tf-step__content {
  flex: 1;
  min-width: 0;
}

.tf-step__title {
  margin: 0 0 0.25rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: #1f2a37;
}

.tf-step__text {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: #6b7280;
}

.tf-qr {
  margin: 0.85rem auto 0;
  width: 188px;
  height: 188px;
  padding: 10px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
}

.tf-qr img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.tf-secret {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.85rem;
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
  background: #f3f4f6;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.tf-secret__code {
  flex: 1;
  min-width: 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #111827;
  word-break: break-all;
  margin: 0;
}

.tf-secret__copy {
  flex-shrink: 0;
  background: #fff;
  color: #1db770;
  border: 1px solid rgba(29, 183, 112, 0.35);
  border-radius: 8px;
  padding: 0.35rem 0.65rem;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  line-height: 1.2;
  transition: background 0.15s ease, color 0.15s ease;
}

.tf-secret__copy:hover,
.tf-secret__copy.is-copied {
  background: #1db770;
  color: #fff;
  border-color: #1db770;
}

.tf-form .form-group {
  margin-bottom: 1rem;
}

.tf-form label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #6b7280;
  text-align: center;
}

.tf-form--login label {
  text-align: left;
}

.tf-form .form-control {
  height: 48px;
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.35em;
  text-align: center;
  color: #111827;
}

.tf-form .form-control.form-control--text {
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: normal;
  text-align: left;
  padding: 0 0.95rem;
}

.tf-form .form-control:focus {
  border-color: #1db770;
  box-shadow: 0 0 0 3px rgba(29, 183, 112, 0.2);
}

.tf-form .form-control.is-invalid {
  border-color: #e74c3c;
}

.tf-form .invalid-feedback {
  display: block;
  margin-top: 0.4rem;
  font-size: 0.8125rem;
  color: #e74c3c;
  text-align: center;
}

.tf-form .form-control--text + .invalid-feedback,
.tf-form .form-group .invalid-feedback {
  text-align: left;
}

.tf-check {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 1.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: normal;
  text-transform: none;
  color: #4b5563;
  cursor: pointer;
  user-select: none;
  text-align: left;
}

.tf-check input {
  width: 1rem;
  height: 1rem;
  margin: 0;
  accent-color: #1db770;
  cursor: pointer;
  flex-shrink: 0;
}

.tf-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  height: 48px;
  padding: 0 1.25rem;
  border: 0;
  border-radius: 999px;
  background: #fbc61d;
  color: #1f2a37 !important;
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  text-decoration: none !important;
  cursor: pointer;
  box-sizing: border-box;
  transition: filter 0.15s ease, transform 0.15s ease;
}

.tf-btn:hover,
.tf-btn:focus {
  filter: brightness(0.97);
  color: #1f2a37 !important;
  text-decoration: none !important;
}

.tf-btn:active {
  transform: translateY(1px);
}

.tf-btn--primary {
  background: #1db770;
  color: #fff !important;
}

.tf-btn--primary:hover,
.tf-btn--primary:focus {
  color: #fff !important;
}

.tf-hint {
  margin: 1rem 0 0;
  font-size: 0.8125rem;
  color: #6b7280;
  text-align: center;
  line-height: 1.45;
}

.tf-recovery-list {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
}

.tf-recovery-list li {
  margin: 0;
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
  background: #f3f4f6;
  border: 1px solid rgba(0, 0, 0, 0.05);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-align: center;
  color: #111827;
}

@media (max-width: 575.98px) {
  .tf-card__body {
    padding: 1.25rem;
  }

  .tf-recovery-list {
    grid-template-columns: 1fr;
  }
}
