/* Kentia private login. Loaded after styles.css and scoped to auth classes only. */
:root {
  --kentia-login-ink: #050713;
  --kentia-login-navy: #071225;
  --kentia-login-teal: #092a2f;
  --kentia-login-glass: rgba(21, 30, 39, .58);
  --kentia-login-cyan: #64dcca;
  --kentia-login-cyan-soft: rgba(100, 220, 202, .34);
  --kentia-login-gold: #d8c58e;
  --kentia-login-text: #f8fbff;
  --kentia-login-muted: #a9bac6;
  --kentia-login-error: #e7a0a0;
}

body .kentia-auth-overlay {
  position: fixed;
  inset: 0;
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 24px;
  overflow: hidden;
  z-index: 99999;
  background:
    radial-gradient(circle at 67% 45%, rgba(83, 211, 193, .22), transparent 23%),
    radial-gradient(circle at 42% 49%, rgba(216, 197, 142, .10), transparent 18%),
    radial-gradient(circle at 19% 23%, rgba(94, 76, 152, .20), transparent 32%),
    linear-gradient(116deg, var(--kentia-login-ink) 0%, var(--kentia-login-navy) 42%, var(--kentia-login-teal) 72%, #050611 100%) !important;
}

body .kentia-auth-overlay::before {
  content: "";
  position: absolute;
  inset: -10%;
  z-index: -2;
  pointer-events: none;
  opacity: .76;
  background:
    repeating-radial-gradient(ellipse at 50% 52%, rgba(174, 241, 231, .21) 0 1px, transparent 1px 13px),
    repeating-radial-gradient(ellipse at 69% 45%, rgba(104, 220, 203, .25) 0 1px, transparent 1px 10px),
    repeating-radial-gradient(ellipse at 32% 58%, rgba(131, 113, 178, .20) 0 1px, transparent 1px 15px);
  transform: rotate(-5deg) scale(1.08);
  animation: kentia-login-drift 26s ease-in-out infinite alternate;
}

body .kentia-auth-overlay::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255,255,255,.028) 1px, transparent 1px),
    linear-gradient(rgba(255,255,255,.022) 1px, transparent 1px),
    radial-gradient(circle at 50% 52%, transparent 0 35%, rgba(3, 5, 12, .42) 78%);
  background-size: 58px 58px, 58px 58px, auto;
  mask-image: linear-gradient(180deg, rgba(0,0,0,.78), rgba(0,0,0,.22));
}

body .kentia-auth-date {
  position: absolute;
  top: 28px;
  left: 50%;
  z-index: 2;
  transform: translateX(-50%);
  color: rgba(216, 230, 236, .42);
  font-size: 11px;
  font-weight: 500;
  line-height: 1;
  text-align: center;
}

body .kentia-auth-shell {
  position: relative;
  z-index: 1;
  width: min(340px, calc(100vw - 34px));
}

body .kentia-auth-line {
  position: absolute;
  z-index: 0;
  pointer-events: none;
}

body .kentia-auth-line--left {
  left: -260px;
  top: 86px;
  width: 355px;
  height: 116px;
  opacity: .72;
  filter: drop-shadow(0 0 12px rgba(100, 220, 202, .34));
  background:
    linear-gradient(8deg, transparent 0 42%, rgba(100, 220, 202, .58) 42.4% 43.2%, transparent 44% 100%),
    linear-gradient(-12deg, transparent 0 54%, rgba(216, 197, 142, .34) 54.2% 54.8%, transparent 55.5% 100%),
    radial-gradient(circle at 82% 52%, rgba(100, 220, 202, .72) 0 2px, transparent 2.5px),
    radial-gradient(circle at 58% 45%, rgba(100, 220, 202, .58) 0 1.4px, transparent 2px);
}

body .kentia-auth-line--left::before,
body .kentia-auth-line--left::after {
  content: "";
  position: absolute;
  right: 14px;
  top: 55px;
  width: 132px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(100, 220, 202, .68), transparent);
  transform-origin: right center;
}

body .kentia-auth-line--left::before {
  transform: rotate(22deg);
}

body .kentia-auth-line--left::after {
  transform: rotate(-24deg);
}

body .kentia-auth-line--right {
  right: -226px;
  top: -34px;
  width: 330px;
  height: 270px;
  opacity: .84;
  border: 1px solid rgba(100, 220, 202, .38);
  border-radius: 72% 14% 70% 20%;
  filter:
    drop-shadow(0 0 18px rgba(100, 220, 202, .35))
    drop-shadow(0 0 46px rgba(100, 220, 202, .16));
  background:
    linear-gradient(37deg, transparent 0 49.2%, rgba(100, 220, 202, .64) 49.5% 50.2%, transparent 50.7% 100%),
    linear-gradient(70deg, transparent 0 52%, rgba(216, 197, 142, .30) 52.2% 52.7%, transparent 53.2% 100%),
    repeating-radial-gradient(ellipse at 48% 52%, rgba(100, 220, 202, .34) 0 1px, transparent 1px 8px);
  transform: rotate(38deg);
  animation: kentia-login-leaf 18s ease-in-out infinite alternate;
}

