/* TenantFlows auth — Sellora-style split login shell */

:root {
  --tf-brand: #e82328;
  --tf-brand-hover: #c91b20;
  --tf-brand-soft: rgba(232, 35, 40, 0.1);
  --tf-navy: #1a2744;
  --tf-ink: #111827;
  --tf-muted: #6b7280;
  --tf-line: #e5e7eb;
  --tf-surface: #ffffff;
  --tf-page: #f3f4f6;
  --tf-font: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
  --tf-radius: 24px;
  --tf-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body.tf-auth-body {
  margin: 0;
  min-height: 100svh;
  font-family: var(--tf-font);
  color: var(--tf-ink);
  background: var(--tf-page);
  -webkit-font-smoothing: antialiased;
}

body.tf-auth-body .loader-bg {
  display: none !important;
}

/* Kill Able Pro auth chrome */
.tf-auth-body .auth-main,
.tf-auth-body .auth-wrapper,
.tf-auth-body .auth-form {
  all: unset;
  display: contents;
}

.tf-auth-page {
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}

.tf-auth-shell {
  width: min(1120px, 100%);
  min-height: min(720px, calc(100svh - 2.5rem));
  display: grid;
  grid-template-columns: 1fr;
  background: var(--tf-surface);
  border-radius: var(--tf-radius);
  overflow: hidden;
  box-shadow:
    0 1px 2px rgba(17, 24, 39, 0.04),
    0 24px 64px rgba(17, 24, 39, 0.1);
}

@media (min-width: 992px) {
  .tf-auth-shell {
    grid-template-columns: 1fr 1fr;
  }
}

.tf-auth-pane {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.tf-auth-pane--form {
  padding: 1.75rem 1.5rem 1.25rem;
  background: var(--tf-surface);
}

@media (min-width: 768px) {
  .tf-auth-pane--form {
    padding: 2rem 2.5rem 1.5rem;
  }
}

@media (min-width: 992px) {
  .tf-auth-pane--form {
    padding: 2.25rem 3rem 1.5rem;
  }
}

.tf-auth-pane__top {
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.tf-auth-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.tf-auth-logo img {
  height: 40px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
}

.tf-auth-pane__top .tf-lang-switch--inline .tf-lang-switch__link {
  color: #6b7280;
  font-size: 0.75rem;
  font-weight: 700;
  text-decoration: none;
  padding: 0.2rem 0.45rem;
  border-radius: 999px;
}
.tf-auth-pane__top .tf-lang-switch--inline .tf-lang-switch__link.is-active {
  color: #1a2744;
  background: rgba(26, 39, 68, 0.08);
}

.tf-auth-pane__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 420px;
  width: 100%;
  margin: 0 auto;
}

.tf-auth-pane__foot {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 2rem;
  padding-top: 1rem;
  font-size: 0.75rem;
  color: var(--tf-muted);
  text-align: center;
}

.tf-auth-pane__foot a {
  color: var(--tf-muted);
  text-decoration: none;
}

.tf-auth-pane__foot a:hover {
  color: var(--tf-brand);
}

/* Header */
.tf-auth-header {
  text-align: center;
  margin-bottom: 1.75rem;
}

.tf-auth-header h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.75rem, 2.4vw, 2.125rem);
  font-weight: 750;
  letter-spacing: -0.03em;
  color: var(--tf-ink);
  line-height: 1.15;
}

.tf-auth-header p {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--tf-muted);
}

/* Form fields */
.tf-auth-form .alert {
  border-radius: 12px;
  font-size: 0.875rem;
}

.tf-field {
  margin-bottom: 1.1rem;
}

.tf-field label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--tf-ink);
}

.tf-field .form-control {
  height: 48px;
  padding: 0.7rem 0.95rem;
  border: 1px solid var(--tf-line);
  border-radius: 12px;
  background: #fff;
  font-family: var(--tf-font);
  font-size: 0.9375rem;
  color: var(--tf-ink);
  box-shadow: none;
  transition: border-color 0.2s var(--tf-ease), box-shadow 0.2s var(--tf-ease);
}

.tf-field .form-control::placeholder {
  color: #9ca3af;
}

.tf-field .form-control:focus {
  border-color: var(--tf-brand);
  box-shadow: 0 0 0 3px var(--tf-brand-soft);
  outline: none;
}

.tf-field__password {
  position: relative;
}

.tf-field__password .form-control {
  padding-right: 2.75rem;
}

.tf-field__eye {
  position: absolute;
  top: 50%;
  right: 0.65rem;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 0;
  background: transparent;
  color: #9ca3af;
  cursor: pointer;
  border-radius: 8px;
}

