:root {
  --tc-login-accent: #00583c;
  --tc-login-accent-hover: #004530;
  --tc-login-accent-soft: rgba(0, 88, 60, 0.12);
  --tc-login-bg: #f4f6f8;
  --tc-login-surface: #ffffff;
  --tc-login-text: #0f172a;
  --tc-login-muted: #64748b;
  --tc-login-border: #e2e8f0;
  --tc-login-radius: 20px;
  --tc-login-shadow: 0 24px 60px rgba(15, 23, 42, 0.12);
  --tc-login-label: #334155;
  --tc-login-input-bg: #ffffff;
  --tc-login-icon: #94a3b8;
  --tc-login-btn-secondary-bg: #ffffff;
  --tc-login-btn-secondary-hover: #f8fafc;
  --tc-login-footer-extra: #94a3b8;
  --tc-login-alert-success-bg: #ecfdf5;
  --tc-login-alert-success-text: #065f46;
  --tc-login-alert-success-border: #a7f3d0;
  --tc-login-alert-error-bg: #fef2f2;
  --tc-login-alert-error-text: #991b1b;
  --tc-login-alert-error-border: #fecaca;
  --tc-login-toggle-bg: rgba(255, 255, 255, 0.92);
  --tc-login-toggle-border: #e2e8f0;
  --tc-login-toggle-color: #0f172a;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --tc-login-bg: #0b0f14;
  --tc-login-surface: #141a22;
  --tc-login-text: #e8edf4;
  --tc-login-muted: #8b98a8;
  --tc-login-border: rgba(255, 255, 255, 0.1);
  --tc-login-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  --tc-login-label: #c5d0de;
  --tc-login-input-bg: #1a2230;
  --tc-login-icon: #64748b;
  --tc-login-btn-secondary-bg: #1a2230;
  --tc-login-btn-secondary-hover: #222c3d;
  --tc-login-footer-extra: #64748b;
  --tc-login-alert-success-bg: rgba(6, 95, 70, 0.18);
  --tc-login-alert-success-text: #6ee7b7;
  --tc-login-alert-success-border: rgba(52, 211, 153, 0.35);
  --tc-login-alert-error-bg: rgba(153, 27, 27, 0.2);
  --tc-login-alert-error-text: #fca5a5;
  --tc-login-alert-error-border: rgba(248, 113, 113, 0.35);
  --tc-login-toggle-bg: rgba(20, 26, 34, 0.92);
  --tc-login-toggle-border: rgba(255, 255, 255, 0.12);
  --tc-login-toggle-color: #e8edf4;
}

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

html,
body {
  min-height: 100%;
  margin: 0;
}

body.tc-login-page {
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--tc-login-text);
  background: var(--tc-login-bg);
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.22s ease, color 0.18s ease;
}

.tc-login-theme-toggle {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 100;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--tc-login-toggle-border);
  background: var(--tc-login-toggle-bg);
  color: var(--tc-login-toggle-color);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: transform 0.18s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.tc-login-theme-toggle:hover {
  transform: scale(1.05);
}

.tc-login-theme-toggle .tc-login-theme-icon {
  width: 20px;
  height: 20px;
}

.tc-login-theme-toggle .d-none {
  display: none;
}

html.tc-theme-transition,
html.tc-theme-transition *,
html.tc-theme-transition *::before,
html.tc-theme-transition *::after {
  transition: background-color 0.22s ease, color 0.18s ease, border-color 0.18s ease, box-shadow 0.22s ease !important;
}

.tc-login-page-wrap {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.tc-login-shell {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: row;
}

.tc-login-shell--hero-right {
  flex-direction: row-reverse;
}

.tc-login-hero {
  position: relative;
  flex: 1 1 50%;
  min-height: 280px;
  background: var(--tc-login-hero-gradient, linear-gradient(145deg, #0f172a 0%, #1e293b 100%));
  overflow: hidden;
  will-change: transform;
}

.tc-login-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: opacity 0.35s ease;
}

.tc-login-hero-bg--fade {
  opacity: 0.15;
}

.tc-login-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.15) 0%, rgba(15, 23, 42, 0.72) 100%);
  pointer-events: none;
}

