.app-splash {
  position: fixed;
  inset: 0;
  z-index: 5000;

  display: grid;
  place-items: center;

  min-height: 100dvh;
  padding: 5%;

  overflow: hidden;

  background:
    linear-gradient(
      145deg,
      #f9fcff,
      #edf5fb 52%,
      #f5fbf7
    );
}

.splash-motion {
  position: absolute;
  inset: 0;
}

.splash-motion svg {
  width: 100%;
  height: 100%;
}

.splash-line {
  fill: none;
  stroke-width: 2;
  stroke-dasharray: 15 21;
}

.splash-line-a {
  stroke: rgba(0, 94, 157, 0.12);
  animation: splashLine 28s linear infinite;
}

.splash-line-b {
  stroke: rgba(0, 166, 81, 0.10);
  animation: splashLine 35s linear infinite reverse;
}

.splash-orb {
  transform-box: fill-box;
  transform-origin: center;
}

.splash-orb-blue {
  animation: splashBlue 26s ease-in-out infinite alternate;
}

.splash-orb-green {
  animation: splashGreen 31s ease-in-out infinite alternate;
}

.splash-orb-red {
  animation: splashRed 24s ease-in-out infinite alternate;
}

@keyframes splashLine {
  to {
    stroke-dashoffset: -400;
  }
}

@keyframes splashBlue {
  to {
    transform:
      translate(45px, 35px)
      scale(1.12);
  }
}

@keyframes splashGreen {
  to {
    transform:
      translate(-60px, -35px)
      scale(.92);
  }
}

@keyframes splashRed {
  to {
    transform:
      translate(-30px, 55px)
      scale(1.08);
  }
}

.splash-card {
  position: relative;
  z-index: 1;

  width: min(92vw, 520px);
  padding: clamp(25px, 5vw, 45px);

  background:
    rgba(255, 255, 255, 0.94);

  border:
    1px solid rgba(0, 94, 157, 0.16);

  border-top:
    5px solid var(--tt-blue);

  border-radius:
    var(--tt-radius-large);

  box-shadow:
    var(--tt-shadow-large);

  text-align: center;

  backdrop-filter:
    blur(14px);
}

.splash-logo {
  width: min(78%, 300px);
  margin-bottom: 25px;
}

.splash-kicker,
.page-kicker {
  margin-bottom: 6px;

  color: var(--tt-blue);

  font-size: 11px;
  font-weight: 800;
  letter-spacing: .15em;
}

.splash-status {
  margin-top: 15px;

  color: var(--tt-text);
  font-weight: 600;
}

.splash-detail {
  color: var(--tt-text-soft);
  font-size: 12px;
}

.splash-progress-track {
  height: 11px;

  margin: 22px 0 14px;

  overflow: hidden;

  background: #e4ebf1;
  border-radius: 999px;
}

.splash-progress-value {
  width: 5%;
  height: 100%;

  background:
    linear-gradient(
      90deg,
      var(--tt-blue),
      var(--tt-green)
    );

  border-radius: inherit;

  transition:
    width 250ms ease;
}


.auth-view {
  min-height: 100dvh;

  display: grid;
  place-items: center;

  padding: 4%;

  background:
    linear-gradient(
      145deg,
      #edf6fc,
      #f8fafc 58%,
      #eef9f3
    );
}

.auth-shell {
  display: grid;
  grid-template-columns:
    minmax(260px, .85fr)
    minmax(0, 1.4fr);

  width: min(96vw, 960px);

  overflow: hidden;

  background: var(--tt-surface);

  border:
    1px solid var(--tt-border);

  border-radius:
    16px;

  box-shadow:
    var(--tt-shadow-large);
}

.auth-brand-panel {
  position: relative;

  display: grid;
  place-items: center;

  min-height: 420px;
  padding: 13%;

  overflow: hidden;

  background:
    linear-gradient(
      145deg,
      var(--tt-blue-dark),
      var(--tt-blue)
    );
}

.auth-logo {
  position: relative;
  z-index: 2;

  width: 100%;
  max-width: 290px;

  padding: 25px;

  background: #ffffff;

  border-radius: 12px;

  box-shadow:
    0 20px 45px rgba(0, 0, 0, .14);
}

.auth-decoration span {
  position: absolute;

  display: block;

  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.18);
}

.auth-decoration span:nth-child(1) {
  width: 320px;
  height: 320px;
  left: -170px;
  top: -130px;
}

.auth-decoration span:nth-child(2) {
  width: 220px;
  height: 220px;
  right: -100px;
  bottom: -80px;
}

.auth-decoration span:nth-child(3) {
  width: 450px;
  height: 450px;
  right: -330px;
  top: -250px;
}

.auth-content {
  padding: clamp(32px, 7vw, 70px);
}

.auth-content > p {
  color: var(--tt-text-soft);
}

.app-main {
  width: 100%;
  padding: 22px 24px 35px;
}

.page-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;

  gap: 25px;

  margin-bottom: 18px;
}

.page-intro {
  max-width: 780px;

  color: var(--tt-text-soft);
}

.app-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 18px clamp(14px, 2.6vw, 34px);
  background: #ffffff;
  border-top: 1px solid var(--tt-border);
  color: var(--tt-text-soft);
  text-align: center;
}

.footer-brand {
  display: flex;
  justify-content: center;
  width: 100%;
}

.footer-brand img {
  display: block;
  width: 58px;
  max-height: 46px;
  object-fit: contain;
}

.footer-content {
  width: 100%;
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
}

.app-main > h1 { font-size: 24px; font-weight: 700; }
.page-intro.erp-intro { max-width: none; margin: 0 0 18px; color: var(--tt-text-soft); font-size: 13px; }

/* R10: autorização explícita na própria tela de inicialização. */
.splash-authorization[hidden] { display: none !important; }
.splash-authorization { margin-top: 1.2rem; }
.splash-action { display: inline-block; max-width: 100%; padding: .85rem 1.25rem;
  background: #08345c; color: #fff; border: 0; border-radius: .65rem;
  font: inherit; font-weight: 700; cursor: pointer; }
.splash-action:focus-visible { outline: .2rem solid #00a651; outline-offset: .2rem; }
.splash-action:disabled { opacity: .55; cursor: wait; }
.splash-auth-help { margin: .75rem auto 0; max-width: 35rem;
  color: #08345c; font-size: .85rem; line-height: 1.5; overflow-wrap: anywhere; }
