/* [TFH-001:TFH_LOGIN:CSS-START] */
.tfh-login-screen {
  min-height: 100dvh;
  display: grid;
  align-items: center;
  padding:
    max(22px, env(safe-area-inset-top))
    clamp(18px, 4vw, 58px)
    max(22px, env(safe-area-inset-bottom));
  position: relative;
  isolation: isolate;
}

.tfh-login-screen::before,
.tfh-login-screen::after {
  content: "";
  position: fixed;
  z-index: -1;
  border-radius: 999px;
  pointer-events: none;
}

.tfh-login-screen::before {
  width: min(46vw, 660px);
  height: min(46vw, 660px);
  top: -24vw;
  right: -13vw;
  border: 1px solid rgba(18, 52, 92, 0.12);
  box-shadow:
    0 0 0 80px rgba(18, 52, 92, 0.025),
    0 0 0 160px rgba(18, 52, 92, 0.018);
}

.tfh-login-screen::after {
  width: min(38vw, 520px);
  height: min(38vw, 520px);
  bottom: -22vw;
  left: -12vw;
  border: 1px solid rgba(185, 135, 50, 0.12);
  box-shadow:
    0 0 0 70px rgba(185, 135, 50, 0.025),
    0 0 0 140px rgba(185, 135, 50, 0.018);
}

.tfh-login-card {
  width: min(1180px, 100%);
  min-height: min(720px, calc(100dvh - 44px));
  margin: auto;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(360px, 0.75fr);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: var(--tfh-radius-xl);
  background: var(--tfh-surface);
  box-shadow: var(--tfh-shadow);
  backdrop-filter: blur(18px);
}

.tfh-brand-panel {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: clamp(34px, 5vw, 70px);
  background:
    radial-gradient(circle at 80% 18%, rgba(216, 181, 110, 0.15), transparent 25%),
    linear-gradient(145deg, rgba(5, 22, 43, 0.99), rgba(15, 53, 91, 0.97));
  color: #fff;
}

.tfh-brand-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(118deg, transparent 0 62%, rgba(255,255,255,0.04) 62% 63%, transparent 63%),
    linear-gradient(55deg, transparent 0 70%, rgba(255,255,255,0.04) 70% 71%, transparent 71%);
  pointer-events: none;
}

.tfh-brand-orbit {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.tfh-brand-orbit-one {
  width: 580px;
  height: 580px;
  right: -330px;
  top: -250px;
  box-shadow:
    0 0 0 70px rgba(255, 255, 255, 0.018),
    0 0 0 140px rgba(255, 255, 255, 0.012);
}

.tfh-brand-orbit-two {
  width: 430px;
  height: 430px;
  left: -300px;
  bottom: -290px;
  box-shadow:
    0 0 0 60px rgba(47, 127, 196, 0.035),
    0 0 0 120px rgba(47, 127, 196, 0.018);
}

.tfh-brand-glow {
  position: absolute;
  width: 540px;
  height: 540px;
  left: 50%;
  bottom: -310px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: rgba(47, 127, 196, 0.22);
  filter: blur(16px);
}

.tfh-brand-copy,
.tfh-logo-frame,
.tfh-service-strip,
.tfh-login-developer {
  position: relative;
  z-index: 1;
}

.tfh-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 9px;
  font-size: 0.74rem;
  font-weight: 850;
  letter-spacing: 0.22em;
  color: var(--tfh-gold-300);
}

.tfh-eyebrow::before {
  content: "";
  width: 30px;
  height: 1px;
  background: currentColor;
}

.tfh-metallic-title {
  width: fit-content;
  margin: 0;
  font-size: clamp(2.6rem, 5vw, 4.8rem);
  line-height: 0.96;
  letter-spacing: -0.055em;
  color: transparent;
  background:
    linear-gradient(
      180deg,
      #ffffff 0%,
      #d9dde1 19%,
      #9099a3 42%,
      #f8f9fa 58%,
      #737d88 79%,
      #d4d9de 100%
    );
  -webkit-background-clip: text;
  background-clip: text;
  filter: drop-shadow(0 2px 0 rgba(0,0,0,0.48));
  text-shadow: 0 1px 1px rgba(255,255,255,0.16);
}

.tfh-owner-block {
  display: grid;
  gap: 3px;
  width: fit-content;
  margin-top: 17px;
  padding-left: 18px;
  border-left: 3px solid var(--tfh-gold-300);
}

.tfh-owner-block span {
  color: rgba(255,255,255,0.66);
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.tfh-owner-block strong {
  width: fit-content;
  color: transparent;
  background: linear-gradient(180deg,#fff 0%,#d7dce1 20%,#8e98a3 44%,#f7f8f9 60%,#77818c 80%,#d8dde2 100%);
  -webkit-background-clip: text;
  background-clip: text;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.35rem, 2.3vw, 2rem);
  font-weight: 700;
  letter-spacing: 0.01em;
  filter: drop-shadow(0 2px 1px rgba(0,0,0,0.48));
  text-shadow: 0 1px 1px rgba(255,255,255,0.12);
}

.tfh-brand-intro {
  max-width: 610px;
  margin: 14px 0 0;
  color: rgba(255,255,255,0.72);
  font-size: clamp(0.9rem, 1.3vw, 1.04rem);
  line-height: 1.55;
}

.tfh-logo-frame {
  width: min(100%, 690px);
  margin: clamp(10px, 1.9vh, 24px) auto 0;
  display: grid;
  place-items: center;
}

.tfh-main-logo {
  width: 100%;
  max-height: 340px;
  object-fit: contain;
  filter: drop-shadow(0 22px 28px rgba(0,0,0,0.30));
}

.tfh-service-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(10px, 1.4vw, 20px);
  margin-top: 3px;
  font-size: clamp(0.64rem, 1vw, 0.78rem);
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.78);
}