body .kentia-auth-card {
  position: relative;
  z-index: 3;
  width: min(340px, 100%);
  padding: 24px 27px 26px;
  overflow: hidden;
  color: var(--kentia-login-text);
  border: 1px solid rgba(155, 239, 224, .42);
  border-radius: 16px;
  background:
    linear-gradient(145deg, rgba(255,255,255,.15), rgba(255,255,255,.055) 45%, rgba(216,197,142,.075)),
    var(--kentia-login-glass) !important;
  box-shadow:
    0 24px 80px rgba(0, 0, 0, .46),
    0 0 42px rgba(100, 220, 202, .16),
    inset 0 1px 0 rgba(255,255,255,.20) !important;
  backdrop-filter: blur(20px) saturate(142%);
  -webkit-backdrop-filter: blur(20px) saturate(142%);
}

body .kentia-auth-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  border-radius: inherit;
  border: 1px solid transparent;
  background:
    linear-gradient(135deg, rgba(147, 244, 229, .70), transparent 34%, rgba(216, 197, 142, .68)) border-box;
  mask: linear-gradient(#000 0 0) padding-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  opacity: .48;
}

body .kentia-auth-card::after {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  top: 0;
  z-index: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.72), transparent);
  opacity: .48;
}

body .kentia-auth-card > * {
  position: relative;
  z-index: 2;
}

body .kentia-auth-kicker {
  margin: 0 0 9px;
  color: rgba(190, 208, 216, .74);
  font-size: 10px;
  font-weight: 600;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: .2em;
}

body .kentia-auth-card h2 {
  margin: 0;
  color: #fff;
  font-size: 26px;
  line-height: 1.02;
  font-weight: 800;
  letter-spacing: 0;
  text-shadow: 0 2px 20px rgba(0,0,0,.48);
}

body .kentia-auth-card p {
  max-width: 286px;
  margin: 11px 0 0;
  color: rgba(236, 244, 248, .84);
  font-size: 13px;
  line-height: 1.34;
}

body .kentia-auth-form {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}

body .kentia-auth-form label {
  display: block;
  margin: 0 0 7px;
  color: rgba(236, 244, 248, .82);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: .07em;
}

body .kentia-auth-password-wrap {
  position: relative;
}

body .kentia-auth-form input {
  width: 100%;
  min-height: 47px;
  box-sizing: border-box;
  border: 1px solid rgba(116, 225, 210, .58);
  border-radius: 9px;
  padding: 12px 44px 12px 13px;
  background: rgba(7, 17, 25, .34);
  color: #fff;
  font: inherit;
  font-size: 15px;
  outline: none;
  box-shadow:
    0 0 0 1px rgba(216, 197, 142, .14),
    0 0 24px rgba(100, 220, 202, .12),
    inset 0 1px 0 rgba(255,255,255,.12);
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

body .kentia-auth-form input::placeholder {
  color: rgba(169, 186, 198, .56);
}

body .kentia-auth-form input:focus {
  border-color: rgba(100, 220, 202, .96);
  background: rgba(7, 17, 25, .46);
  box-shadow:
    0 0 0 3px rgba(45, 212, 191, .18),
    0 0 34px rgba(100, 220, 202, .26),
    inset 0 1px 0 rgba(255,255,255,.16);
}

body .kentia-auth-eye {
  position: absolute;
  right: 8px;
  top: 50%;
  width: 32px;
  height: 32px;
  min-height: 32px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: rgba(190, 208, 216, .76);
  transform: translateY(-50%);
  cursor: pointer;
  transition: color .18s ease, background .18s ease;
}

body .kentia-auth-eye:hover,
body .kentia-auth-eye.is-visible {
  background: rgba(100, 220, 202, .10);
  color: #9bf4e5;
  transform: translateY(-50%);
}

body .kentia-auth-eye svg {
  width: 18px;
  height: 18px;
  display: block;
  stroke: currentColor;
}

body .kentia-auth-error {
  min-height: 17px;
  margin-top: -1px;
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--kentia-login-error);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
}

body .kentia-auth-error:not(:empty) {
  animation: kentia-login-error .22s ease-out both;
}

