

:root {
  --font: 'Vazirmatn', system-ui, sans-serif;
  --isle-teal: #1a6b7a;
  --isle-glow: #4db8c9;
  --isle-gold: #e8c547;
  --isle-sand: #f0e2c4;
  --isle-parchment: #faf3e4;
  --isle-wood: #5d4037;
  --isle-ink: #3d2914;
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

html.auth-login-root,
body.auth-login-page {
  margin: 0;
  max-width: 100%;
  overflow: hidden;
}

body.auth-login-page {
  min-height: 100dvh;
  background: #2a8a9a;
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  line-height: 1.65;
}

.auth-login.island-loader {
  --loader-sea-ratio: 44%;
  --auth-hull-h: 38px;
  --auth-ship-drop: clamp(108px, 22vh, 200px);
  --auth-fish-offset: -42px;
  position: fixed;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  max-width: 100vw;
}

.auth-login .island-loader__sky {
  overflow: hidden;
}

.auth-login .island-loader__lighthouse-beam {
  display: none !important;
}

.auth-login .island-loader__lighthouse {
  transform: translateX(-18%);
  max-width: 42vw;
}

.auth-login .island-loader__ocean {
  overflow: hidden;
}

.auth-login .island-loader__birds,
.auth-login .island-loader__boats,
.auth-login .island-loader__messages,
.auth-login .island-loader__progress,
.auth-login .island-loader__moon,
.auth-login .island-loader__stars-field,
.auth-login .island-loader__night-aurora,
.auth-login .island-loader__shooting-star,
.auth-login .island-loader__fireflies,
.auth-login .island-loader__moon-reflection {
  display: none !important;
}

.auth-login__nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px clamp(14px, 4vw, 28px);
  pointer-events: none;
  max-width: 100vw;
  box-sizing: border-box;
}

.auth-login__nav > * {
  pointer-events: auto;
}

.auth-login__nav a {
  font-family: var(--font);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 100px;
  backdrop-filter: blur(8px);
  transition: transform 0.3s var(--ease-spring), background 0.25s;
}

.auth-login__nav-back {
  color: var(--isle-ink);
  background: rgba(250, 243, 228, 0.88);
  border: 1.5px solid rgba(196, 160, 106, 0.45);
}

.auth-login__nav-land {
  color: var(--isle-ink);
  background: linear-gradient(145deg, var(--isle-gold) 0%, #d4a82a 100%);
  border: 1.5px solid rgba(141, 110, 99, 0.35);
  box-shadow: 0 4px 16px rgba(61, 41, 20, 0.2);
}

.auth-login__fish-boats {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  overflow: hidden;
}

.auth-login__fish-boat {
  position: absolute;
  opacity: 0.88;
  filter: drop-shadow(0 4px 8px rgba(0, 40, 55, 0.18));
}

.auth-login__fish-boat--a {
  left: 6%;
  bottom: calc(100% - var(--loader-horizon) + var(--auth-fish-offset) + 8px);
  transform: scale(0.58);
  animation: auth-fish-boat-drift-a 9s ease-in-out infinite;
}

.auth-login__fish-boat--b {
  left: 24%;
  bottom: calc(100% - var(--loader-horizon) + var(--auth-fish-offset) - 12px);
  transform: scale(0.5);
  opacity: 0.78;
  animation: auth-fish-boat-drift-b 11s ease-in-out infinite;
  animation-delay: -2s;
}

.auth-login__fish-boat--c {
  right: 18%;
  left: auto;
  bottom: calc(100% - var(--loader-horizon) + var(--auth-fish-offset) + 4px);
  transform: scale(0.54);
  animation: auth-fish-boat-drift-c 10s ease-in-out infinite;
  animation-delay: -4s;
}

.auth-login__fish-boat--d {
  right: 5%;
  left: auto;
  bottom: calc(100% - var(--loader-horizon) + var(--auth-fish-offset) - 16px);
  transform: scale(0.44);
  opacity: 0.72;
  animation: auth-fish-boat-drift-d 12s ease-in-out infinite;
  animation-delay: -1.5s;
}

@keyframes auth-fish-boat-drift-a {
  0%, 100% { transform: scale(0.58) translate(0, 0); }
  50% { transform: scale(0.58) translate(6px, -3px); }
}

@keyframes auth-fish-boat-drift-b {
  0%, 100% { transform: scale(0.5) translate(0, 0); }
  50% { transform: scale(0.5) translate(-5px, -2px); }
}

@keyframes auth-fish-boat-drift-c {
  0%, 100% { transform: scale(0.54) translate(0, 0); }
  50% { transform: scale(0.54) translate(4px, -4px); }
}

@keyframes auth-fish-boat-drift-d {
  0%, 100% { transform: scale(0.44) translate(0, 0); }
  50% { transform: scale(0.44) translate(-4px, -2px); }
}

.auth-login__fish-boat-body {
  display: block;
  position: relative;
  animation: auth-fish-boat-bob 3s ease-in-out infinite;
}

@keyframes auth-fish-boat-bob {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50% { transform: translateY(-4px) rotate(1deg); }
}

.auth-login__fish-boat-hull {
  display: block;
  position: relative;
  width: 38px;
  height: 11px;
  background:
    linear-gradient(180deg, #8d6e63 0%, #5d4037 55%, #4e342e 100%);
  border-radius: 3px 3px 48% 48% / 2px 2px 65% 65%;
  box-shadow:
    0 3px 6px rgba(0, 40, 55, 0.22),
    inset 0 1px 0 rgba(255, 240, 220, 0.25);
}

.auth-login__fish-boat-hull--wide {
  width: 46px;
  height: 12px;
}

.auth-login__fish-boat-hull::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 20%;
  right: 20%;
  height: 2px;
  background: rgba(255, 240, 220, 0.35);
  border-radius: 2px;
}

.auth-login__fish-boat-fisher {
  position: absolute;
  bottom: calc(100% - 1px);
  left: 42%;
  z-index: 2;
  width: 9px;
  height: 11px;
  background: linear-gradient(180deg, #ffccbc 0%, #d7a88a 100%);
  border-radius: 45% 45% 3px 3px;
  box-shadow: 0 1px 2px rgba(0, 40, 55, 0.15);
}

.auth-login__fish-boat-fisher::before {
  content: '';
  position: absolute;
  top: -3px;
  left: 50%;
  width: 10px;
  height: 4px;
  margin-left: -5px;
  background: #5d4037;
  border-radius: 2px 2px 0 0;
}

.auth-login__fish-boat-fisher--duo::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: -8px;
  width: 7px;
  height: 9px;
  background: linear-gradient(180deg, #ffe0b2 0%, #d7a88a 100%);
  border-radius: 45% 45% 2px 2px;
  box-shadow: 0 1px 2px rgba(0, 40, 55, 0.12);
}

.auth-login__fish-boat-rod {
  position: absolute;
  bottom: 7px;
  left: 52%;
  z-index: 3;
  width: 26px;
  height: 2px;
  background: linear-gradient(90deg, #6d4c41, #8d6e63);
  border-radius: 2px;
  transform-origin: 0 50%;
  transform: rotate(-22deg);
  animation: auth-fish-rod-sway 4.2s ease-in-out infinite;
}

.auth-login__fish-boat-rod--far {
  width: 32px;
  transform: rotate(-30deg);
  animation-name: auth-fish-rod-sway-far;
}

.auth-login__fish-boat-rod::after {
  content: '';
  position: absolute;
  right: -1px;
  top: 50%;
  width: 3px;
  height: 3px;
  margin-top: -1.5px;
  background: #bdbdbd;
  border-radius: 50%;
}

@keyframes auth-fish-rod-sway {
  0%, 100% { transform: rotate(-22deg); }
  50% { transform: rotate(-14deg); }
}

@keyframes auth-fish-rod-sway-far {
  0%, 100% { transform: rotate(-30deg); }
  50% { transform: rotate(-20deg); }
}

.auth-login__fish-boat-line {
  position: absolute;
  bottom: 2px;
  left: calc(52% + 22px);
  z-index: 1;
  width: 1px;
  height: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0.15));
  transform-origin: top center;
  animation: auth-fish-line-sway 4.2s ease-in-out infinite;
}

.auth-login__fish-boat-rod--far + .auth-login__fish-boat-line {
  left: calc(52% + 28px);
  height: 26px;
}

@keyframes auth-fish-line-sway {
  0%, 100% { transform: rotate(6deg); }
  50% { transform: rotate(-4deg); }
}

.auth-login__fish-boat-line::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  width: 5px;
  height: 5px;
  margin-left: -2.5px;
  background: radial-gradient(circle at 35% 30%, #ef5350, #c62828);
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.35);
  animation: auth-fish-bobber 2.4s ease-in-out infinite;
}

