:root {
  color-scheme: dark;
  --bg: #11131a;
  --panel: #191c25;
  --panel-strong: #202432;
  --panel-soft: #262b3a;
  --line: #34394b;
  --text: #f6f7fb;
  --muted: #9ea7ba;
  --soft: #c9d0de;
  --accent: #57d68d;
  --accent-strong: #35bd71;
  --blue: #67a8ff;
  --rose: #ff6f91;
  --amber: #ffc857;
  --violet: #7c5cff;
  --violet-strong: #6447e8;
  --pink: #ff7ab6;
  --bubble-own: #2e6f55;
  --bubble-other: #272d3d;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.32);
}

* {
  box-sizing: border-box;
}

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

body {
  min-height: 100vh;
  background:
    linear-gradient(135deg, rgba(87, 214, 141, 0.12), transparent 28%),
    linear-gradient(315deg, rgba(103, 168, 255, 0.1), transparent 30%), var(--bg);
  color: var(--text);
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}

button,
input,
select {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

h1,
p {
  margin: 0;
}

.is-hidden {
  display: none !important;
}

[hidden] {
  display: none !important;
}

.auth-screen {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  min-height: 100svh;
  background: #0f001d;
  overflow-x: hidden;
  padding: 20px;
}

.auth-container {
  position: relative;
  width: 850px;
  max-width: 100%;
  min-height: 610px;
  overflow: hidden;
  border-radius: 20px;
  background: #1a0033;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
}

.form-container {
  position: absolute;
  top: 0;
  height: 100%;
  overflow: hidden;
  transition: all 0.6s ease-in-out;
}

.form-container[aria-hidden="true"] {
  visibility: hidden;
  pointer-events: none;
}

.sign-in-container {
  left: 0;
  width: 50%;
  z-index: 2;
}

.auth-container.active .sign-in-container {
  transform: translateX(100%);
}

.sign-up-container {
  left: 0;
  width: 50%;
  opacity: 0;
  z-index: 1;
}

.auth-container.active .sign-up-container {
  z-index: 5;
  opacity: 1;
  transform: translateX(100%);
  animation: show 0.6s;
}

@keyframes show {
  0% {
    opacity: 0;
    z-index: 5;
  }

  100% {
    opacity: 1;
    z-index: 5;
  }
}

.auth-container.is-panel-switching .form-container {
  transition: opacity 0.22s ease;
}

.auth-container.is-panel-switching.active .sign-up-container {
  animation: none;
  transition: opacity 0.22s ease;
}

.auth-container form {
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  height: 100%;
  padding: 0 40px;
  background: #1a0033;
  text-align: center;
}

.auth-container h1 {
  margin-bottom: 20px;
  color: white;
  font-size: 32px;
  font-weight: 800;
  line-height: 1.1;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
  padding: 0;
  white-space: nowrap;
}

.legal-wrapper {
  display: flex;
  gap: 12px;
  justify-content: center;
  width: 100%;
  margin: 18px 0 20px;
}

.legal-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  width: 44px;
  height: 44px;
  margin: 0;
  border: 1px solid #330066;
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.04);
  color: #b9a5dd;
  overflow: hidden;
  padding: 0 13px;
  text-decoration: none;
  transition:
    width 0.46s cubic-bezier(0.175, 0.885, 0.32, 1.275),
    transform 0.3s ease,
    color 0.3s ease,
    background 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}

.legal-link i {
  z-index: 2;
  width: 18px;
  flex: 0 0 18px;
  font-size: 17px;
  text-align: center;
  transition:
    color 0.3s ease,
    transform 0.5s ease;
}

.legal-link .link-text {
  z-index: 2;
  margin-left: 12px;
  color: white;
  font-size: 13px;
  font-weight: 800;
  opacity: 0;
  transform: translateX(-12px);
  transition:
    opacity 0.4s ease,
    transform 0.4s ease;
  white-space: nowrap;
}

.legal-link:hover,
.legal-link:focus-visible {
  width: 178px;
  color: white;
  outline: none;
  transform: translateY(-4px);
}

