:root {
  --green-950: #006c36;
  --green-900: #007e3c;
  --green-800: #079347;
  --green-700: #0baa4f;
  --green-600: #2cbc4d;
  --green-500: #66cf43;
  --lime-400: #cce52e;
  --lime-300: #dff246;
  --white: #ffffff;
  --text: #34423a;
  --muted: #7e8b83;
  --danger: #9d3030;
  --success: #effff2;
  --card-shadow: 0 30px 72px rgba(20, 93, 45, 0.22);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: #f7f9f5;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  font-family: "Inter", Arial, sans-serif;
  background: #f7f9f5;
}

button,
input {
  font: inherit;
}

button {
  border: 0;
}

.login-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 55%) minmax(520px, 45%);
  background:
    radial-gradient(circle at 30% 28%, rgba(202, 229, 182, 0.2), transparent 32%),
    linear-gradient(135deg, #fbfcfa 0%, #f5f8f2 100%);
}

.brand-area {
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 38px 32px 32px 42px;
  background:
    radial-gradient(circle at 28% 46%, rgba(199, 229, 170, 0.26), transparent 28%),
    radial-gradient(circle at 70% 16%, rgba(222, 238, 210, 0.35), transparent 30%),
    radial-gradient(circle at 44% 78%, rgba(170, 218, 126, 0.18), transparent 30%),
    linear-gradient(135deg, #fbfcfa 0%, #f7f9f5 100%);
  background-size:
    125% 125%,
    145% 145%,
    150% 150%,
    100% 100%;
  background-position:
    28% 46%,
    70% 16%,
    44% 78%,
    0 0;
  animation: tuki-brand-flow 8.5s ease-in-out infinite;
}

.brand-area::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 140px;
  height: 100%;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(248, 250, 246, 0.94));
}