@keyframes auth-fish-bobber {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(3px); }
}

.auth-login__fish-boat--net .auth-login__fish-boat-rod,
.auth-login__fish-boat--net .auth-login__fish-boat-line {
  display: none;
}

.auth-login__fish-boat-net {
  position: absolute;
  bottom: 6px;
  right: -4px;
  width: 22px;
  height: 20px;
  border: 1.5px solid rgba(141, 110, 99, 0.75);
  border-top: none;
  border-radius: 0 0 50% 50%;
  background:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 3px,
      rgba(141, 110, 99, 0.25) 3px,
      rgba(141, 110, 99, 0.25) 4px
    ),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 3px,
      rgba(141, 110, 99, 0.25) 3px,
      rgba(141, 110, 99, 0.25) 4px
    );
  transform-origin: top center;
  animation: auth-fish-net-pull 5s ease-in-out infinite;
}

.auth-login__fish-boat-net--small {
  width: 18px;
  height: 16px;
  right: 0;
}

.auth-login__fish-boat-net::before {
  content: '';
  position: absolute;
  top: -8px;
  left: 50%;
  width: 2px;
  height: 10px;
  margin-left: -1px;
  background: #6d4c41;
  transform: rotate(-12deg);
  transform-origin: bottom center;
}

@keyframes auth-fish-net-pull {
  0%, 100% { transform: rotate(-4deg) translateY(0); }
  50% { transform: rotate(2deg) translateY(-2px); }
}

.auth-login__fish-boat--b .auth-login__fish-boat-fisher {
  left: 36%;
}

.auth-login__fish-boat--c .auth-login__fish-boat-fisher {
  left: 38%;
}

.auth-login__sky-life {
  position: absolute;
  inset: 0;
  bottom: var(--loader-sea-ratio);
  z-index: 8;
  pointer-events: none;
  overflow: visible;
}

.auth-login__sky-actor {
  position: absolute;
  left: -120px;
  opacity: 0;
  filter: drop-shadow(0 3px 8px rgba(26, 60, 70, 0.18));
  animation: auth-login-sky-cross var(--sky-dur, 24s) linear forwards;
  will-change: transform, opacity;
}

.auth-login__sky-actor-inner {
  display: block;
  transform-origin: center center;
  transform: scale(var(--sky-scale, 1));
}

.auth-login__sky-actor.is-from-right .auth-login__sky-actor-inner {
  transform: scale(var(--sky-scale, 1)) scaleX(-1);
}

.auth-login__sky-actor.is-from-right {
  left: auto;
  right: -120px;
  animation-name: auth-login-sky-cross-reverse;
}

@keyframes auth-login-sky-cross {
  0% {
    transform: translate3d(0, 0, 0);
    opacity: 0;
  }
  4% {
    opacity: 0.92;
  }
  96% {
    opacity: 0.92;
  }
  100% {
    transform: translate3d(calc(100vw + 240px), -12px, 0);
    opacity: 0;
  }
}

@keyframes auth-login-sky-cross-reverse {
  0% {
    transform: translate3d(0, 0, 0);
    opacity: 0;
  }
  4% {
    opacity: 0.92;
  }
  96% {
    opacity: 0.92;
  }
  100% {
    transform: translate3d(calc(-100vw - 240px), 10px, 0);
    opacity: 0;
  }
}

.auth-login__sky-stork {
  position: relative;
  display: block;
  width: 54px;
  height: 28px;
}

.auth-login__sky-stork-body {
  position: absolute;
  top: 10px;
  left: 18px;
  width: 22px;
  height: 8px;
  background: #fff;
  border-radius: 50% 60% 40% 40%;
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.06);
}

.auth-login__sky-stork-neck {
  position: absolute;
  top: 6px;
  left: 34px;
  width: 16px;
  height: 5px;
  background: #fff;
  border-radius: 4px;
  transform: rotate(-8deg);
}

.auth-login__sky-stork-head {
  position: absolute;
  top: 3px;
  left: 46px;
  width: 9px;
  height: 7px;
  background: #fff;
  border-radius: 50% 70% 40% 40%;
}

.auth-login__sky-stork-beak {
  position: absolute;
  top: 5px;
  left: 53px;
  width: 7px;
  height: 3px;
  background: #f4a024;
  border-radius: 0 3px 3px 0;
}

.auth-login__sky-stork-wing {
  position: absolute;
  top: 4px;
  width: 22px;
  height: 10px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 70% 20% 60% 30%;
  animation: auth-login-stork-flap 0.55s ease-in-out infinite;
}

.auth-login__sky-stork-wing--l {
  left: 8px;
  transform: rotate(-18deg);
  transform-origin: right center;
}

.auth-login__sky-stork-wing--r {
  left: 20px;
  transform: rotate(12deg);
  transform-origin: left center;
  animation-delay: -0.12s;
}