.legal-link:focus-visible {
  border-color: #57d68d;
  box-shadow: 0 0 0 3px rgba(87, 214, 141, 0.22);
}

.legal-link:hover .link-text,
.legal-link:focus-visible .link-text {
  opacity: 1;
  transform: translateX(0);
}

.legal-link:hover i,
.legal-link:focus-visible i {
  transform: rotate(360deg);
}

.privacy:hover,
.privacy:focus-visible {
  border-color: #57d68d;
  background: #2e6f55;
  box-shadow: 0 10px 20px rgba(87, 214, 141, 0.26);
}

.terms:hover,
.terms:focus-visible {
  border-color: #009f8f;
  background: #008f7a;
  box-shadow: 0 10px 20px rgba(0, 143, 122, 0.32);
}

.security:hover,
.security:focus-visible {
  border-color: #2c91e8;
  background: #247ed0;
  box-shadow: 0 10px 20px rgba(36, 126, 208, 0.32);
}

.acceptable:hover,
.acceptable:focus-visible {
  border-color: #c98718;
  background: #a66f11;
  box-shadow: 0 10px 20px rgba(166, 111, 17, 0.32);
}

.auth-step {
  position: relative;
  display: flex;
  align-items: center;
  flex-direction: column;
  width: 100%;
}

.step-count {
  margin-bottom: 8px;
  color: #57d68d;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.auth-step > span,
.auth-container form > span {
  margin-bottom: 15px;
  color: #b3b3b3;
  font-size: 12px;
}

.auth-step-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
}

.secondary-button {
  margin-top: 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 25px;
  background: rgba(255, 255, 255, 0.04);
  color: #d8caef;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 1px;
  padding: 12px 24px;
  text-transform: uppercase;
  transition:
    transform 80ms ease-in,
    border-color 0.3s ease,
    color 0.3s ease;
}

.secondary-button:hover {
  border-color: #57d68d;
  color: white;
}

.phone-control {
  position: relative;
  width: 100%;
  transition: margin-bottom 0.2s ease;
}

.phone-control.is-country-open {
  margin-bottom: 124px;
}

.country-trigger {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  width: 100%;
  min-height: 44px;
  margin: 8px 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: #26004d;
  color: white;
  padding: 0 12px;
  text-align: left;
  transition:
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}

.country-trigger:hover,
.country-trigger:focus-visible {
  border-color: #57d68d;
  box-shadow: 0 0 0 3px rgba(87, 214, 141, 0.14);
  outline: none;
}

.country-trigger [data-country-flag] {
  width: 18px;
  color: #b9a8cf;
  text-align: center;
}

.country-placeholder-icon {
  font-size: 14px;
}

.country-trigger [data-country-name] {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.country-trigger [data-country-code] {
  display: none;
}

.country-menu {
  position: absolute;
  top: 52px;
  left: 0;
  z-index: 50;
  width: 100%;
  border: 1px solid rgba(87, 214, 141, 0.26);
  border-radius: 8px;
  background: #190031;
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.34);
  padding: 6px;
}

.country-search-label {
  display: block;
  margin: 2px 2px 6px;
  color: #d8caef;
  font-size: 11px;
  font-weight: 900;
  text-align: left;
  text-transform: uppercase;
}

.country-search-field {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  min-height: 42px;
  border: 1px solid rgba(87, 214, 141, 0.38);
  border-radius: 6px;
  background: #26004d;
  color: #9ea7ba;
  padding: 0 11px;
}

.country-search-field:focus-within {
  border-color: #57d68d;
  box-shadow: 0 0 0 3px rgba(87, 214, 141, 0.14);
}

.auth-container .country-search-field input.country-search {
  height: 40px;
  margin: 0;
  border: 0;
  background: transparent;
  color: white;
  outline: none;
  padding: 0;
}

.auth-container .country-search-field input.country-search::placeholder {
  color: #b9a8cf;
}

.country-list {
  display: grid;
  gap: 4px;
  max-height: 112px;
  overflow-y: auto;
  padding-bottom: 8px;
  scrollbar-gutter: stable;
}

.country-option {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  width: 100%;
  min-height: 32px;
  border-radius: 6px;
  background: transparent;
  color: #f6f7fb;
  padding: 0 8px;
  text-align: left;
}