.tf-field__eye:hover {
  color: var(--tf-ink);
  background: #f3f4f6;
}

.tf-field__eye .tf-eye--hide {
  display: none;
}

.tf-field__eye.is-visible .tf-eye--show {
  display: none;
}

.tf-field__eye.is-visible .tf-eye--hide {
  display: block;
}

.tf-field__error {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.8125rem;
  color: #dc2626;
}

.tf-auth-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 0.25rem 0 1.35rem;
  flex-wrap: wrap;
}

.tf-check {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--tf-muted);
  cursor: pointer;
  user-select: none;
}

.tf-check input {
  width: 1rem;
  height: 1rem;
  accent-color: var(--tf-brand);
  cursor: pointer;
}

.tf-link {
  color: var(--tf-brand) !important;
  font-weight: 600;
  font-size: 0.875rem;
  text-decoration: none !important;
}

.tf-link:hover {
  color: var(--tf-brand-hover) !important;
  text-decoration: underline !important;
}

.tf-auth-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 48px;
  border: 0;
  border-radius: 12px;
  background: var(--tf-brand);
  color: #fff;
  font-family: var(--tf-font);
  font-size: 0.975rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(232, 35, 40, 0.28);
  transition: background 0.2s var(--tf-ease), transform 0.2s var(--tf-ease), box-shadow 0.2s var(--tf-ease);
}

.tf-auth-submit:hover {
  background: var(--tf-brand-hover);
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(232, 35, 40, 0.34);
}

.tf-auth-signup {
  margin: 1.35rem 0 0;
  text-align: center;
  font-size: 0.9rem;
  color: var(--tf-muted);
}

.tf-auth-signup .tf-link {
  font-size: inherit;
}

/* Right visual panel */
.tf-auth-pane--visual {
  display: none;
  background:
    radial-gradient(circle at 18% 22%, rgba(255, 255, 255, 0.16), transparent 42%),
    radial-gradient(circle at 88% 78%, rgba(0, 0, 0, 0.12), transparent 45%),
    linear-gradient(160deg, #f03a3f 0%, var(--tf-brand) 45%, #b8181c 100%);
  position: relative;
  overflow: hidden;
}

.tf-auth-pane--visual::before {
  content: "";
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.08) 0 18%, transparent 19%),
    radial-gradient(circle at 70% 60%, rgba(255, 255, 255, 0.06) 0 22%, transparent 23%),
    radial-gradient(circle at 40% 80%, rgba(255, 255, 255, 0.05) 0 26%, transparent 27%);
  opacity: 0.9;
  pointer-events: none;
}

@media (min-width: 992px) {
  .tf-auth-pane--visual {
    display: flex;
  }
}

.tf-auth-visual {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.75rem;
  width: 100%;
  height: 100%;
  padding: 2.5rem 2.25rem;
  color: #fff;
}

.tf-auth-visual__copy h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.5rem, 2.2vw, 2rem);
  font-weight: 750;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: #fff;
  max-width: 18ch;
}

.tf-auth-visual__copy p {
  margin: 0;
  font-size: 0.975rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.85);
  max-width: 36ch;
}

/* Other auth pages that still use .card / floating labels */
.tf-auth-pane__body > .card {
  border: 0;
  box-shadow: none;
  background: transparent;
}

.tf-auth-pane__body > .card > .card-body {
  padding: 0;
}

.tf-auth-pane__body .auth-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.tf-auth-pane__body .auth-header h2,
.tf-auth-pane__body .auth-header h2.text-secondary {
  font-size: 1.75rem;
  font-weight: 750;
  letter-spacing: -0.03em;
  color: var(--tf-ink) !important;
}

.tf-auth-pane__body .form-floating > .form-control {
  border-radius: 12px;
  border-color: var(--tf-line);
  height: 52px;
}

.tf-auth-pane__body .form-floating > .form-control:focus {
  border-color: var(--tf-brand);
  box-shadow: 0 0 0 3px var(--tf-brand-soft);
}

.tf-auth-pane__body .btn-secondary {
  width: 100%;
  height: 48px;
  border: 0;
  border-radius: 12px;
  background: var(--tf-brand) !important;
  border-color: var(--tf-brand) !important;
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(232, 35, 40, 0.28);
}

.tf-auth-pane__body a.text-secondary {
  color: var(--tf-brand) !important;
  font-weight: 600;
}

@media (max-width: 991.98px) {
  .tf-auth-shell {
    min-height: auto;
  }

  .tf-auth-pane__body {
    max-width: 460px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tf-auth-submit {
    transition: none;
  }

  .tf-auth-submit:hover {
    transform: none;
  }
}