.tfh-service-strip i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--tfh-gold-300);
}

.tfh-login-developer {
  align-self: flex-start;
  width: min(390px, 68%);
  margin-top: clamp(16px, 2.6vh, 28px);
  padding: 10px 13px 8px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  background: rgba(1, 10, 22, 0.58);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.05),
    0 10px 28px rgba(0,0,0,0.2);
}

.tfh-login-developer span {
  display: block;
  margin-bottom: 5px;
  color: rgba(255,255,255,0.48);
  font-size: 0.57rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.tfh-login-developer img {
  display: block;
  width: 100%;
  max-height: 66px;
  object-fit: contain;
}

.tfh-form-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: clamp(34px, 4.4vw, 68px);
  background: linear-gradient(rgba(255,255,255,0.90), rgba(255,255,255,0.98));
}

.tfh-form-head {
  margin-bottom: 30px;
}

.tfh-form-kicker {
  display: block;
  margin-bottom: 8px;
  color: var(--tfh-blue-600);
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.tfh-form-head h2 {
  margin: 0;
  font-size: clamp(1.8rem, 2.6vw, 2.35rem);
  letter-spacing: -0.035em;
}

.tfh-form-head p {
  margin: 10px 0 0;
  color: var(--tfh-ink-600);
  line-height: 1.55;
}

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

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

.tfh-field-group label {
  font-size: 0.84rem;
  font-weight: 750;
  color: #27394e;
}

.tfh-input-shell {
  min-height: 54px;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  border: 1px solid var(--tfh-line);
  border-radius: var(--tfh-radius-md);
  background: rgba(248, 251, 254, 0.96);
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

.tfh-input-shell:focus-within {
  border-color: rgba(47, 127, 196, 0.72);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(47, 127, 196, 0.12);
}

.tfh-input-icon {
  width: 44px;
  display: grid;
  place-items: center;
  color: #6a7c91;
}

.tfh-input-icon svg,
.tfh-password-toggle svg,
.tfh-security-note svg,
.tfh-logout-button svg,
.tfh-company-button > svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tfh-input-shell input {
  min-width: 0;
  width: 100%;
  height: 52px;
  border: 0;
  outline: 0;
  color: var(--tfh-ink-900);
  background: transparent;
  padding: 0 8px 0 0;
}

.tfh-input-shell input::placeholder {
  color: #9aa7b5;
}

.tfh-password-toggle {
  width: 44px;
  height: 44px;
  margin-right: 4px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #6a7c91;
  cursor: pointer;
}

.tfh-password-toggle:hover {
  color: var(--tfh-blue-600);
  background: rgba(47, 127, 196, 0.08);
}

.tfh-eye-closed {
  display: none;
}

.tfh-password-toggle.is-visible .tfh-eye-open {
  display: none;
}

.tfh-password-toggle.is-visible .tfh-eye-closed {
  display: block;
}

.tfh-remember-row {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--tfh-ink-600);
  font-size: 0.84rem;
  cursor: pointer;
  user-select: none;
}

.tfh-remember-row input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.tfh-check-ui {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(18, 52, 92, 0.28);
  border-radius: 5px;
  background: #fff;
}

.tfh-remember-row input:checked + .tfh-check-ui {
  border-color: var(--tfh-blue-600);
  background: var(--tfh-blue-600);
}

.tfh-remember-row input:checked + .tfh-check-ui::after {
  content: "";
  width: 8px;
  height: 4px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: translateY(-1px) rotate(-45deg);
}

.tfh-message {
  min-height: 20px;
  margin-top: -4px;
  font-size: 0.84rem;
  line-height: 1.45;
}

.tfh-message.is-error {
  color: var(--tfh-danger);
}

.tfh-message.is-success {
  color: var(--tfh-success);
}

.tfh-login-button {
  min-height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 0;
  border-radius: var(--tfh-radius-md);
  color: #fff;
  background: linear-gradient(135deg, var(--tfh-navy-800), var(--tfh-blue-600));
  box-shadow: 0 14px 24px rgba(18, 52, 92, 0.22);
  font-weight: 800;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    filter 160ms ease;
}

.tfh-login-button:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 18px 28px rgba(18, 52, 92, 0.28);
  filter: brightness(1.04);
}

.tfh-login-button:disabled {
  cursor: wait;
  opacity: 0.86;
}

.tfh-button-spinner {
  display: none;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255,255,255,0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: tfh-spin 700ms linear infinite;
}

.tfh-login-button.is-loading .tfh-button-spinner {
  display: block;
}

@keyframes tfh-spin {
  to { transform: rotate(360deg); }
}

.tfh-security-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--tfh-line);
  color: var(--tfh-ink-600);
  font-size: 0.78rem;
  line-height: 1.55;
}

.tfh-security-note svg {
  flex: 0 0 19px;
  color: var(--tfh-gold-500);
}
/* [TFH-001:TFH_LOGIN:CSS-END] */