.country-option:hover,
.country-option:focus-visible {
  background: rgba(87, 214, 141, 0.14);
  outline: none;
}

.country-option span:nth-child(2) {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.country-option span:nth-child(3) {
  color: white;
  font-size: 12px;
  font-weight: 800;
}

.country-empty {
  margin: 0;
  color: #b3b3b3;
  font-size: 12px;
  font-weight: 700;
  padding: 9px 8px;
  text-align: center;
}

.phone-field {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  width: 100%;
  margin: 8px 0;
  border: 1px solid transparent;
  border-radius: 8px;
  background: #26004d;
  transition:
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}

.phone-field:focus-within {
  border-color: #57d68d;
  box-shadow: 0 0 0 3px rgba(87, 214, 141, 0.14);
}

.phone-prefix {
  color: #9ea7ba;
  font-weight: 800;
  padding-left: 15px;
}

.auth-container input,
.auth-container select {
  width: 100%;
  margin: 8px 0;
  border: 1px solid transparent;
  border-radius: 8px;
  background: #26004d;
  color: white;
  outline: none;
  padding: 12px 15px;
  transition: border-color 0.3s ease;
}

.phone-field input {
  margin: 0;
  border: 0;
  background: transparent;
  padding-left: 8px;
}

.detected-country {
  min-height: 14px;
  margin: -2px 0 4px;
  color: #d8caef;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.35;
  text-align: right;
}

.auth-legal-note {
  max-width: 340px;
  margin: 12px auto 0;
  color: #b8a8cf;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.45;
  text-align: center;
}

.auth-legal-note a {
  color: #57d68d;
  font-weight: 900;
  text-decoration: none;
}

.auth-legal-note a:hover,
.auth-legal-note a:focus-visible {
  color: white;
  outline: none;
  text-decoration: underline;
}

.auth-container select {
  min-width: 0;
  height: 44px;
  color-scheme: dark;
  padding: 0 10px;
}

.auth-container input:focus,
.auth-container select:focus {
  border-color: #57d68d;
  box-shadow: 0 0 0 3px rgba(87, 214, 141, 0.14);
}

.auth-container input.field-error,
.auth-container select.field-error {
  border-color: #ff7ab6;
  box-shadow: 0 0 0 3px rgba(255, 122, 182, 0.14);
}

.phone-control.field-error .country-trigger,
.phone-control.field-error .phone-field {
  border-color: #ff7ab6;
  box-shadow: 0 0 0 3px rgba(255, 122, 182, 0.14);
}

.auth-container input::placeholder {
  color: #777;
}

.auth-main-button:focus-visible,
.secondary-button:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(87, 214, 141, 0.22);
}

.form-error {
  min-height: 18px;
  width: 100%;
  margin: 4px 0 0;
  color: #ff7ab6;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
}

.form-error:not(:empty) {
  border: 1px solid rgba(255, 122, 182, 0.45);
  border-radius: 8px;
  background: rgba(255, 122, 182, 0.1);
  padding: 9px 10px;
}

.auth-main-button {
  margin-top: 10px;
  border-radius: 25px;
  background: #57d68d;
  color: #07110b;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 1px;
  padding: 12px 45px;
  text-transform: uppercase;
  transition:
    transform 80ms ease-in,
    background 0.3s ease;
}

.auth-main-button:hover {
  background: #35bd71;
}

.auth-main-button:disabled {
  opacity: 0.48;
  cursor: not-allowed;
  transform: none;
}

.auth-main-button:disabled:hover {
  background: #57d68d;
}

.auth-main-button.is-loading {
  cursor: progress;
  opacity: 0.72;
}

.auth-main-button:disabled:active {
  transform: none;
}

.auth-main-button:active {
  transform: scale(0.95);
}

.auth-main-button.ghost {
  border: 1px solid white;
  background: transparent;
  color: white;
}

.otp-status {
  min-height: 16px;
  width: 100%;
  margin: 0 0 6px;
  color: #d8caef;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.35;
  text-align: center;
}