.brand-decoration {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.shape {
  position: absolute;
  display: block;
  border: 1px solid rgba(172, 201, 153, 0.18);
  background: rgba(194, 220, 177, 0.1);
  transform: rotate(35deg);
  will-change: transform, opacity;
}

.shape-one {
  width: 480px;
  height: 260px;
  top: -90px;
  left: 75px;
  border-radius: 42px;
  animation: tuki-shape-float-one 9s ease-in-out infinite;
}

.shape-two {
  width: 360px;
  height: 360px;
  top: 315px;
  left: -180px;
  border-radius: 24px;
  animation: tuki-shape-float-two 10.5s ease-in-out infinite;
}

.shape-three {
  width: 440px;
  height: 210px;
  right: -110px;
  bottom: 105px;
  border-radius: 32px;
  animation: tuki-shape-float-three 11.5s ease-in-out infinite;
}

.shape-four {
  width: 190px;
  height: 190px;
  left: 270px;
  bottom: -110px;
  border-radius: 26px;
  animation: tuki-shape-float-four 8s ease-in-out infinite;
}

.brand-content {
  width: min(100%, 890px);
  height: min(840px, calc(100vh - 64px));
  min-height: 650px;
  position: relative;
  z-index: 1;
}

.brand-name {
  position: absolute;
  top: 7%;
  left: 1%;
  display: flex;
  align-items: center;
  gap: 22px;
}

.brand-name span {
  display: block;
  font-size: clamp(6.5rem, 12vw, 11.6rem);
  line-height: 0.8;
  letter-spacing: -0.085em;
  font-weight: 800;
  background: linear-gradient(180deg, #8fd12e 0%, #058b48 86%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-name i {
  width: clamp(52px, 6vw, 82px);
  height: 7px;
  margin-top: 26px;
  border-radius: 999px;
  background: linear-gradient(90deg, #159b47, #79cf31);
}

.tuki-bird {
  position: absolute;
  z-index: 2;
  width: min(63vw, 690px);
  max-width: 76%;
  left: 3%;
  bottom: -1%;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 22px 20px rgba(34, 71, 33, 0.18));
  user-select: none;
  pointer-events: none;
}

.brand-message {
  position: absolute;
  z-index: 3;
  right: 1%;
  top: 57%;
  width: min(35%, 310px);
}

.brand-badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 3px 15px;
  color: #087d3b;
  border: 1.5px solid #35aa55;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  font-size: 0.79rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.brand-message p {
  margin: 15px 0 0;
  color: #202b24;
  font-size: clamp(1rem, 1.35vw, 1.28rem);
  line-height: 1.45;
  font-weight: 500;
}

.access-area {
  min-height: 100vh;
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 28px 38px 28px 18px;
  background:
    radial-gradient(circle at 80% 8%, rgba(229, 240, 213, 0.35), transparent 28%),
    linear-gradient(135deg, #f9fbf7 0%, #f5f8f2 100%);
}

.access-area::before,
.access-area::after {
  content: "";
  position: absolute;
  pointer-events: none;
  border: 1px solid rgba(182, 205, 167, 0.16);
  transform: rotate(35deg);
}

.access-area::before {
  width: 420px;
  height: 420px;
  top: -285px;
  right: -80px;
}

.access-area::after {
  width: 450px;
  height: 450px;
  bottom: -350px;
  left: -210px;
}

.login-card {
  width: min(100%, 680px);
  min-height: min(820px, calc(100vh - 56px));
  position: relative;
  z-index: 1;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(40px, 4.4vw, 66px) clamp(46px, 4.6vw, 66px) 34px;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 31px;
  box-shadow:
    var(--card-shadow),
    inset 0 1px 0 rgba(255, 255, 255, 0.24);
  isolation: isolate;
  background:
    radial-gradient(circle at 83% 5%, rgba(222, 239, 30, 0.92), transparent 30%),
    radial-gradient(circle at 21% 4%, rgba(185, 228, 69, 0.76), transparent 34%),
    radial-gradient(circle at 50% 76%, rgba(0, 126, 60, 0.42), transparent 38%),
    linear-gradient(135deg, #9fdd4b 0%, #35bf4f 42%, #08a64f 72%, #047e3c 100%);
  background-size:
    145% 145%,
    165% 165%,
    175% 175%,
    220% 220%;
  background-position:
    84% 4%,
    16% 8%,
    50% 80%,
    0% 50%;
  animation: tuki-green-flow 5.8s ease-in-out infinite;
}

.login-card::before {
  content: "";
  position: absolute;
  inset: -12%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.72;
  background:
    linear-gradient(
      115deg,
      transparent 22%,
      rgba(255, 255, 255, 0.16) 42%,
      rgba(217, 244, 82, 0.13) 52%,
      transparent 72%
    ),
    radial-gradient(
      circle at 45% 67%,
      rgba(255, 255, 255, 0.08),
      transparent 38%
    );
  transform: translate3d(-18%, 0, 0) rotate(-4deg);
  animation: tuki-soft-wave 5.2s ease-in-out infinite;
}

.login-card::after {
  content: "";
  position: absolute;
  z-index: 0;
  width: 74%;
  aspect-ratio: 1;
  top: -24%;
  left: -18%;
  pointer-events: none;
  border-radius: 50%;
  opacity: 0.55;
  filter: blur(18px);
  background:
    radial-gradient(
      circle,
      rgba(226, 244, 70, 0.72) 0%,
      rgba(113, 211, 67, 0.42) 42%,
      transparent 72%
    );
  animation: tuki-light-orbit 4.6s ease-in-out infinite alternate;
}

.login-header,
.login-form,
.login-footer {
  position: relative;
  z-index: 1;
}

.login-header {
  text-align: center;
}

.lock-symbol {
  width: 106px;
  height: 106px;
  margin: 0 auto 22px;
  display: grid;
  place-items: center;
  border: 3px double rgba(255, 255, 255, 0.68);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  box-shadow:
    inset 0 0 0 7px rgba(255, 255, 255, 0.05),
    0 8px 20px rgba(24, 102, 48, 0.08);
}

.lock-symbol svg {
  width: 43px;
  fill: none;
  stroke: #078940;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.login-header h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(2rem, 2.35vw, 2.55rem);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.login-header p {
  margin: 15px 0 0;
  color: rgba(255, 255, 255, 0.95);
  font-size: 1.04rem;
  font-weight: 500;
}

.login-form {
  margin-top: 34px;
}

.field + .field {
  margin-top: 20px;
}

.field label {
  display: block;
  margin-bottom: 10px;
  color: #fff;
  font-size: 0.98rem;
  font-weight: 600;
}

.input-control {
  min-height: 70px;
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 0 20px;
  border: 2px solid transparent;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 9px 24px rgba(17, 84, 40, 0.1);
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.input-control:focus-within {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.96);
  box-shadow:
    0 0 0 5px rgba(255, 255, 255, 0.2),
    0 11px 28px rgba(17, 84, 40, 0.14);
}

.input-control.is-invalid {
  border-color: rgba(146, 39, 39, 0.75);
  box-shadow:
    0 0 0 5px rgba(146, 39, 39, 0.13),
    0 10px 25px rgba(17, 84, 40, 0.12);
}

.field-icon {
  width: 24px;
  min-width: 24px;
  fill: none;
  stroke: #079443;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.75;
}

.input-control input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  color: #3b4a41;
  background: transparent;
  font-size: 1.05rem;
  font-weight: 500;
}

.input-control input::placeholder {
  color: var(--muted);
}

.password-toggle {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  padding: 0;
  color: #5b665f;
  border-radius: 12px;
  background: transparent;
  cursor: pointer;
  transition:
    color 150ms ease,
    background 150ms ease;
}

.password-toggle:hover,
.password-toggle:focus-visible {
  color: #07823e;
  outline: 0;
  background: rgba(13, 181, 84, 0.1);
}

.password-toggle svg {
  width: 25px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.eye-closed {
  display: none;
}

.password-toggle[aria-pressed="true"] .eye-open {
  display: none;
}

.password-toggle[aria-pressed="true"] .eye-closed {
  display: block;
}

.field-error {
  min-height: 18px;
  display: block;
  margin: 6px 4px 0;
  color: #fff3f3;
  font-size: 0.78rem;
  font-weight: 700;
}

.form-options {
  margin: 10px 0 27px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.remember-option {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #fff;
  cursor: pointer;
  user-select: none;
  font-weight: 500;
}

.remember-option input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.checkbox-ui {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border: 2px solid rgba(255, 255, 255, 0.95);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.04);
  transition:
    background 150ms ease,
    box-shadow 150ms ease;
}

.checkbox-ui svg {
  width: 17px;
  fill: none;
  stroke: #07863f;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.6;
  opacity: 0;
  transform: scale(0.7);
  transition:
    opacity 130ms ease,
    transform 130ms ease;
}

.remember-option input:checked + .checkbox-ui {
  background: #fff;
}

.remember-option input:checked + .checkbox-ui svg {
  opacity: 1;
  transform: scale(1);
}

.remember-option input:focus-visible + .checkbox-ui {
  box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.2);
}

.forgot-password {
  padding: 7px 0;
  color: #fff;
  background: transparent;
  cursor: pointer;
  font-weight: 500;
}

.forgot-password:hover,
.forgot-password:focus-visible {
  outline: 0;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.submit-button {
  width: 100%;
  min-height: 70px;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  padding: 0 25px;
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.72);
  border-radius: 20px;
  background:
    radial-gradient(circle at 82% 0%, rgba(183, 228, 58, 0.75), transparent 34%),
    linear-gradient(180deg, rgba(46, 183, 70, 0.94), rgba(2, 139, 62, 0.96));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 12px 25px rgba(12, 94, 42, 0.2);
  cursor: pointer;
  font-size: 1.15rem;
  font-weight: 800;
  transition:
    transform 160ms ease,
    filter 160ms ease,
    box-shadow 160ms ease;
}

.submit-button::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  background: linear-gradient(
    100deg,
    transparent 30%,
    rgba(255, 255, 255, 0.16),
    transparent 70%
  );
  transform: translateX(-100%);
}

.submit-button:hover {
  filter: brightness(1.04);
  transform: translateY(-2px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 16px 29px rgba(12, 94, 42, 0.24);
}

.submit-button:hover::before {
  opacity: 1;
  animation: button-shine 720ms ease;
}

.submit-button:focus-visible {
  outline: 4px solid rgba(255, 255, 255, 0.28);
  outline-offset: 3px;
}

.submit-button:active {
  transform: translateY(0);
}

.submit-button:disabled {
  cursor: wait;
  transform: none;
  filter: saturate(0.75);
}

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

.submit-button.is-loading .button-label {
  display: none;
}

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

.form-message {
  min-height: 23px;
  margin-top: 11px;
  text-align: center;
  font-size: 0.86rem;
  font-weight: 700;
}

.form-message.is-error {
  color: #fff0f0;
}

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

.login-footer {
  margin-top: 17px;
  text-align: center;
}

.footer-divider {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 17px;
}

.footer-divider span {
  height: 1px;
  background: rgba(255, 255, 255, 0.42);
}

.footer-divider svg {
  width: 28px;
  fill: none;
  stroke: rgba(255, 255, 255, 0.96);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.75;
}

.login-footer p {
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.95);
  font-size: 0.91rem;
  line-height: 1.45;
  font-weight: 400;
}

@keyframes tuki-brand-flow {
  0%,
  100% {
    background-position:
      28% 46%,
      70% 16%,
      44% 78%,
      0 0;
  }

  33% {
    background-position:
      36% 38%,
      60% 24%,
      56% 70%,
      0 0;
  }

  66% {
    background-position:
      22% 56%,
      76% 10%,
      34% 86%,
      0 0;
  }
}

@keyframes tuki-shape-float-one {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(35deg);
    opacity: 0.55;
  }

  50% {
    transform: translate3d(22px, 16px, 0) rotate(39deg);
    opacity: 0.82;
  }
}