body .kentia-auth-error:not(:empty)::before {
  content: "";
  width: 12px;
  height: 12px;
  flex: 0 0 auto;
  border: 1px solid rgba(231, 160, 160, .88);
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, rgba(231, 160, 160, .90) 0 2px, transparent 2.5px);
  box-shadow: 0 0 12px rgba(231, 160, 160, .18);
}

body .kentia-auth-button {
  position: relative;
  width: 100%;
  min-height: 46px;
  margin-top: 2px;
  border: 1px solid rgba(22, 38, 48, .72);
  border-radius: 9px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(100, 220, 202, .18), transparent 36%),
    linear-gradient(90deg, #07111b, #08252a 54%, #07111b);
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .07em;
  box-shadow:
    0 14px 28px rgba(0, 0, 0, .36),
    inset 0 1px 0 rgba(255,255,255,.06);
  transition: transform .16s ease, box-shadow .16s ease, filter .16s ease;
}

body .kentia-auth-button::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(155, 244, 229, .22), transparent);
  transform: translateX(-110%);
}

body .kentia-auth-button:hover:not(:disabled) {
  box-shadow:
    0 17px 34px rgba(0, 0, 0, .40),
    0 0 34px rgba(100, 220, 202, .22),
    inset 0 1px 0 rgba(255,255,255,.09);
  filter: brightness(1.08);
  transform: translateY(-1px);
}

body .kentia-auth-button:active:not(:disabled) {
  transform: translateY(1px);
}

body .kentia-auth-button:focus-visible,
body .kentia-auth-eye:focus-visible,
body .kentia-auth-form input:focus-visible {
  outline: 2px solid rgba(155, 244, 229, .82);
  outline-offset: 3px;
}

body .kentia-auth-button:disabled {
  cursor: not-allowed;
  opacity: .74;
}

body .kentia-auth-button.is-loading::before {
  animation: kentia-login-shimmer 1.1s linear infinite;
}

body .kentia-auth-button.is-success {
  border-color: rgba(120, 233, 173, .42);
  background:
    linear-gradient(180deg, rgba(120, 233, 173, .18), transparent 38%),
    linear-gradient(90deg, #082016, #0b3b2a);
  color: #b8ffd6;
}

body .kentia-auth-sparkle {
  position: absolute;
  right: clamp(18px, 4.5vw, 44px);
  bottom: clamp(18px, 4.5vw, 42px);
  z-index: 1;
  width: 42px;
  height: 42px;
  color: rgba(235, 241, 246, .80);
  filter: drop-shadow(0 0 18px rgba(255,255,255,.28));
  animation: kentia-login-sparkle 4.4s ease-in-out infinite;
}

body .kentia-auth-sparkle::before,
body .kentia-auth-sparkle::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 100%;
  height: 100%;
  background: currentColor;
  clip-path: polygon(50% 0, 62% 36%, 100% 50%, 62% 64%, 50% 100%, 38% 64%, 0 50%, 38% 36%);
}

body .kentia-auth-sparkle::after {
  width: 36%;
  height: 36%;
  opacity: .42;
  transform: translate(-30px, -18px) rotate(14deg);
}

@keyframes kentia-login-drift {
  from {
    transform: rotate(-5deg) scale(1.08) translate3d(-8px, -3px, 0);
  }

  to {
    transform: rotate(-4deg) scale(1.11) translate3d(8px, 5px, 0);
  }
}

@keyframes kentia-login-leaf {
  from {
    transform: rotate(38deg) translate3d(0, 0, 0);
  }

  to {
    transform: rotate(40deg) translate3d(4px, -3px, 0);
  }
}

@keyframes kentia-login-shimmer {
  to {
    transform: translateX(110%);
  }
}

@keyframes kentia-login-sparkle {
  0%, 100% {
    opacity: .68;
    transform: scale(.92) rotate(0deg);
  }

  50% {
    opacity: .95;
    transform: scale(1.04) rotate(7deg);
  }
}

@keyframes kentia-login-error {
  from {
    opacity: 0;
    transform: translateY(-3px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 520px) {
  body .kentia-auth-overlay {
    padding: 18px;
  }

  body .kentia-auth-date {
    top: 18px;
    font-size: 11px;
  }

  body .kentia-auth-shell {
    width: min(340px, 100%);
  }

  body .kentia-auth-card {
    padding: 23px;
  }

  body .kentia-auth-card h2 {
    font-size: 24px;
  }

  body .kentia-auth-line--left {
    left: -230px;
    top: 94px;
    width: 300px;
  }

  body .kentia-auth-line--right {
    right: -188px;
    top: -22px;
    width: 292px;
    height: 235px;
  }

  body .kentia-auth-sparkle {
    width: 32px;
    height: 32px;
  }
}

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