.resend-code-button {
  margin-top: 6px;
  background: transparent;
  color: #d8caef;
  font-size: 12px;
  font-weight: 800;
  padding: 6px 8px;
  text-transform: none;
}

.resend-code-button:hover,
.resend-code-button:focus-visible {
  color: #57d68d;
  outline: none;
}

.resend-code-button:disabled {
  color: #7f718f;
  cursor: not-allowed;
}

.nuntelo-chihuahua {
  position: relative;
  width: 112px;
  height: 118px;
  margin: 0 0 20px;
  border: 0;
  background: transparent;
  cursor: pointer;
  filter: drop-shadow(0 18px 28px rgba(18, 0, 36, 0.38));
  padding: 0;
  transition: transform 0.22s ease;
}

.nuntelo-chihuahua::after {
  content: "";
  position: absolute;
  right: 18px;
  bottom: 0;
  left: 18px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  filter: blur(6px);
}

.nuntelo-chihuahua span {
  position: absolute;
  display: block;
}

.nuntelo-chihuahua:hover,
.nuntelo-chihuahua:focus-visible,
.nuntelo-chihuahua.is-petted {
  outline: none;
  transform: translateY(-2px);
}

.nuntelo-chihuahua.is-petted {
  animation: chihuahua-hop 0.7s ease-out;
}

.nuntelo-chihuahua:focus-visible {
  filter: drop-shadow(0 18px 28px rgba(18, 0, 36, 0.38))
    drop-shadow(0 0 14px rgba(87, 214, 141, 0.68));
}

.chihuahua-tail {
  top: 66px;
  right: 22px;
  z-index: 1;
  width: 23px;
  height: 24px;
  border: 6px solid #c6884b;
  border-bottom-color: transparent;
  border-left-color: transparent;
  border-radius: 50%;
  transform: rotate(18deg);
  transform-origin: 0 100%;
}

.nuntelo-chihuahua:hover .chihuahua-tail,
.nuntelo-chihuahua:focus-visible .chihuahua-tail,
.nuntelo-chihuahua.is-petted .chihuahua-tail {
  animation: chihuahua-tail-wag 0.32s ease-in-out 3;
}