@keyframes tuki-shape-float-two {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(35deg);
    opacity: 0.44;
  }

  50% {
    transform: translate3d(28px, -18px, 0) rotate(40deg);
    opacity: 0.75;
  }
}

@keyframes tuki-shape-float-three {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(35deg);
    opacity: 0.42;
  }

  50% {
    transform: translate3d(-26px, 18px, 0) rotate(31deg);
    opacity: 0.72;
  }
}

@keyframes tuki-shape-float-four {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(35deg);
    opacity: 0.38;
  }

  50% {
    transform: translate3d(18px, -14px, 0) rotate(41deg);
    opacity: 0.62;
  }
}

@keyframes tuki-green-flow {
  0% {
    background-position:
      84% 4%,
      16% 8%,
      50% 80%,
      0% 50%;
  }

  25% {
    background-position:
      58% 18%,
      38% 2%,
      72% 54%,
      38% 42%;
  }

  50% {
    background-position:
      94% 26%,
      6% 34%,
      30% 92%,
      100% 55%;
  }

  75% {
    background-position:
      68% 2%,
      48% 24%,
      62% 68%,
      58% 46%;
  }

  100% {
    background-position:
      84% 4%,
      16% 8%,
      50% 80%,
      0% 50%;
  }
}

@keyframes tuki-light-orbit {
  0% {
    transform: translate3d(-8%, -4%, 0) scale(0.9);
    opacity: 0.44;
  }

  50% {
    transform: translate3d(58%, 34%, 0) scale(1.22);
    opacity: 0.66;
  }

  100% {
    transform: translate3d(108%, 84%, 0) scale(0.94);
    opacity: 0.5;
  }
}