/* Hero animado (bolhas + grade — KOF Lista Digital) */
.tc-login-hero--animated {
  background: #3d0206;
}

.tc-login-hero--animated::before {
  display: none;
}

.tc-login-hero-atmosphere {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.tc-login-hero-atmosphere::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 70% 60% at 17% 48%, rgba(255, 255, 255, 0.11) 0%, transparent 58%),
    radial-gradient(ellipse 70% 60% at 83% 48%, rgba(255, 255, 255, 0.11) 0%, transparent 58%),
    var(--tc-login-hero-gradient, linear-gradient(165deg, #2b0205 0%, #a8040e 44%, #f40009 70%, #6f0208 100%));
}

#tc-login-fizz-canvas {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  display: block;
}

.tc-login-hero-tech-grid {
  position: absolute;
  inset: 0;
  z-index: 2;
  opacity: 0.2;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: radial-gradient(ellipse 78% 85% at 50% 45%, #000 22%, transparent 72%);
}

.tc-login-hero-scanline {
  position: absolute;
  inset: 0;
  z-index: 3;
  background: repeating-linear-gradient(
    180deg,
    transparent,
    transparent 3px,
    rgba(0, 0, 0, 0.045) 3px,
    rgba(0, 0, 0, 0.045) 6px
  );
  opacity: 0.4;
}

.tc-login-hero-scan-beam {
  position: absolute;
  left: 0;
  right: 0;
  height: 140px;
  z-index: 3;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(255, 255, 255, 0.055) 50%,
    transparent 100%
  );
  animation: tc-login-hero-scan-move 8s linear infinite;
}

@keyframes tc-login-hero-scan-move {
  0% {
    transform: translateY(-140px);
  }
  100% {
    transform: translateY(100%);
  }
}

.tc-login-hero-vignette {
  position: absolute;
  inset: 0;
  z-index: 4;
  box-shadow: inset 0 0 100px rgba(0, 0, 0, 0.5);
}

.tc-login-hero--animated .tc-login-hero-inner {
  z-index: 5;
}

@media (prefers-reduced-motion: reduce) {
  .tc-login-hero-scan-beam {
    animation: none;
    opacity: 0;
  }
}

.tc-login-hero-inner {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2.5rem;
  color: #fff;
}

.tc-login-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  width: fit-content;
  margin-bottom: 1rem;
}

.tc-login-hero-title {
  margin: 0 0 0.5rem;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  line-height: 1.15;
}

.tc-login-hero-text {
  margin: 0;
  max-width: 28rem;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.98rem;
  line-height: 1.6;
}

.tc-login-panel {
  flex: 1 1 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem;
}

.tc-login-card {
  width: 100%;
  max-width: 440px;
  background: var(--tc-login-surface);
  border: 1px solid var(--tc-login-border);
  border-radius: var(--tc-login-radius);
  box-shadow: var(--tc-login-shadow);
  overflow: hidden;
  transition: background-color 0.22s ease, border-color 0.18s ease, box-shadow 0.22s ease;
}

.tc-login-card-head {
  padding: 2rem 2rem 1.25rem;
  text-align: center;
}

.tc-login-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}

.tc-login-logos img {
  max-height: 42px;
  width: auto;
  object-fit: contain;
}

.tc-login-logos .tc-login-logo-client {
  max-height: 48px;
}

.tc-login-card-head h1 {
  margin: 0 0 0.35rem;
  font-size: 1.45rem;
  font-weight: 700;
}

.tc-login-card-head p {
  margin: 0;
  color: var(--tc-login-muted);
  font-size: 0.95rem;
}