.chihuahua-ear {
  top: 2px;
  z-index: 3;
  width: 33px;
  height: 56px;
  border-radius: 70% 70% 48% 48%;
  background:
    radial-gradient(ellipse at 50% 56%, #f1b5a8 0 35%, transparent 36%),
    linear-gradient(155deg, #d99b5b, #925726 76%);
  transform-origin: 50% 92%;
}

.chihuahua-ear-left {
  left: 18px;
  transform: rotate(-29deg);
}

.chihuahua-ear-right {
  right: 18px;
  transform: rotate(29deg);
}

.nuntelo-chihuahua:hover .chihuahua-ear-left,
.nuntelo-chihuahua:focus-visible .chihuahua-ear-left,
.nuntelo-chihuahua.is-petted .chihuahua-ear-left {
  animation: chihuahua-ear-left 0.34s ease-in-out 2;
}

.nuntelo-chihuahua:hover .chihuahua-ear-right,
.nuntelo-chihuahua:focus-visible .chihuahua-ear-right,
.nuntelo-chihuahua.is-petted .chihuahua-ear-right {
  animation: chihuahua-ear-right 0.34s ease-in-out 2;
}

.chihuahua-body {
  bottom: 12px;
  left: 31px;
  z-index: 2;
  width: 48px;
  height: 48px;
  border-radius: 54% 54% 42% 42%;
  background:
    radial-gradient(circle at 50% 62%, rgba(255, 226, 164, 0.35) 0 31%, transparent 32%),
    linear-gradient(155deg, #b97333, #7b431f);
}

.nuntelo-chihuahua.is-petted .chihuahua-body {
  animation: chihuahua-body-squish 0.78s ease-out;
}

.chihuahua-head {
  top: 32px;
  left: 28px;
  z-index: 4;
  width: 56px;
  height: 43px;
  border-radius: 46% 46% 52% 52%;
  background:
    radial-gradient(circle at 50% 58%, rgba(255, 226, 164, 0.42) 0 20%, transparent 21%),
    linear-gradient(150deg, #d99b5b, #8a4f24);
}

.nuntelo-chihuahua.is-petted .chihuahua-head {
  animation: chihuahua-head-joy 0.78s ease-out;
}

.chihuahua-eye {
  top: 45px;
  z-index: 5;
  width: 12px;
  height: 15px;
  border-radius: 50%;
  background: radial-gradient(circle at 34% 28%, #ffffff 0 14%, transparent 15%), #08030f;
  box-shadow: 0 0 10px rgba(8, 3, 15, 0.5);
}

.nuntelo-chihuahua.is-petted .chihuahua-eye {
  animation: chihuahua-eye-joy 0.78s ease-out;
}

.chihuahua-eye-left {
  left: 39px;
}

.chihuahua-eye-right {
  right: 38px;
}

.chihuahua-blush {
  top: 58px;
  z-index: 5;
  width: 9px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255, 144, 160, 0.36);
}

.chihuahua-blush-left {
  left: 35px;
}

.chihuahua-blush-right {
  right: 34px;
}

.chihuahua-snout {
  top: 57px;
  left: 44px;
  z-index: 5;
  width: 25px;
  height: 15px;
  border-radius: 50%;
  background: rgba(255, 226, 164, 0.72);
}

.chihuahua-nose {
  top: 55px;
  left: 53px;
  z-index: 6;
  width: 8px;
  height: 7px;
  border-radius: 50% 50% 60% 60%;
  background: #10051e;
}

.chihuahua-tongue {
  top: 64px;
  left: 53px;
  z-index: 6;
  width: 7px;
  height: 10px;
  border-radius: 0 0 8px 8px;
  background: #ff7ab6;
  opacity: 0;
  transform: scaleY(0.3);
  transform-origin: top;
}

.nuntelo-chihuahua.is-petted .chihuahua-tongue {
  animation: chihuahua-tongue-pop 0.92s ease-out;
}

.chihuahua-collar {
  top: 72px;
  left: 40px;
  z-index: 5;
  width: 31px;
  height: 5px;
  border-radius: 10px;
  background: #57d68d;
}

.chihuahua-tag {
  top: 75px;
  left: 52px;
  z-index: 6;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #f4f0ff;
  box-shadow: 0 0 9px rgba(255, 255, 255, 0.6);
}

.chihuahua-leg {
  bottom: 10px;
  z-index: 3;
  width: 15px;
  height: 24px;
  border-radius: 12px 12px 8px 8px;
  background: linear-gradient(180deg, #8e5428, #c48442);
}

.chihuahua-leg-left {
  left: 37px;
}

.chihuahua-leg-right {
  right: 37px;
}

.custom-cursor {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  opacity: 0;
  pointer-events: none;
  font-size: 32px;
  line-height: 1;
  filter: drop-shadow(0 0 6px rgba(168, 85, 247, 0.86));
  transform: translate(-50%, -50%);
  transition:
    opacity 0.15s ease,
    transform 0.1s ease-out;
}

.custom-cursor::before {
  display: block;
  width: 32px;
  height: 32px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctext x='16' y='25' text-anchor='middle' font-size='28'%3E%F0%9F%AB%B3%3C/text%3E%3C/svg%3E")
    center / contain no-repeat;
  content: "";
}

.custom-cursor.visible {
  opacity: 1;
}

.custom-cursor.petting {
  transform: translate(-50%, -50%) rotate(-20deg) scale(1.2);
}

.custom-cursor::after {
  position: absolute;
  top: -14px;
  right: -12px;
  width: 18px;
  height: 18px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23ff7ab6' d='M12 21s-7.2-4.4-9.7-8.2C-.4 8.7 2 3.6 6.4 3.6c2.2 0 3.9 1.3 4.8 2.7.9-1.4 2.6-2.7 4.8-2.7 4.4 0 6.8 5.1 4.1 9.2C19.2 16.6 12 21 12 21z'/%3E%3C/svg%3E")
    center / contain no-repeat;
  content: "";
  color: #ff7ab6;
  line-height: 1;
  opacity: 0;
  text-shadow: 0 0 10px rgba(255, 122, 182, 0.72);
  transform: translateY(8px) scale(0.6);
}

.custom-cursor.has-heart::after {
  animation: cursor-heart 1.45s ease-out;
}

.cursor-heart-particle {
  position: fixed;
  z-index: 1999;
  width: var(--heart-size, 16px);
  height: var(--heart-size, 16px);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23ff7ab6' d='M12 21s-7.2-4.4-9.7-8.2C-.4 8.7 2 3.6 6.4 3.6c2.2 0 3.9 1.3 4.8 2.7.9-1.4 2.6-2.7 4.8-2.7 4.4 0 6.8 5.1 4.1 9.2C19.2 16.6 12 21 12 21z'/%3E%3C/svg%3E")
    center / contain no-repeat;
  line-height: 1;
  opacity: 0;
  pointer-events: none;
  filter: drop-shadow(0 0 12px rgba(255, 122, 182, 0.82));
  transform: translate(-50%, -50%) scale(0.72);
  animation: cursor-heart-float 1.9s ease-out forwards;
}

@keyframes chihuahua-hop {
  0%,
  100% {
    transform: translateY(-4px) scale(1);
  }

  24% {
    transform: translateY(-18px) scale(1.04, 0.96);
  }

  46% {
    transform: translateY(-7px) scale(0.98, 1.04);
  }

  66% {
    transform: translateY(-13px) rotate(-2deg);
  }
}

@keyframes chihuahua-body-squish {
  0%,
  100% {
    transform: scale(1);
  }

  28% {
    transform: scale(1.08, 0.92);
  }

  55% {
    transform: scale(0.96, 1.07);
  }
}

@keyframes chihuahua-head-joy {
  0%,
  100% {
    transform: rotate(0deg);
  }

  25% {
    transform: rotate(-8deg) translateY(-2px);
  }

  55% {
    transform: rotate(7deg) translateY(-1px);
  }
}

@keyframes chihuahua-eye-joy {
  0%,
  100% {
    transform: scale(1);
  }

  38% {
    transform: scale(1.16);
  }

  58% {
    transform: scale(1, 0.45);
  }
}

@keyframes chihuahua-tongue-pop {
  0%,
  100% {
    opacity: 0;
    transform: scaleY(0.3);
  }

  24%,
  74% {
    opacity: 1;
    transform: scaleY(1);
  }
}

@keyframes chihuahua-tail-wag {
  0%,
  100% {
    transform: rotate(24deg);
  }

  50% {
    transform: rotate(58deg);
  }
}

@keyframes chihuahua-ear-left {
  0%,
  100% {
    transform: rotate(-29deg);
  }

  50% {
    transform: rotate(-17deg);
  }
}

@keyframes chihuahua-ear-right {
  0%,
  100% {
    transform: rotate(29deg);
  }

  50% {
    transform: rotate(17deg);
  }
}

@keyframes cursor-heart {
  0% {
    opacity: 0;
    transform: translateY(8px) scale(0.6);
  }

  35% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform: translateY(-30px) scale(1.22);
  }
}

@keyframes cursor-heart-float {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.72) rotate(0deg);
  }

  18% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform: translate(calc(-50% + var(--heart-x, 0px)), calc(-50% + var(--heart-y, -46px)))
      scale(1.24) rotate(var(--heart-rotate, 0deg));
  }
}

.overlay-container {
  position: absolute;
  top: 0;
  left: 50%;
  z-index: 100;
  width: 50%;
  height: 100%;
  overflow: hidden;
  transition: transform 0.6s ease-in-out;
}

.auth-container.active .overlay-container {
  transform: translateX(-100%);
}

.auth-container.is-panel-switching .overlay-container {
  pointer-events: none;
}

.overlay {
  position: relative;
  left: -100%;
  width: 200%;
  height: 100%;
  background:
    linear-gradient(135deg, rgba(87, 214, 141, 0.3), transparent 38%),
    linear-gradient(to right, #4b0082, #6a0ded);
  background-position: 0 0;
  background-repeat: no-repeat;
  background-size: cover;
  color: white;
  transform: translateX(0);
  transition: transform 0.6s ease-in-out;
}

.auth-container.active .overlay {
  transform: translateX(50%);
}

.overlay-panel {
  position: absolute;
  top: 0;
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  width: 50%;
  height: 100%;
  overflow: hidden;
  padding: 0 40px;
  text-align: center;
  transform: translateX(0);
  transition: transform 0.6s ease-in-out;
}

.overlay-panel[aria-hidden="true"] {
  visibility: hidden;
  pointer-events: none;
}

.overlay-panel p {
  margin: 20px 0 30px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
  font-weight: 300;
  letter-spacing: 0.5px;
  line-height: 20px;
}

.overlay-left {
  transform: translateX(-20%);
}

.auth-container.active .overlay-left {
  transform: translateX(0);
}

.overlay-right {
  right: 0;
  transform: translateX(0);
}

.auth-container.active .overlay-right {
  transform: translateX(20%);
}

.auth-toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 1000;
  display: none;
  border-radius: 10px;
  background: #6a0ded;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  color: white;
  padding: 15px 25px;
}

.auth-toast.visible {
  display: block;
  animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
  }

  to {
    transform: translateX(0);
  }
}