@keyframes tuki-soft-wave {
  0%,
  100% {
    transform: translate3d(-18%, 0, 0) rotate(-4deg);
    opacity: 0.5;
  }

  50% {
    transform: translate3d(18%, 4%, 0) rotate(3deg);
    opacity: 0.82;
  }
}

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

@keyframes button-shine {
  to {
    transform: translateX(100%);
  }
}

@media (max-width: 1280px) {
  .login-page {
    grid-template-columns: minmax(0, 50%) minmax(520px, 50%);
  }

  .brand-name span {
    font-size: clamp(6rem, 12vw, 9rem);
  }

  .brand-message {
    right: 0;
    width: 38%;
  }

  .tuki-bird {
    max-width: 80%;
  }

  .access-area {
    padding: 24px;
  }

  .login-card {
    padding-inline: 52px;
  }
}

@media (max-width: 940px) {
  .login-page {
    display: block;
  }

  .brand-area {
    min-height: 330px;
    height: 39vh;
    padding: 18px 22px;
  }

  .brand-area::after {
    top: auto;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 90px;
    background: linear-gradient(180deg, transparent, #f8faf6);
  }

  .brand-content {
    width: min(100%, 720px);
    height: 100%;
    min-height: 0;
  }

  .brand-name {
    top: 10%;
    left: 4%;
  }

  .brand-name span {
    font-size: clamp(5.5rem, 20vw, 8rem);
  }

  .brand-name i {
    width: 56px;
    height: 5px;
  }

  .tuki-bird {
    width: 370px;
    max-width: 55%;
    left: 17%;
    bottom: -30%;
  }

  .brand-message {
    top: 52%;
    right: 4%;
    width: 34%;
  }

  .brand-message p {
    font-size: 0.92rem;
  }

  .access-area {
    min-height: auto;
    margin-top: -35px;
    padding: 0 18px 28px;
  }

  .login-card {
    width: min(100%, 650px);
    min-height: auto;
    padding: 38px 32px 32px;
    border-radius: 28px;
  }

  .lock-symbol {
    width: 86px;
    height: 86px;
  }

  .lock-symbol svg {
    width: 35px;
  }
}

@media (max-width: 620px) {
  .brand-area {
    height: 260px;
    min-height: 260px;
  }

  .brand-name {
    top: 13%;
  }

  .brand-name span {
    font-size: clamp(4.5rem, 23vw, 6.5rem);
  }

  .brand-name i {
    display: none;
  }

  .tuki-bird {
    width: 310px;
    max-width: 75%;
    left: 4%;
    bottom: -32%;
  }

  .brand-message {
    top: 56%;
    right: 2%;
    width: 43%;
  }

  .brand-badge {
    padding-inline: 10px;
    font-size: 0.64rem;
  }

  .brand-message p {
    margin-top: 9px;
    font-size: 0.74rem;
  }

  .brand-message p br {
    display: none;
  }

  .login-card {
    padding: 31px 22px 27px;
    border-radius: 24px;
  }

  .login-header h1 {
    font-size: 1.84rem;
  }

  .login-header p {
    font-size: 0.93rem;
  }

  .login-form {
    margin-top: 28px;
  }

  .input-control {
    min-height: 60px;
    padding-inline: 16px;
  }

  .form-options {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 22px;
  }

  .submit-button {
    min-height: 62px;
  }

  .login-footer p br {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .brand-area,
  .shape-one,
  .shape-two,
  .shape-three,
  .shape-four,
  .login-card,
  .login-card::before,
  .login-card::after {
    animation: none !important;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}


/* =========================================================
   ANIMAÇÃO DE ENTRADA APÓS O LOGIN
   ========================================================= */

.login-content {
  position: relative;
  z-index: 2;
  transition:
    opacity 360ms ease,
    transform 460ms cubic-bezier(0.22, 1, 0.36, 1),
    filter 360ms ease;
}

.success-screen {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: grid;
  place-content: center;
  justify-items: center;
  padding: 46px;
  text-align: center;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(24px) scale(0.94);
  transition:
    opacity 440ms ease 180ms,
    transform 650ms cubic-bezier(0.22, 1, 0.36, 1) 120ms,
    visibility 0s linear 700ms;
}

.success-check {
  width: 112px;
  height: 112px;
  display: grid;
  place-items: center;
  margin-bottom: 25px;
  border: 3px solid rgba(255, 255, 255, 0.72);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  box-shadow:
    inset 0 0 0 8px rgba(255, 255, 255, 0.07),
    0 18px 36px rgba(0, 91, 42, 0.18);
  transform: scale(0.4) rotate(-22deg);
}

.success-check svg {
  width: 54px;
  fill: none;
  stroke: #ffffff;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.4;
  stroke-dasharray: 24;
  stroke-dashoffset: 24;
}

.success-eyebrow {
  margin-bottom: 12px;
  font-size: 0.83rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: rgba(255, 255, 255, 0.86);
}

.success-screen h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(2.15rem, 3vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.045em;
}

.success-screen h2 strong {
  color: #f0ffd0;
}

.success-screen p {
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.93);
  font-size: 1.02rem;
  font-weight: 500;
}

.success-progress {
  width: min(280px, 80%);
  height: 7px;
  margin-top: 30px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
}

.success-progress span {
  width: 0;
  height: 100%;
  display: block;
  border-radius: inherit;
  background: #ffffff;
}

.bird-success-bubble {
  position: absolute;
  z-index: 6;
  left: 49%;
  top: 43%;
  min-width: 175px;
  padding: 15px 18px;
  color: #176b38;
  border: 2px solid rgba(25, 143, 69, 0.25);
  border-radius: 20px 20px 20px 5px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 38px rgba(37, 83, 42, 0.16);
  pointer-events: none;
  opacity: 0;
  transform: translateY(16px) scale(0.82);
}

.bird-success-bubble strong,
.bird-success-bubble span {
  display: block;
}

.bird-success-bubble strong {
  font-size: 1rem;
}

.bird-success-bubble span {
  margin-top: 3px;
  color: #4d6958;
  font-size: 0.82rem;
  font-weight: 600;
}

.celebration-particles {
  position: absolute;
  inset: 0;
  z-index: 5;
  overflow: hidden;
  pointer-events: none;
}

.celebration-particle {
  --particle-x: 0px;
  --particle-y: -120px;
  --particle-size: 11px;
  --particle-delay: 0ms;
  --particle-rotate: 160deg;

  position: absolute;
  left: 40%;
  top: 58%;
  width: var(--particle-size);
  height: var(--particle-size);
  border-radius: 4px;
  opacity: 0;
  background: linear-gradient(135deg, #dff246, #159a49);
  box-shadow: 0 4px 10px rgba(23, 123, 58, 0.15);
}

body.login-approved {
  cursor: progress;
}

body.login-approved .login-card {
  animation:
    tuki-green-flow 3.8s ease-in-out infinite,
    success-card-pulse 2.4s ease-in-out both;
}

body.login-approved .login-content {
  opacity: 0;
  filter: blur(7px);
  transform: translateY(24px) scale(0.96);
  pointer-events: none;
}

body.login-approved .success-screen {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  transition-delay: 130ms, 100ms, 0s;
}

body.login-approved .success-check {
  animation: success-check-pop 700ms cubic-bezier(0.2, 1.55, 0.45, 1) 260ms both;
}

body.login-approved .success-check svg {
  animation: success-check-draw 460ms ease 680ms forwards;
}

body.login-approved .success-progress span {
  animation: success-progress-fill 2.35s linear 180ms forwards;
}

body.login-approved .tuki-bird {
  transform-origin: 50% 88%;
  animation: tuki-celebrate 2.25s cubic-bezier(0.22, 1, 0.36, 1) both;
  filter:
    drop-shadow(0 28px 24px rgba(34, 71, 33, 0.2))
    brightness(1.04)
    saturate(1.08);
}

body.login-approved .brand-name {
  animation: success-brand-pulse 1.65s ease-in-out both;
}

body.login-approved .brand-message {
  animation: success-message-exit 380ms ease forwards;
}

body.login-approved .bird-success-bubble {
  animation: success-bubble-show 520ms cubic-bezier(0.2, 1.4, 0.4, 1) 880ms both;
}

body.login-approved .shape-one {
  animation: success-shape-one 2.4s ease-in-out both;
}

body.login-approved .shape-two {
  animation: success-shape-two 2.4s ease-in-out both;
}

body.login-approved .shape-three {
  animation: success-shape-three 2.4s ease-in-out both;
}

body.login-approved .shape-four {
  animation: success-shape-four 2.4s ease-in-out both;
}

body.login-approved .celebration-particle {
  animation: celebration-particle-burst 1.3s ease-out var(--particle-delay) both;
}

.login-card.login-denied {
  animation: login-denied-shake 480ms ease;
}

@keyframes tuki-celebrate {
  0% {
    transform: translate3d(0, 0, 0) rotate(0deg) scale(1);
  }

  14% {
    transform: translate3d(0, -34px, 0) rotate(-4deg) scale(1.04);
  }

  28% {
    transform: translate3d(0, 2px, 0) rotate(4deg) scale(1.02);
  }

  42% {
    transform: translate3d(0, -21px, 0) rotate(-3deg) scale(1.06);
  }

  57% {
    transform: translate3d(0, 0, 0) rotate(3deg) scale(1.03);
  }

  72% {
    transform: translate3d(6px, -10px, 0) rotate(-2deg) scale(1.075);
  }

  86% {
    transform: translate3d(-4px, 0, 0) rotate(1.5deg) scale(1.04);
  }

  100% {
    transform: translate3d(0, 0, 0) rotate(0deg) scale(1.03);
  }
}

@keyframes success-card-pulse {
  0% {
    transform: scale(1);
    box-shadow:
      var(--card-shadow),
      inset 0 1px 0 rgba(255, 255, 255, 0.24);
  }

  48% {
    transform: scale(1.012);
    box-shadow:
      0 34px 84px rgba(20, 93, 45, 0.28),
      0 0 0 8px rgba(216, 241, 73, 0.12),
      inset 0 1px 0 rgba(255, 255, 255, 0.3);
  }

  100% {
    transform: scale(1);
    box-shadow:
      var(--card-shadow),
      inset 0 1px 0 rgba(255, 255, 255, 0.24);
  }
}

@keyframes success-check-pop {
  0% {
    transform: scale(0.35) rotate(-25deg);
    opacity: 0;
  }

  70% {
    transform: scale(1.1) rotate(4deg);
    opacity: 1;
  }

  100% {
    transform: scale(1) rotate(0deg);
    opacity: 1;
  }
}

@keyframes success-check-draw {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes success-progress-fill {
  0% {
    width: 0;
  }

  100% {
    width: 100%;
  }
}

@keyframes success-brand-pulse {
  0%,
  100% {
    transform: scale(1);
  }

  40% {
    transform: scale(1.035);
  }

  70% {
    transform: scale(0.99);
  }
}

@keyframes success-message-exit {
  to {
    opacity: 0;
    transform: translateY(12px);
  }
}

@keyframes success-bubble-show {
  0% {
    opacity: 0;
    transform: translateY(18px) scale(0.76) rotate(-4deg);
  }

  70% {
    opacity: 1;
    transform: translateY(-4px) scale(1.05) rotate(1deg);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1) rotate(0deg);
  }
}

@keyframes celebration-particle-burst {
  0% {
    opacity: 0;
    transform: translate3d(0, 0, 0) scale(0.2) rotate(0deg);
  }

  18% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform:
      translate3d(var(--particle-x), var(--particle-y), 0)
      scale(1)
      rotate(var(--particle-rotate));
  }
}

@keyframes success-shape-one {
  50% {
    transform: translate3d(40px, 24px, 0) rotate(43deg) scale(1.05);
    opacity: 0.9;
  }
}

@keyframes success-shape-two {
  50% {
    transform: translate3d(44px, -24px, 0) rotate(28deg) scale(1.08);
    opacity: 0.8;
  }
}

@keyframes success-shape-three {
  50% {
    transform: translate3d(-42px, 18px, 0) rotate(42deg) scale(1.07);
    opacity: 0.82;
  }
}

@keyframes success-shape-four {
  50% {
    transform: translate3d(24px, -30px, 0) rotate(46deg) scale(1.12);
    opacity: 0.76;
  }
}

@keyframes login-denied-shake {
  0%,
  100% {
    transform: translateX(0);
  }

  20% {
    transform: translateX(-9px);
  }

  40% {
    transform: translateX(8px);
  }

  60% {
    transform: translateX(-5px);
  }

  80% {
    transform: translateX(3px);
  }
}

@media (max-width: 940px) {
  .bird-success-bubble {
    left: 53%;
    top: 40%;
    min-width: 145px;
    padding: 11px 13px;
  }

  .success-screen {
    padding: 34px 26px;
  }
}

@media (max-width: 620px) {
  .bird-success-bubble {
    left: 53%;
    top: 46%;
    min-width: 125px;
    padding: 9px 11px;
  }

  .bird-success-bubble strong {
    font-size: 0.84rem;
  }

  .bird-success-bubble span {
    font-size: 0.7rem;
  }

  .success-check {
    width: 88px;
    height: 88px;
  }

  .success-check svg {
    width: 42px;
  }

  .success-screen h2 {
    font-size: 2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.login-approved .tuki-bird,
  body.login-approved .brand-name,
  body.login-approved .brand-message,
  body.login-approved .bird-success-bubble,
  body.login-approved .success-check,
  body.login-approved .success-check svg,
  body.login-approved .success-progress span,
  body.login-approved .celebration-particle {
    animation: none !important;
  }

  body.login-approved .bird-success-bubble,
  body.login-approved .success-screen {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  body.login-approved .success-check svg {
    stroke-dashoffset: 0;
  }

  body.login-approved .success-progress span {
    width: 100%;
  }
}


/* =========================================================
   PAPAGAIO PARADO ANTES DO LOGIN
   ========================================================= */

.tuki-bird {
  animation: none !important;
  transform: none !important;
}

body.login-approved .tuki-bird {
  animation: none !important;
  transform: none !important;
}

body.login-approved .brand-name,
body.login-approved .brand-message,
body.login-approved .shape-one,
body.login-approved .shape-two,
body.login-approved .shape-three,
body.login-approved .shape-four {
  animation: none !important;
}

/* =========================================================
   ANIMAÇÃO EXCLUSIVA APÓS O LOGIN — 5 SEGUNDOS
   ========================================================= */

.post-login-animation {
  position: fixed;
  inset: 0;
  z-index: 9999;
  overflow: hidden;
  display: grid;
  place-items: center;
  padding: 24px;
  color: #244333;
  background:
    radial-gradient(circle at 50% 48%, rgba(192, 231, 136, 0.42), transparent 34%),
    radial-gradient(circle at 18% 14%, rgba(224, 241, 196, 0.72), transparent 30%),
    linear-gradient(135deg, #fbfcfa 0%, #f4f8f0 100%);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 360ms ease,
    visibility 0s linear 400ms;
}

.post-login-animation::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(120deg, transparent 35%, rgba(255, 255, 255, 0.58), transparent 66%);
  transform: translateX(-100%);
}

.post-login-background {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.post-login-background span {
  position: absolute;
  display: block;
  border: 1px solid rgba(79, 159, 75, 0.13);
  border-radius: 44px;
  background: rgba(175, 220, 143, 0.09);
  transform: rotate(36deg);
}

.post-login-background span:nth-child(1) {
  width: 520px;
  height: 300px;
  top: -150px;
  left: 3%;
}

.post-login-background span:nth-child(2) {
  width: 420px;
  height: 420px;
  right: -170px;
  top: 24%;
}

.post-login-background span:nth-child(3) {
  width: 480px;
  height: 260px;
  left: 11%;
  bottom: -180px;
}

.post-login-content {
  position: relative;
  z-index: 2;
  width: min(100%, 1180px);
  min-height: min(790px, calc(100vh - 48px));
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  align-items: center;
  gap: 28px;
  padding: clamp(24px, 4vw, 52px);
  border: 1px solid rgba(68, 150, 72, 0.13);
  border-radius: 38px;
  background: rgba(255, 255, 255, 0.52);
  box-shadow:
    0 34px 90px rgba(30, 94, 47, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
}

.post-login-character {
  position: relative;
  width: 100%;
  min-height: 620px;
  display: grid;
  place-items: center;
  transform-origin: 50% 88%;
}

.post-login-character img {
  width: min(100%, 760px);
  max-height: 720px;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 30px 24px rgba(34, 74, 34, 0.19));
  user-select: none;
  pointer-events: none;
}

/*
  As pálpebras são sobreposições CSS.
  Elas simulam o piscar usando a imagem frontal enviada.
*/
.tuki-eyelid {
  position: absolute;
  z-index: 4;
  width: 6.5%;
  height: 8.4%;
  top: 21.1%;
  border-radius: 52% 52% 48% 48%;
  opacity: 0;
  transform: scaleY(0);
  transform-origin: 50% 0%;
  background:
    linear-gradient(
      180deg,
      #9add32 0%,
      #67bc24 45%,
      #3a8e20 100%
    );
  box-shadow:
    inset 0 -3px 5px rgba(0, 85, 31, 0.25),
    0 1px 2px rgba(20, 82, 29, 0.14);
}

.tuki-eyelid-left {
  left: 42.05%;
  transform: scaleY(0) rotate(-3deg);
}

.tuki-eyelid-right {
  left: 55.3%;
  transform: scaleY(0) rotate(3deg);
}

.post-login-message {
  padding: 34px 10px 34px 0;
}

.post-login-label {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 5px 15px;
  color: #087b3c;
  border: 1px solid rgba(19, 145, 67, 0.3);
  border-radius: 999px;
  background: rgba(240, 255, 228, 0.85);
  font-size: 0.77rem;
  font-weight: 800;
  letter-spacing: 0.13em;
}

.post-login-message h2 {
  margin: 21px 0 0;
  color: #20422e;
  font-size: clamp(2.3rem, 4.2vw, 4.3rem);
  line-height: 1.02;
  letter-spacing: -0.065em;
}

.post-login-message h2 strong {
  color: #078d45;
}

.post-login-message p {
  margin: 18px 0 0;
  color: #607468;
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  line-height: 1.55;
  font-weight: 500;
}

.post-login-progress {
  width: min(100%, 380px);
  height: 9px;
  margin-top: 32px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(23, 132, 61, 0.12);
}

.post-login-progress span {
  width: 0;
  height: 100%;
  display: block;
  border-radius: inherit;
  background:
    linear-gradient(90deg, #8ed035, #0ca04b);
}

/* A animação só inicia depois que o JavaScript aprova o login. */

body.login-approved {
  overflow: hidden;
}

body.login-approved .login-page {
  visibility: hidden;
}

body.login-approved .post-login-animation {
  opacity: 1;
  visibility: visible;
  transition-delay: 0s;
}

body.login-approved .post-login-animation::after {
  animation: post-login-light 5s ease-in-out both;
}

body.login-approved .post-login-character {
  animation: post-login-character-move 5s ease-in-out both;
}

body.login-approved .post-login-character img {
  animation: post-login-breathe 2.4s ease-in-out 2;
}

body.login-approved .tuki-eyelid {
  animation: tuki-realistic-blink 5s linear both;
}

body.login-approved .post-login-message {
  animation: post-login-message-enter 700ms cubic-bezier(0.22, 1, 0.36, 1) 200ms both;
}

body.login-approved .post-login-progress span {
  animation: post-login-progress-fill 5s linear forwards;
}

body.login-approved .post-login-background span:nth-child(1) {
  animation: post-shape-one 5s ease-in-out both;
}

body.login-approved .post-login-background span:nth-child(2) {
  animation: post-shape-two 5s ease-in-out both;
}

body.login-approved .post-login-background span:nth-child(3) {
  animation: post-shape-three 5s ease-in-out both;
}

@keyframes post-login-character-move {
  0% {
    transform: translate3d(0, 22px, 0) rotate(0deg) scale(0.94);
    opacity: 0;
  }

  12% {
    transform: translate3d(0, 0, 0) rotate(-1deg) scale(1);
    opacity: 1;
  }

  28% {
    transform: translate3d(0, -10px, 0) rotate(1.2deg) scale(1.015);
  }

  46% {
    transform: translate3d(5px, 0, 0) rotate(-0.8deg) scale(1);
  }

  64% {
    transform: translate3d(-4px, -12px, 0) rotate(1deg) scale(1.02);
  }

  82% {
    transform: translate3d(3px, -3px, 0) rotate(-0.6deg) scale(1.005);
  }

  100% {
    transform: translate3d(0, 0, 0) rotate(0deg) scale(1);
    opacity: 1;
  }
}

@keyframes post-login-breathe {
  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.018);
  }
}

@keyframes tuki-realistic-blink {
  0%,
  17%,
  20%,
  43%,
  46%,
  68%,
  71%,
  88%,
  91%,
  100% {
    opacity: 0;
  }

  18.2%,
  44.2%,
  69.2%,
  89.2% {
    opacity: 1;
    transform: scaleY(0.28);
  }

  18.9%,
  44.9%,
  69.9%,
  89.9% {
    opacity: 1;
    transform: scaleY(1);
  }

  19.5%,
  45.5%,
  70.5%,
  90.5% {
    opacity: 1;
    transform: scaleY(0.24);
  }
}

@keyframes post-login-message-enter {
  0% {
    opacity: 0;
    transform: translateX(28px);
  }

  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes post-login-progress-fill {
  to {
    width: 100%;
  }
}

@keyframes post-login-light {
  0% {
    transform: translateX(-100%);
  }

  50% {
    transform: translateX(0%);
  }

  100% {
    transform: translateX(100%);
  }
}

@keyframes post-shape-one {
  50% {
    transform: translate3d(34px, 20px, 0) rotate(41deg);
  }
}

@keyframes post-shape-two {
  50% {
    transform: translate3d(-32px, -18px, 0) rotate(31deg);
  }
}

@keyframes post-shape-three {
  50% {
    transform: translate3d(28px, -22px, 0) rotate(42deg);
  }
}

@media (max-width: 900px) {
  .post-login-content {
    min-height: calc(100vh - 32px);
    grid-template-columns: 1fr;
    gap: 0;
    padding: 24px;
  }

  .post-login-character {
    min-height: 54vh;
  }

  .post-login-character img {
    width: min(100%, 650px);
    max-height: 58vh;
  }

  .post-login-message {
    padding: 0 10px 24px;
    text-align: center;
  }

  .post-login-progress {
    margin-inline: auto;
  }
}

@media (max-width: 560px) {
  .post-login-animation {
    padding: 10px;
  }

  .post-login-content {
    min-height: calc(100vh - 20px);
    padding: 16px;
    border-radius: 26px;
  }

  .post-login-character {
    min-height: 51vh;
  }

  .post-login-message h2 {
    font-size: 2.35rem;
  }

  .post-login-message p {
    margin-top: 12px;
    font-size: 0.94rem;
  }

  .tuki-eyelid {
    top: 21.1%;
    height: 8.3%;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.login-approved .post-login-character,
  body.login-approved .post-login-character img,
  body.login-approved .tuki-eyelid,
  body.login-approved .post-login-message,
  body.login-approved .post-login-progress span,
  body.login-approved .post-login-animation::after,
  body.login-approved .post-login-background span {
    animation: none !important;
  }

  body.login-approved .post-login-progress span {
    width: 100%;
  }

  body.login-approved .post-login-message {
    opacity: 1;
    transform: none;
  }
}