.tc-login-body {
  padding: 0 2rem 2rem;
}

.tc-login-alert {
  border-radius: 12px;
  padding: 0.85rem 1rem;
  margin-bottom: 1rem;
  font-size: 0.92rem;
  font-weight: 500;
}

.tc-login-alert-success {
  background: var(--tc-login-alert-success-bg);
  color: var(--tc-login-alert-success-text);
  border: 1px solid var(--tc-login-alert-success-border);
}

.tc-login-alert-error {
  background: var(--tc-login-alert-error-bg);
  color: var(--tc-login-alert-error-text);
  border: 1px solid var(--tc-login-alert-error-border);
}

.tc-login-field {
  margin-bottom: 1rem;
}

.tc-login-field label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--tc-login-label);
}

.tc-login-input-wrap {
  position: relative;
}

.tc-login-input-wrap svg {
  position: absolute;
  left: 0.95rem;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--tc-login-icon);
  pointer-events: none;
}

.tc-login-input {
  width: 100%;
  height: 48px;
  padding: 0 1rem 0 2.75rem;
  border: 1px solid var(--tc-login-border);
  border-radius: 12px;
  background: var(--tc-login-input-bg);
  color: var(--tc-login-text);
  font: inherit;
  font-size: 0.95rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.tc-login-input:focus {
  outline: none;
  border-color: var(--tc-login-accent);
  box-shadow: 0 0 0 4px var(--tc-login-accent-soft);
}

.tc-login-actions {
  display: grid;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.tc-login-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  min-height: 48px;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  border: 1px solid transparent;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.tc-login-btn:hover {
  transform: translateY(-1px);
}

.tc-login-btn-primary {
  background: var(--tc-login-accent);
  color: #fff;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

.tc-login-btn-primary:hover {
  background: var(--tc-login-accent-hover);
  color: #fff;
}

.tc-login-btn-secondary {
  background: var(--tc-login-btn-secondary-bg);
  color: var(--tc-login-text);
  border-color: var(--tc-login-border);
}

.tc-login-btn-secondary:hover {
  background: var(--tc-login-btn-secondary-hover);
  color: var(--tc-login-text);
}

html[data-theme="dark"] .tc-login-btn-dark {
  background: #334155;
  color: #f8fafc;
}

html[data-theme="dark"] .tc-login-btn-dark:hover {
  background: #475569;
  color: #fff;
}

.tc-login-btn-dark {
  background: #0f172a;
  color: #fff;
}

.tc-login-btn-dark:hover {
  background: #1e293b;
  color: #fff;
}

.tc-login-link {
  display: block;
  margin-top: 1rem;
  text-align: center;
  color: var(--tc-login-accent);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
}

.tc-login-link:hover {
  text-decoration: underline;
}

.tc-login-pane[hidden] {
  display: none !important;
}

.tc-login-footer {
  flex-shrink: 0;
  padding: 1rem 1.5rem 1.25rem;
  text-align: center;
  color: var(--tc-login-muted);
  font-size: 0.78rem;
  line-height: 1.55;
  background: var(--tc-login-surface);
  border-top: 1px solid var(--tc-login-border);
  transition: background-color 0.22s ease, border-color 0.18s ease, color 0.18s ease;
}

.tc-login-footer-line {
  margin: 0;
}

.tc-login-footer-extra {
  margin-top: 0.35rem;
  color: var(--tc-login-footer-extra);
  font-size: 0.72rem;
}

@media (max-width: 991.98px) {
  .tc-login-shell {
    flex-direction: column;
  }

  .tc-login-shell--hero-right {
    flex-direction: column-reverse;
  }

  .tc-login-hero {
    min-height: 220px;
  }

  .tc-login-panel {
    padding-top: 1.25rem;
  }
}

@media (max-width: 480px) {
  .tc-login-card-head,
  .tc-login-body {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  .tc-login-hero-inner {
    padding: 1.5rem;
  }
}