@media (max-width: 720px) {
  .auth-screen {
    align-items: flex-start;
    min-height: 100svh;
    overflow-y: auto;
    padding: 20px;
  }

  .auth-container {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 450px;
    min-height: auto;
    overflow: visible;
  }

  .form-container {
    position: relative;
    width: 100%;
    height: auto;
    min-height: auto;
    padding: 0;
    transform: none;
  }

  .sign-up-container,
  .sign-in-container {
    display: none;
  }

  .auth-container:not(.active) .sign-in-container,
  .auth-container.active .sign-up-container {
    display: flex;
    z-index: 5;
    opacity: 1;
    transform: none;
  }

  .auth-container form {
    justify-content: flex-start;
    height: auto;
    min-height: 500px;
    padding: 30px 32px;
  }

  .country-list {
    max-height: min(108px, 24vh);
  }

  .phone-control.is-country-open {
    margin-bottom: 118px;
  }

  .overlay-container {
    position: relative;
    left: 0;
    z-index: 10;
    width: 100%;
    height: auto;
    min-height: 104px;
    background: #1a0033;
    transform: none;
  }

  .auth-container.active .overlay-container {
    transform: none;
  }

  .overlay {
    left: 0;
    width: 100%;
    background: none;
    transform: none;
  }

  .auth-container.active .overlay {
    transform: none;
  }

  .overlay-panel {
    position: relative;
    display: none;
    width: 100%;
    min-height: 104px;
    padding: 8px 20px 18px;
    transform: none;
  }

  .nuntelo-chihuahua {
    width: 94px;
    height: 104px;
    margin: -10px 0 -20px;
    transform: scale(0.58);
  }

  .overlay-panel h1,
  .overlay-panel p {
    display: none;
  }

  .auth-container:not(.active) .overlay-right,
  .auth-container.active .overlay-left {
    display: flex;
  }

  .overlay-panel .ghost {
    border: 2px solid #6a0ded;
    color: #8b2cf5;
  }
}

@media (max-width: 430px) {
  .auth-screen {
    padding: 12px;
  }

  .auth-container form {
    min-height: 490px;
    padding: 0 22px;
  }

  .auth-container h1 {
    margin-bottom: 14px;
    font-size: 28px;
  }

  .legal-wrapper {
    gap: 8px;
    margin: 14px 0 16px;
  }

  .auth-step-actions {
    grid-template-columns: 1fr;
  }

  .auth-step-actions .secondary-button,
  .auth-step-actions .auth-main-button {
    width: 100%;
  }

  .auth-toast {
    right: 12px;
    bottom: 12px;
    left: 12px;
    text-align: center;
  }
}

@media (pointer: fine) {
  .nuntelo-chihuahua {
    cursor: none;
  }
}

@media (pointer: coarse) {
  .custom-cursor {
    display: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .custom-cursor,
  .cursor-heart-particle {
    display: none !important;
  }

  .nuntelo-chihuahua {
    cursor: pointer;
  }
}