.auth-login__sky-stork-legs {
  position: absolute;
  top: 17px;
  left: 24px;
  width: 14px;
  height: 12px;
  background:
    linear-gradient(#e85d5d, #e85d5d) 2px 0 / 2px 11px no-repeat,
    linear-gradient(#e85d5d, #e85d5d) 10px 0 / 2px 11px no-repeat;
}

@keyframes auth-login-stork-flap {
  0%, 100% { transform: rotate(-18deg) scaleY(1); }
  50% { transform: rotate(-32deg) scaleY(0.82); }
}

.auth-login__sky-actor--stork .auth-login__sky-stork-wing--r {
  animation-name: auth-login-stork-flap-r;
}

@keyframes auth-login-stork-flap-r {
  0%, 100% { transform: rotate(12deg) scaleY(1); }
  50% { transform: rotate(28deg) scaleY(0.82); }
}

.auth-login__sky-kite {
  position: relative;
  display: block;
  width: 34px;
  height: 52px;
  animation: auth-login-kite-sway 2.4s ease-in-out infinite;
}

.auth-login__sky-kite-diamond {
  position: absolute;
  top: 0;
  left: 50%;
  width: 22px;
  height: 22px;
  margin-left: -11px;
  background: linear-gradient(135deg, #ef5350 0%, #ff7043 50%, #ffca28 100%);
  transform: rotate(45deg);
  border-radius: 2px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}

.auth-login__sky-kite-diamond::before {
  content: '';
  position: absolute;
  inset: 4px;
  border: 1px solid rgba(255, 255, 255, 0.45);
}

.auth-login__sky-kite-tail {
  position: absolute;
  top: 20px;
  left: 50%;
  width: 2px;
  height: 28px;
  margin-left: -1px;
  background: linear-gradient(180deg, #8d6e63, transparent);
}

.auth-login__sky-kite-tail::before,
.auth-login__sky-kite-tail::after {
  content: '';
  position: absolute;
  left: -5px;
  width: 10px;
  height: 3px;
  background: #ff7043;
  border-radius: 2px;
}

.auth-login__sky-kite-tail::before { top: 8px; transform: rotate(-12deg); }
.auth-login__sky-kite-tail::after { top: 16px; transform: rotate(10deg); background: #ffca28; }

@keyframes auth-login-kite-sway {
  0%, 100% { transform: rotate(-6deg); }
  50% { transform: rotate(6deg); }
}

.auth-login__sky-plane {
  position: relative;
  display: block;
  width: 56px;
  height: 20px;
}

.auth-login__sky-plane-body {
  position: absolute;
  top: 7px;
  left: 8px;
  width: 38px;
  height: 7px;
  background: linear-gradient(180deg, #fff 0%, #dce8ec 100%);
  border-radius: 8px 14px 14px 8px;
}

.auth-login__sky-plane-wing {
  position: absolute;
  top: 10px;
  left: 20px;
  width: 22px;
  height: 5px;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 2px;
  transform: rotate(-2deg);
}

.auth-login__sky-plane-tail {
  position: absolute;
  top: 4px;
  left: 6px;
  width: 8px;
  height: 8px;
  background: rgba(255, 255, 255, 0.9);
  clip-path: polygon(100% 0, 0 50%, 100% 100%);
}

.auth-login__sky-plane-stripe {
  position: absolute;
  top: 9px;
  left: 28px;
  width: 12px;
  height: 2px;
  background: var(--isle-teal);
  border-radius: 2px;
  opacity: 0.75;
}

.auth-login__sky-balloon {
  position: relative;
  display: block;
  width: 34px;
  height: 58px;
  animation: auth-login-balloon-bob 3s ease-in-out infinite;
}

.auth-login__sky-balloon-envelope {
  position: absolute;
  top: 0;
  left: 50%;
  width: 26px;
  height: 32px;
  margin-left: -13px;
  background: radial-gradient(circle at 35% 30%, #ff8a80 0%, #e53935 55%, #c62828 100%);
  border-radius: 50% 50 45% 45%;
  box-shadow: inset -4px -6px 0 rgba(0, 0, 0, 0.08);
}

.auth-login__sky-balloon-envelope::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 50%;
  width: 6px;
  height: 4px;
  margin-left: -3px;
  background: #c62828;
  clip-path: polygon(50% 100%, 0 0, 100% 0);
}

.auth-login__sky-balloon-string {
  position: absolute;
  top: 32px;
  left: 50%;
  width: 1px;
  height: 16px;
  margin-left: -0.5px;
  background: rgba(61, 41, 20, 0.45);
}

.auth-login__sky-balloon-basket {
  position: absolute;
  top: 47px;
  left: 50%;
  width: 10px;
  height: 7px;
  margin-left: -5px;
  background: #8d6e63;
  border-radius: 2px;
}

@keyframes auth-login-balloon-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

.auth-login__ship-lane {
  position: absolute;
  inset: 0;
  z-index: 12;
  overflow: hidden;
  pointer-events: none;
}

.auth-login__ship.island-loader__boat {
  position: absolute;
  left: 88%;
  right: auto;
  top: auto;
  
  bottom: calc(100% - var(--loader-horizon) - var(--auth-hull-h) / 2 - var(--auth-ship-drop));
  opacity: 1 !important;
  pointer-events: auto;
  transform: translateX(-50%);
  transform-origin: center bottom;
  filter: drop-shadow(0 12px 24px rgba(0, 40, 55, 0.3));
  animation: auth-login-ship-pass 3.6s cubic-bezier(0.16, 1, 0.3, 1) forwards !important;
  max-width: min(420px, 94vw);
}

@keyframes auth-login-ship-pass {
  0% {
    left: 86%;
    transform: translateX(-50%) scale(0.78);
  }
  100% {
    left: 50%;
    transform: translateX(-50%) scale(1);
  }
}

@keyframes auth-login-ship-exit {
  0% {
    left: 50%;
    transform: translateX(-50%) scale(1);
    opacity: 1;
  }
  100% {
    left: -22%;
    transform: translateX(-50%) scale(0.82);
    opacity: 0;
  }
}

.auth-login__ship.island-loader__boat.is-exiting {
  animation: auth-login-ship-exit 2.6s cubic-bezier(0.45, 0, 0.55, 1) forwards !important;
  pointer-events: none;
}

.auth-login__ship.island-loader__boat.is-pass-done {
  left: 50%;
  transform: translateX(-50%) scale(1);
  animation: none !important;
}

.auth-login__ship .island-loader__boat-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  width: min(380px, 92vw);
  margin: 0 auto;
  animation: auth-login-ship-bob 2.6s ease-in-out infinite;
}

@keyframes auth-login-ship-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

.auth-login__ship-visual {
  display: block;
  position: relative;
  width: min(248px, 60vw);
  min-height: calc(var(--auth-hull-h) + 8px);
  transform: scaleX(-1);
  transform-origin: center bottom;
}

.auth-login__ship-mast-wrap {
  position: absolute;
  bottom: calc(var(--auth-hull-h) - 2px);
  left: 22%;
  z-index: 0;
  width: 0;
  height: 0;
}

.auth-login__ship .island-loader__boat-mast {
  display: block !important;
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 4px;
  height: clamp(52px, 10vh, 78px);
  margin-left: -2px;
  background: linear-gradient(90deg, #4e342e, #6d4c41 45%, #5d4037);
  border-radius: 2px;
  box-shadow: 1px 0 0 rgba(255, 255, 255, 0.12);
}

.auth-login__ship .island-loader__boat-sail {
  display: block !important;
  position: absolute;
  bottom: 2px;
  left: 50%;
  margin-left: -2px;
  width: 0;
  height: 0;
  border-left: clamp(18px, 4.5vw, 28px) solid transparent;
  border-right: clamp(18px, 4.5vw, 28px) solid transparent;
  border-bottom: clamp(56px, 11vh, 82px) solid rgba(255, 252, 245, 0.96);
  filter: drop-shadow(0 3px 6px rgba(0, 40, 55, 0.18));
  transform-origin: 50% 100%;
  animation: auth-login-sail-sway 3.4s ease-in-out infinite;
}

.auth-login__ship .island-loader__boat-sail--red::after {
  left: -6px;
  width: clamp(14px, 3.5vw, 22px);
  height: clamp(38px, 8vh, 56px);
}

@keyframes auth-login-sail-sway {
  0%, 100% { transform: rotate(-2deg); }
  50% { transform: rotate(2.5deg); }
}

.auth-login__ship-flag {
  position: absolute;
  top: 2px;
  left: 50%;
  width: 14px;
  height: 9px;
  margin-left: 3px;
  background: linear-gradient(135deg, var(--isle-teal), var(--isle-glow));
  border-radius: 0 3px 3px 0;
  box-shadow: 0 1px 3px rgba(0, 50, 60, 0.25);
  animation: auth-login-flag-flap 2.8s ease-in-out infinite;
}

.auth-login__ship-flag::before {
  content: '';
  position: absolute;
  right: 100%;
  top: 50%;
  width: 8px;
  height: 1px;
  margin-top: -0.5px;
  background: #5d4037;
}

@keyframes auth-login-flag-flap {
  0%, 100% { transform: skewY(0deg); }
  50% { transform: skewY(-8deg); }
}

.auth-login__ship-hull-wrap {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  position: relative;
  z-index: 2;
  width: 100%;
  padding-top: 4px;
}

.auth-login__ship .island-loader__boat-hull {
  display: block;
  position: relative;
  width: 100%;
  height: var(--auth-hull-h);
  margin: 0;
  background:
    repeating-linear-gradient(
      90deg,
      transparent 0,
      transparent 10px,
      rgba(78, 52, 46, 0.14) 10px,
      rgba(78, 52, 46, 0.14) 11px
    ),
    linear-gradient(180deg, #9a7b6a 0%, #6d4c41 38%, #5d4037 68%, #3e2723 100%);
  border-radius: 6px 6px 52% 52% / 5px 5px 72% 72%;
  box-shadow:
    0 6px 14px rgba(0, 40, 55, 0.28),
    inset 0 2px 0 rgba(255, 240, 220, 0.35),
    inset 0 -5px 0 rgba(30, 20, 15, 0.25);
  border: 1px solid rgba(62, 39, 35, 0.55);
  border-top-color: rgba(141, 110, 99, 0.7);
}

.auth-login__ship-gunwale {
  position: absolute;
  top: 5px;
  left: 6%;
  right: 6%;
  height: 4px;
  background: linear-gradient(180deg, #d7ccc8, #a1887f);
  border-radius: 3px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.35);
}

.auth-login__ship-gunwale::before,
.auth-login__ship-gunwale::after {
  content: '';
  position: absolute;
  top: -5px;
  width: 3px;
  height: 8px;
  background: #8d6e63;
  border-radius: 1px;
}

.auth-login__ship-gunwale::before {
  left: 8%;
}

.auth-login__ship-gunwale::after {
  right: 8%;
}

.auth-login__ship-port {
  position: absolute;
  top: 42%;
  left: 22%;
  width: 9px;
  height: 9px;
  background: radial-gradient(circle at 35% 30%, rgba(180, 230, 240, 0.9), rgba(77, 184, 201, 0.55) 55%, #3d2914 56%);
  border: 1.5px solid #4e342e;
  border-radius: 50%;
  box-shadow: inset 0 0 4px rgba(255, 255, 255, 0.45);
}

.auth-login__ship-port--2 {
  left: auto;
  right: 24%;
  width: 8px;
  height: 8px;
}

.auth-login__ship-logo {
  position: absolute;
  bottom: 18%;
  left: 50%;
  width: clamp(20px, 5.5vw, 28px);
  height: auto;
  transform: translateX(-50%) scaleX(-1);
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(61, 41, 20, 0.35));
  opacity: 0.96;
  pointer-events: none;
}

.auth-login__ship-wake {
  position: absolute;
  bottom: -2px;
  left: 8%;
  right: 8%;
  height: 8px;
  background:
    radial-gradient(ellipse 40% 100% at 20% 50%, rgba(255, 255, 255, 0.45), transparent),
    radial-gradient(ellipse 35% 100% at 55% 50%, rgba(255, 255, 255, 0.35), transparent),
    radial-gradient(ellipse 30% 100% at 85% 50%, rgba(255, 255, 255, 0.3), transparent);
  opacity: 0.75;
  animation: auth-login-wake-pulse 2.6s ease-in-out infinite;
  pointer-events: none;
}

@keyframes auth-login-wake-pulse {
  0%, 100% { opacity: 0.55; transform: scaleX(1); }
  50% { opacity: 0.85; transform: scaleX(1.04); }
}

.auth-login__deck {
  --auth-deck-nudge: clamp(10px, 2.8vw, 18px);
  --auth-deck-tilt: 2.4deg;
  --auth-deck-scale: 1;
  position: relative;
  order: -1;
  width: min(320px, calc(100vw - 32px));
  max-width: 100%;
  margin-bottom: 6px;
  z-index: 6;
  direction: rtl;
  unicode-bidi: isolate;
  transform:
    translateX(var(--auth-deck-nudge))
    rotate(var(--auth-deck-tilt))
    scale(var(--auth-deck-scale));
  transform-origin: 100% 100%;
}

@keyframes auth-login-deck-wobble {
  0%, 100% {
    transform: rotate(0deg) translateX(0);
  }
  12% {
    transform: rotate(-2.4deg) translateX(4px);
  }
  24% {
    transform: rotate(2.2deg) translateX(-4px);
  }
  36% {
    transform: rotate(-1.8deg) translateX(3px);
  }
  48% {
    transform: rotate(1.6deg) translateX(-3px);
  }
  60% {
    transform: rotate(-1.1deg) translateX(2px);
  }
  72% {
    transform: rotate(0.9deg) translateX(-2px);
  }
  84% {
    transform: rotate(-0.5deg) translateX(1px);
  }
}

@keyframes auth-login-hull-wobble {
  0%, 100% {
    transform: scaleX(-1) rotate(0deg) translateY(0);
  }
  25% {
    transform: scaleX(-1) rotate(0.85deg) translateY(-3px);
  }
  50% {
    transform: scaleX(-1) rotate(-0.7deg) translateY(2px);
  }
  75% {
    transform: scaleX(-1) rotate(0.4deg) translateY(-1px);
  }
}

.auth-login__deck-panel.is-wobble {
  animation: auth-login-deck-wobble 0.72s ease-in-out;
}

.auth-login__ship-visual.is-wobble {
  animation: auth-login-hull-wobble 0.72s ease-in-out;
}

.auth-login__deck-panel {
  position: relative;
  padding: clamp(14px, 2.4vh, 20px) clamp(12px, 3vw, 18px) clamp(10px, 1.8vh, 14px);
  background:
    linear-gradient(145deg, rgba(250, 243, 228, 0.98) 0%, rgba(232, 213, 168, 0.96) 55%, rgba(240, 226, 196, 0.97) 100%);
  border: 2px solid rgba(196, 160, 106, 0.55);
  border-radius: 20px;
  box-shadow:
    0 16px 40px rgba(0, 50, 60, 0.28),
    inset 0 0 60px rgba(196, 160, 106, 0.12),
    inset 0 2px 0 rgba(255, 255, 255, 0.85);
  overflow: visible;
  text-align: right;
}

.auth-login__deck-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
  pointer-events: none;
}

.auth-login__deck-panel::after {
  content: '';
  position: absolute;
  top: 0;
  left: 12px;
  right: 12px;
  z-index: 0;
  height: 4px;
  border-radius: 0 0 8px 8px;
  background: linear-gradient(90deg, transparent, rgba(77, 184, 201, 0.55), transparent);
  pointer-events: none;
}

.auth-login__captain {
  --captain-leg-h: 16px;
  position: absolute;
  left: auto;
  right: clamp(10px, 3.5%, 22px);
  top: 0;
  z-index: 10;
  width: 62px;
  height: 0;
  transform: none;
  transform-origin: bottom center;
  pointer-events: none;
  filter: drop-shadow(0 6px 12px rgba(26, 60, 70, 0.22));
  animation: auth-login-captain-idle 3.4s ease-in-out infinite;
  isolation: isolate;
}

@keyframes auth-login-captain-idle {
  0%, 100% {
    transform: translateY(0) rotate(-1.5deg);
  }
  50% {
    transform: translateY(-3px) rotate(1.5deg);
  }
}

@keyframes auth-login-captain-laugh {
  0%, 100% {
    transform: translateY(0) rotate(-1.5deg);
  }
  12% {
    transform: translateY(-4px) rotate(3deg);
  }
  24% {
    transform: translateY(-1px) rotate(-4deg);
  }
  36% {
    transform: translateY(-5px) rotate(4deg);
  }
  48% {
    transform: translateY(-2px) rotate(-3deg);
  }
  60% {
    transform: translateY(-4px) rotate(3deg);
  }
  72% {
    transform: translateY(-1px) rotate(-2deg);
  }
  84% {
    transform: translateY(-2px) rotate(2deg);
  }
}

@keyframes auth-login-captain-head-laugh {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  20%, 60% {
    transform: translateY(-2px) rotate(-5deg);
  }
  40%, 80% {
    transform: translateY(-1px) rotate(5deg);
  }
}

.auth-login__captain.is-laughing {
  animation: auth-login-captain-laugh 0.95s ease-in-out;
}

.auth-login__captain.is-laughing .auth-login__captain-figure {
  animation: auth-login-captain-head-laugh 0.95s ease-in-out;
}

.auth-login__captain.is-laughing .auth-login__captain-eye {
  height: 3px;
  top: 11px;
  border-radius: 50%;
  overflow: hidden;
}

.auth-login__captain.is-laughing .auth-login__captain-pupil {
  opacity: 0;
}

.auth-login__captain.is-laughing .auth-login__captain-brow--r {
  top: 6px;
  transform: rotate(18deg);
}

.auth-login__captain.is-laughing .auth-login__captain-brow--l {
  top: 6px;
  transform: rotate(-18deg);
}

.auth-login__captain.is-laughing .auth-login__captain-cheek {
  background: rgba(220, 100, 80, 0.55);
}

.auth-login__captain.is-laughing .auth-login__captain-mouth {
  top: 20px;
  width: 14px;
  height: 10px;
  margin-left: -7px;
  border: none;
  background: linear-gradient(180deg, #8b4a35 0%, #5c2e20 100%);
  border-radius: 45% 45% 50% 50%;
  box-shadow: inset 0 -2px 0 rgba(255, 220, 200, 0.25);
}

.auth-login__captain.is-laughing .auth-login__captain-mustache {
  top: 18px;
  transform: scaleY(0.85);
}

.auth-login__captain-bubble {
  position: absolute;
  left: calc(100% + 8px);
  right: auto;
  top: auto;
  bottom: calc(100% + 50px);
  z-index: 20;
  width: max-content;
  max-width: none;
  padding: 7px 12px;
  font-family: var(--font);
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1;
  color: var(--isle-ink);
  text-align: center;
  white-space: nowrap;
  background: linear-gradient(180deg, #fffef8 0%, #faf3e4 100%);
  border: 1.5px solid rgba(196, 160, 106, 0.55);
  border-radius: 14px 14px 14px 4px;
  box-shadow:
    0 8px 22px rgba(61, 41, 20, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  opacity: 0;
  transform: scale(0.82) translateX(-10px) translateY(6px);
  transform-origin: left bottom;
  pointer-events: none;
  transition: opacity 0.28s ease, transform 0.38s cubic-bezier(0.34, 1.45, 0.64, 1);
}

.auth-login__captain-bubble-text {
  display: block;
  white-space: nowrap;
}

.auth-login__captain-bubble::after {
  content: '';
  position: absolute;
  right: calc(100% - 1px);
  left: auto;
  top: auto;
  bottom: 10px;
  width: 0;
  height: 0;
  border: 7px solid transparent;
  border-right-color: #faf3e4;
  filter: drop-shadow(-1px 0 0 rgba(196, 160, 106, 0.35));
  transform: none;
}

.auth-login__captain-bubble.is-visible {
  opacity: 1;
  transform: scale(1) translateX(0);
  animation: auth-login-bubble-wiggle 0.55s ease-in-out 0.12s 2;
}

.auth-login__captain-bubble.is-welcome {
  border-color: rgba(77, 184, 201, 0.55);
  background: linear-gradient(180deg, #fffef8 0%, #eef9fb 100%);
  animation: auth-login-bubble-wiggle 0.45s ease-in-out 0.08s 1;
}

.auth-login__captain-bubble.is-welcome::after {
  border-right-color: #eef9fb;
}

.auth-login__captain-bubble.is-lockout {
  max-width: min(18rem, 72vw);
  padding: 9px 12px;
  white-space: normal;
  border-color: rgba(196, 90, 74, 0.62);
  background: linear-gradient(180deg, #fff8f4 0%, #fde8e2 100%);
  box-shadow:
    0 10px 24px rgba(120, 42, 32, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
  animation: auth-login-bubble-wiggle 0.45s ease-in-out 0.08s 1;
}

.auth-login__captain-bubble.is-lockout::after {
  border-right-color: #fde8e2;
}

.auth-login__captain-bubble.is-lockout .auth-login__captain-bubble-text {
  white-space: normal;
  line-height: 1.45;
  font-size: 0.72rem;
}

@keyframes auth-login-bubble-wiggle {
  0%, 100% { transform: scale(1) translateX(0) rotate(0deg); }
  25% { transform: scale(1.02) translateX(-2px) rotate(-2deg); }
  75% { transform: scale(1.02) translateX(1px) rotate(2deg); }
}

@keyframes auth-login-captain-like-bob {
  0%, 100% {
    transform: translateY(0) rotate(-1.5deg);
  }
  35% {
    transform: translateY(-5px) rotate(2deg);
  }
  70% {
    transform: translateY(-2px) rotate(-1deg);
  }
}

@keyframes auth-login-captain-like-pop {
  0% {
    opacity: 0;
    transform: scale(0) rotate(-28deg);
  }
  55% {
    opacity: 1;
    transform: scale(1.18) rotate(6deg);
  }
  100% {
    opacity: 1;
    transform: scale(1) rotate(0deg);
  }
}

.auth-login__captain-like {
  position: absolute;
  bottom: 12px;
  left: -10px;
  z-index: 12;
  font-size: 22px;
  line-height: 1;
  opacity: 0;
  transform: scale(0) rotate(-28deg);
  transform-origin: bottom center;
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.18));
  pointer-events: none;
}

.auth-login__captain.is-liking {
  animation: auth-login-captain-like-bob 0.9s ease-in-out;
}

.auth-login__captain.is-liking .auth-login__captain-like {
  animation: auth-login-captain-like-pop 0.75s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.auth-login__captain.is-liking .auth-login__captain-wheel {
  opacity: 0.25;
  transition: opacity 0.25s;
}

.auth-login__captain.is-liking .auth-login__captain-mouth {
  top: 21px;
  width: 12px;
  height: 5px;
  margin-left: -6px;
  border-bottom: 2px solid rgba(139, 90, 60, 0.7);
  border-radius: 0 0 50% 50%;
}

.auth-login__captain.is-liking .auth-login__captain-cheek {
  background: rgba(220, 120, 90, 0.45);
}

.auth-login__captain.is-liking .auth-login__captain-brow--r {
  transform: rotate(10deg);
}

.auth-login__captain.is-liking .auth-login__captain-brow--l {
  transform: rotate(-10deg);
}

.auth-login__captain::after {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  z-index: -1;
  width: 40px;
  height: 10px;
  margin-left: -20px;
  background: radial-gradient(ellipse 85% 100% at 50% 0%, rgba(61, 41, 20, 0.2), transparent 72%);
  pointer-events: none;
}

.auth-login__captain-figure {
  position: absolute;
  bottom: calc(100% - 2px);
  left: 0;
  right: 0;
  width: 62px;
  height: 58px;
}

.auth-login__captain-hat {
  position: absolute;
  top: -7px;
  left: 50%;
  z-index: 6;
  width: 34px;
  height: 10px;
  margin-left: -17px;
  background: linear-gradient(180deg, #1a3d52 0%, #0f2838 100%);
  border-radius: 4px 4px 2px 2px;
  box-shadow: inset 0 -2px 0 rgba(232, 197, 71, 0.65);
  transform: translateY(0);
}

.auth-login__captain-hat::before {
  content: '';
  position: absolute;
  top: -4px;
  left: 50%;
  width: 40px;
  height: 6px;
  margin-left: -20px;
  background: #0f2838;
  border-radius: 3px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.12);
}

.auth-login__captain-hat::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 4px;
  right: 4px;
  height: 2px;
  background: var(--isle-gold);
  border-radius: 2px;
  opacity: 0.9;
}

.auth-login__captain-head {
  position: absolute;
  top: 9px;
  left: 50%;
  z-index: 4;
  width: 32px;
  height: 28px;
  margin-left: -16px;
  background: linear-gradient(155deg, #f5d4b0 0%, #e8b88a 45%, #d4a06a 100%);
  border-radius: 48% 48% 42% 42%;
  box-shadow:
    inset 0 -3px 0 rgba(180, 120, 70, 0.18),
    inset 2px 0 0 rgba(255, 230, 200, 0.35),
    inset -2px 0 0 rgba(160, 100, 60, 0.12);
  overflow: visible;
}

.auth-login__captain-ear {
  position: absolute;
  top: 12px;
  z-index: 1;
  width: 6px;
  height: 9px;
  background: linear-gradient(90deg, #e0b080, #d4a06a);
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(139, 105, 20, 0.15);
}

.auth-login__captain-eye,
.auth-login__captain-nose,
.auth-login__captain-cheek,
.auth-login__captain-mustache,
.auth-login__captain-mouth {
  z-index: 2;
}

.auth-login__captain-ear--r {
  right: -3px;
}

.auth-login__captain-ear--l {
  left: -3px;
}

.auth-login__captain-brow {
  position: absolute;
  top: 7px;
  width: 9px;
  height: 3px;
  background: #8b6914;
  border-radius: 3px 3px 1px 1px;
  opacity: 0.75;
}

.auth-login__captain-brow--r {
  right: 5px;
  transform: rotate(8deg);
}

.auth-login__captain-brow--l {
  left: 5px;
  transform: rotate(-8deg);
}

.auth-login__captain-eye {
  position: absolute;
  top: 10px;
  width: 8px;
  height: 7px;
  background: #fffef8;
  border-radius: 50% 50% 45% 45%;
  border: 1px solid rgba(61, 41, 20, 0.2);
  box-shadow: inset 0 -1px 0 rgba(61, 41, 20, 0.08);
  overflow: hidden;
}

.auth-login__captain-eye--r {
  right: 5px;
}

.auth-login__captain-eye--l {
  left: 5px;
}

.auth-login__captain-pupil {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 4px;
  height: 4px;
  margin-left: -2px;
  background: var(--isle-ink);
  border-radius: 50%;
}

.auth-login__captain-pupil::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 1.5px;
  height: 1.5px;
  background: #fff;
  border-radius: 50%;
  opacity: 0.9;
}

.auth-login__captain-nose {
  position: absolute;
  top: 14px;
  left: 50%;
  width: 7px;
  height: 9px;
  margin-left: -3.5px;
  background: linear-gradient(180deg, #d9a574 0%, #c48858 100%);
  border-radius: 40% 40% 50% 50%;
  box-shadow: 1px 0 0 rgba(139, 105, 20, 0.12);
}

.auth-login__captain-cheek {
  position: absolute;
  top: 16px;
  width: 6px;
  height: 4px;
  background: rgba(220, 140, 100, 0.35);
  border-radius: 50%;
}

.auth-login__captain-cheek--r {
  right: 2px;
}

.auth-login__captain-cheek--l {
  left: 2px;
}

.auth-login__captain-mustache {
  position: absolute;
  top: 19px;
  left: 50%;
  width: 20px;
  height: 4px;
  margin-left: -10px;
  background: linear-gradient(180deg, #ece6d8 0%, #d8d0c0 100%);
  border-radius: 0 0 35% 35%;
  box-shadow:
    -7px 0 0 -2px #ece6d8,
    7px 0 0 -2px #ece6d8;
}

.auth-login__captain-mouth {
  position: absolute;
  top: 21px;
  left: 50%;
  width: 10px;
  height: 4px;
  margin-left: -5px;
  border-bottom: 2px solid rgba(139, 90, 60, 0.55);
  border-radius: 0 0 50% 50%;
}

.auth-login__captain-beard {
  position: absolute;
  top: auto;
  bottom: 18px;
  left: 50%;
  z-index: 1;
  width: 28px;
  height: 12px;
  margin-left: -14px;
  background: linear-gradient(180deg, #f0ebe0 0%, #ddd4c4 100%);
  border-radius: 0 0 50% 50%;
  box-shadow: 0 2px 0 rgba(139, 105, 20, 0.08);
}

.auth-login__captain-coat {
  position: absolute;
  top: auto;
  bottom: 0;
  left: 50%;
  z-index: 1;
  width: 36px;
  height: 22px;
  margin-left: -18px;
  background: linear-gradient(180deg, #1a4a5c 0%, #123a48 100%);
  border-radius: 6px 6px 10px 10px;
  box-shadow:
    inset 0 2px 0 rgba(77, 184, 201, 0.25),
    0 3px 0 rgba(15, 40, 56, 0.35);
}

.auth-login__captain-coat::before,
.auth-login__captain-coat::after {
  content: '';
  position: absolute;
  top: 6px;
  width: 5px;
  height: 5px;
  background: var(--isle-gold);
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(212, 168, 42, 0.4);
}

.auth-login__captain-coat::before {
  left: 7px;
}

.auth-login__captain-coat::after {
  right: 7px;
}

.auth-login__captain-wheel {
  position: absolute;
  bottom: 2px;
  left: -6px;
  top: auto;
  right: auto;
  z-index: 4;
  width: 18px;
  height: 18px;
  background: radial-gradient(circle at 35% 30%, #8b6914, #5d4037 70%);
  border: 2px solid #3d2914;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(61, 41, 20, 0.35);
  animation: auth-login-wheel-spin 10s linear infinite;
}

@keyframes auth-login-wheel-spin {
  to {
    transform: rotate(360deg);
  }
}

.auth-login__captain-wheel::before {
  content: '';
  position: absolute;
  inset: 3px;
  border: 1px dashed rgba(250, 243, 228, 0.45);
  border-radius: 50%;
}

.auth-login__captain-wheel::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 2px;
  height: 10px;
  margin: -5px 0 0 -1px;
  background: rgba(250, 243, 228, 0.5);
  border-radius: 1px;
  box-shadow:
    5px 0 0 rgba(250, 243, 228, 0.45),
    -5px 0 0 rgba(250, 243, 228, 0.45),
    0 5px 0 rgba(250, 243, 228, 0.45),
    0 -5px 0 rgba(250, 243, 228, 0.45);
  transform: rotate(22deg);
}

.auth-login__captain-legs {
  position: absolute;
  top: 0;
  left: 50%;
  z-index: 3;
  width: 44px;
  height: var(--captain-leg-h);
  margin-left: -22px;
}

.auth-login__captain-legs::before,
.auth-login__captain-legs::after {
  content: '';
  position: absolute;
  top: 0;
  width: 13px;
  height: var(--captain-leg-h);
  background: linear-gradient(180deg, #2a4a58 0%, #1a3540 100%);
  border-radius: 3px 3px 6px 6px;
  box-shadow: 0 2px 0 #0f2838;
}

.auth-login__captain-legs::before {
  left: 4px;
  transform: rotate(14deg);
  transform-origin: top center;
}

.auth-login__captain-legs::after {
  right: 4px;
  transform: rotate(-12deg);
  transform-origin: top center;
}

.auth-login__deck-head,
.auth-login__form {
  position: relative;
  z-index: 2;
}

.auth-login__deck-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(6px, 1vh, 10px) clamp(14px, 4vw, 18px) clamp(8px, 1.2vh, 12px);
  margin-bottom: clamp(10px, 1.6vh, 14px);
  border-bottom: 1px dashed rgba(139, 105, 20, 0.35);
}

.auth-login__deck-badge {
  display: inline-block;
  margin: 0 0 clamp(8px, 1.2vh, 12px);
  padding: 4px 12px;
  font-size: clamp(0.68rem, 2.2vw, 0.74rem);
  font-weight: 800;
  color: var(--isle-ink);
  background: rgba(232, 197, 71, 0.35);
  border: 1px solid rgba(212, 168, 42, 0.45);
  border-radius: 100px;
  letter-spacing: 0.02em;
}

.auth-login__deck-desc {
  width: 100%;
  margin: 0;
  padding: 0;
  font-size: clamp(0.72rem, 2.2vw, 0.78rem);
  font-weight: 700;
  color: #8b7355;
  line-height: 1.5;
  text-align: center;
}

.auth-login__form {
  display: flex;
  flex-direction: column;
  gap: clamp(6px, 1.2vh, 10px);
  direction: rtl;
}

.auth-login__field {
  display: flex;
  flex-direction: column;
  gap: 3px;
  text-align: right;
}

.auth-login__label {
  font-family: var(--font);
  font-size: 0.74rem;
  font-weight: 800;
  color: #8b6914;
}

.auth-login__input {
  width: 100%;
  padding: clamp(8px, 1.5vh, 10px) 12px;
  font-family: var(--font);
  font-size: clamp(0.8rem, 2.5vw, 0.86rem);
  font-weight: 600;
  color: var(--isle-ink);
  background: rgba(255, 252, 245, 0.92);
  border: 1.5px solid rgba(196, 160, 106, 0.45);
  border-radius: 12px;
  outline: none;
  box-sizing: border-box;
  text-align: right;
  direction: rtl;
  box-shadow: inset 0 1px 3px rgba(61, 41, 20, 0.06);
  transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
}

.auth-login__input::placeholder {
  color: rgba(139, 115, 85, 0.65);
  font-weight: 500;
}

.auth-login__input:focus {
  background: #fff;
  border-color: var(--isle-teal);
  box-shadow:
    inset 0 1px 2px rgba(61, 41, 20, 0.04),
    0 0 0 3px rgba(77, 184, 201, 0.22);
}

.auth-login__input.is-error {
  border-color: #c62828;
  box-shadow: 0 0 0 2px rgba(198, 40, 40, 0.15);
}

.auth-login__field--captcha {
  margin-bottom: 2px;
}

.auth-login__captcha-row {
  display: flex;
  align-items: stretch;
  gap: 8px;
}

.auth-login__captcha-code {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 4.5rem;
  padding: 0 10px;
  font-family: ui-monospace, 'Cascadia Code', 'Segoe UI Mono', monospace;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  color: #2d5a63;
  background: linear-gradient(180deg, #f8fffe 0%, #e8f6f8 100%);
  border: 1px solid rgba(77, 184, 201, 0.45);
  border-radius: 10px;
  box-shadow: inset 0 1px 2px rgba(61, 41, 20, 0.06);
  user-select: none;
}

.auth-login__captcha-refresh {
  flex: 0 0 auto;
  width: 2.4rem;
  padding: 0;
  font-size: 1.1rem;
  line-height: 1;
  color: #5a8a94;
  background: #fff;
  border: 1px solid rgba(77, 184, 201, 0.35);
  border-radius: 10px;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s, transform 0.15s;
}

.auth-login__captcha-refresh:hover {
  color: var(--isle-teal);
  border-color: var(--isle-teal);
}

.auth-login__captcha-refresh:active {
  transform: rotate(-90deg);
}

.auth-login__input--captcha {
  flex: 1 1 auto;
  min-width: 0;
  text-align: center;
  letter-spacing: 0.22em;
  font-variant-numeric: tabular-nums;
}

.auth-login__row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.auth-login__check {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font);
  font-size: 0.72rem;
  font-weight: 700;
  color: #8b7355;
  cursor: pointer;
}

.auth-login__check input {
  accent-color: var(--isle-teal);
}

.auth-login__remember-hint {
  flex: 1 1 100%;
  font-family: var(--font);
  font-size: 0.68rem;
  color: #8b7355;
  opacity: 0.9;
}

.auth-login__submit {
  width: 100%;
  margin-top: 2px;
  padding: clamp(9px, 1.6vh, 11px) 14px;
  font-family: var(--font);
  font-size: clamp(0.82rem, 2.5vw, 0.88rem);
  font-weight: 800;
  color: var(--isle-ink);
  border: 1.5px solid rgba(212, 168, 42, 0.5);
  border-radius: 100px;
  cursor: pointer;
  background: linear-gradient(145deg, var(--isle-gold) 0%, #d4a82a 100%);
  box-shadow:
    0 6px 20px rgba(61, 41, 20, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.45);
  transition: transform 0.3s var(--ease-spring), box-shadow 0.3s, filter 0.25s;
}

.auth-login__submit:hover {
  transform: translateY(-2px);
  filter: brightness(1.04);
  box-shadow:
    0 10px 26px rgba(61, 41, 20, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.auth-login__toast {
  position: fixed;
  bottom: max(16px, env(safe-area-inset-bottom));
  left: 50%;
  max-width: calc(100vw - 32px);
  transform: translateX(-50%) translateY(80px);
  padding: 12px 18px;
  font-family: var(--font);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--isle-parchment);
  background: var(--isle-ink);
  border-radius: 12px;
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  box-sizing: border-box;
}

.auth-login__toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@media (max-width: 640px) {
  .auth-login.island-loader {
    --loader-sea-ratio: 42%;
    --auth-ship-drop: clamp(88px, 18vh, 168px);
    --auth-fish-offset: -52px;
  }

  @keyframes auth-login-ship-pass {
    0% {
      left: 92%;
      transform: translateX(-50%) scale(0.7);
    }
    100% {
      left: 50%;
      transform: translateX(-50%) scale(0.9);
    }
  }

  @keyframes auth-login-ship-exit {
    0% {
      left: 50%;
      transform: translateX(-50%) scale(0.9);
      opacity: 1;
    }
    100% {
      left: -24%;
      transform: translateX(-50%) scale(0.75);
      opacity: 0;
    }
  }

  .auth-login__ship.island-loader__boat.is-pass-done {
    transform: translateX(-50%) scale(0.9);
  }

  .auth-login .island-loader__lighthouse {
    display: none !important;
  }

  .auth-login__deck {
    width: min(300px, calc(100vw - 24px));
  }

  .auth-login__fish-boat--b,
  .auth-login__fish-boat--d {
    display: none;
  }

  .auth-login__fish-boat--a {
    left: 4%;
    transform: scale(0.48);
    animation: none;
  }

  .auth-login__fish-boat--c {
    right: 4%;
    transform: scale(0.46);
    animation: none;
  }
}

@media (max-height: 620px) {
  .auth-login__deck-badge {
    margin-bottom: 6px;
  }

  .auth-login__deck-desc {
    font-size: 0.68rem;
  }

  .auth-login__deck {
    --auth-deck-nudge: 8px;
    --auth-deck-tilt: 2deg;
  }

  .auth-login__deck-head {
    margin-bottom: 8px;
    padding-bottom: 8px;
  }

  .auth-login__captain {
    --captain-leg-h: 14px;
    transform: scale(0.88);
    transform-origin: top right;
    animation-name: auth-login-captain-idle-sm;
  }

  .auth-login__ship .island-loader__boat-mast {
    height: clamp(40px, 8vh, 58px);
  }

  .auth-login__ship .island-loader__boat-sail {
    border-bottom-width: clamp(42px, 8vh, 58px);
  }
}

@keyframes auth-login-captain-idle-sm {
  0%, 100% {
    transform: scale(0.88) translateY(0) rotate(-1.5deg);
  }
  50% {
    transform: scale(0.88) translateY(-2px) rotate(1.5deg);
  }
}

@media (max-height: 520px) {
  .auth-login__deck {
    --auth-deck-scale: 0.9;
  }
}

@media (prefers-reduced-motion: reduce) {
  .auth-login__sky-actor {
    animation: none !important;
  }

  .auth-login__captain,
  .auth-login__captain-wheel,
  .auth-login__ship .island-loader__boat-sail,
  .auth-login__ship-flag,
  .auth-login__ship-wake,
  .auth-login__fish-boat,
  .auth-login__fish-boat-body,
  .auth-login__fish-boat-rod,
  .auth-login__fish-boat-line,
  .auth-login__fish-boat-net,
  .auth-login__fish-boat-line::after {
    animation: none !important;
  }

  .auth-login__captain {
    transform: none;
  }

  .auth-login__captain.is-laughing,
  .auth-login__captain.is-laughing .auth-login__captain-figure,
  .auth-login__captain.is-liking,
  .auth-login__captain.is-liking .auth-login__captain-like {
    animation: none !important;
  }

  .auth-login__captain.is-liking .auth-login__captain-like {
    opacity: 1;
    transform: scale(1);
  }

  .auth-login__captain-bubble.is-visible {
    animation: none !important;
    opacity: 1;
    transform: none;
  }

  .auth-login__deck-panel.is-wobble,
  .auth-login__ship-visual.is-wobble {
    animation: none !important;
  }

  .auth-login__ship.island-loader__boat {
    animation: none !important;
    left: 50%;
    transform: translateX(-50%);
  }

  .auth-login__ship .island-loader__boat-body {
    animation: none;
  }
}
