/* Komsan auth surface v1.4.72. Loaded after the existing public styles. */
#authGate.auth-gate {
  background: rgba(3, 7, 19, .34) !important;
}

#authGate > .auth-backdrop {
  background:
    radial-gradient(circle at 75% 16%, rgba(136, 75, 238, .23), transparent 42%),
    radial-gradient(circle at 12% 87%, rgba(221, 92, 136, .12), transparent 39%),
    rgba(3, 7, 20, .42) !important;
  backdrop-filter: blur(9px) saturate(1.08) !important;
  -webkit-backdrop-filter: blur(9px) saturate(1.08) !important;
}

#authGate > .auth-card {
  background:
    radial-gradient(circle at 2% 0%, rgba(234, 189, 91, .09), transparent 39%),
    linear-gradient(150deg, rgba(30, 36, 62, .67), rgba(9, 16, 31, .70)) !important;
  backdrop-filter: blur(22px) saturate(1.22) !important;
  -webkit-backdrop-filter: blur(22px) saturate(1.22) !important;
  border-color: rgba(193, 178, 248, .45) !important;
  box-shadow:
    0 30px 75px rgba(0, 0, 0, .56),
    0 0 48px rgba(122, 90, 241, .14),
    inset 0 1px 0 rgba(255, 255, 255, .21) !important;
}

/* Existing opaque inner layer would otherwise defeat the frosted card. */
#authGate > .auth-card::after {
  background: linear-gradient(154deg, rgba(21, 27, 48, .29), rgba(7, 12, 25, .36)) !important;
}

#authGate > .auth-card::before {
  opacity: .72 !important;
  background: linear-gradient(130deg,
    rgba(244, 197, 99, .80), rgba(155, 99, 253, .67) 43%,
    rgba(72, 218, 250, .58) 74%, rgba(243, 181, 95, .78)) !important;
}

#authGate .auth-logo {
  position: relative;
  isolation: isolate;
  color: #fff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, .72);
}

#authGate .auth-logo .auth-brand-logo {
  border-radius: 50%;
  background: radial-gradient(circle, rgba(253, 216, 123, .22), transparent 70%);
  box-shadow: 0 0 0 1px rgba(255, 205, 115, .45), 0 0 17px rgba(231, 165, 61, .42);
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .55));
  animation: ksAuthLogoFloatV1472 5.8s ease-in-out infinite;
}

#authGate .auth-logo .brand-name-text {
  display: inline-block;
  color: #fff;
  background: linear-gradient(105deg,
    #f8e3aa 2%, #fff9e7 18%, #b9dbff 38%,
    #eeafea 60%, #ffd686 80%, #fff5cc 100%);
  background-size: 230% 100%;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .72));
  animation: ksAuthBrandSheenV1472 8s ease-in-out infinite alternate;
}

#authGate .auth-kicker {
  color: #f5d58d !important;
  text-shadow: 0 0 13px rgba(255, 199, 81, .35);
}

#authGate .auth-card h1,
#authGate .auth-card label,
#authGate .auth-card .auth-sub,
#authGate .auth-card .auth-note,
#authGate .auth-card .password-manager-note,
#authGate .auth-card .auth-pref-copy-v1512182083 {
  text-shadow: 0 1px 3px rgba(0, 0, 0, .83);
}

#authGate .auth-card h1 {
  color: #fbfdff;
  -webkit-text-stroke: .16px rgba(255, 255, 255, .55);
}

#authGate .auth-card .auth-sub,
#authGate .auth-card .auth-form label,
#authGate .auth-card .auth-pref-copy-v1512182083 {
  color: #d8e1f2 !important;
}

#authGate .auth-card .password-manager-note,
#authGate .auth-card .auth-note {
  color: #bbc8dd !important;
}

#authGate .auth-tabs {
  background: rgba(5, 11, 26, .48) !important;
  border-color: rgba(170, 187, 223, .24) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

#authGate .auth-tabs button {
  color: #c1cde0 !important;
}

#authGate .auth-tabs button.active {
  color: #fff !important;
  background: linear-gradient(145deg, rgba(92, 83, 166, .70), rgba(31, 49, 78, .75)) !important;
  border-color: rgba(204, 179, 255, .48) !important;
}

#authGate .auth-form > input,
#authGate .auth-form .password-field > input,
#authGate .auth-form .phone-field input,
#authGate .auth-form .phone-field select {
  background: rgba(5, 11, 26, .65) !important;
  color: #fff !important;
  border-color: rgba(164, 185, 224, .33) !important;
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
}

#authGate .auth-form input:focus-visible,
#authGate .auth-form select:focus-visible,
#authGate .auth-card button:focus-visible {
  outline: 2px solid #e5bcff !important;
  outline-offset: 2px;
}

#authGate .auth-form .remember-check {
  background: rgba(9, 17, 35, .47) !important;
  border-color: rgba(160, 179, 214, .25) !important;
}

/* Recovery controls are part of the same login card, without extra overlays. */
#authGate #forgotPasswordCodePanel:not(.hidden),
#authGate #forgotPasswordNewPanel:not(.hidden) {
  display: grid;
  gap: 5px;
  padding: 11px;
  border: 1px solid rgba(173, 186, 223, .25);
  border-radius: 12px;
  background: rgba(8, 16, 34, .42);
}

#authGate #forgotPasswordCode,
#authGate #forgotPasswordNew,
#authGate #forgotPasswordConfirm {
  width: 100%;
  height: 41px;
  min-height: 41px;
  padding: 0 11px;
  border: 1px solid rgba(164, 185, 224, .33);
  border-radius: 10px;
  color: #fff;
  background: rgba(5, 11, 26, .65);
  font-size: 13px;
}

#authGate #forgotPasswordCode {
  font-variant-numeric: tabular-nums;
  letter-spacing: .2em;
}

#authGate #forgotPasswordForm .auth-reset-hint-v1472 {
  margin: 5px 1px;
  font-size: 11px;
  line-height: 1.55;
}

#authGate .auth-forgot-link-v1472,
#authGate #forgotPasswordBack,
#authGate #forgotPasswordResend {
  color: #e6d0ff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, .8);
  text-decoration-color: rgba(217, 188, 255, .7);
}

#authGate .auth-forgot-link-v1472 {
  justify-self: start;
  min-height: 30px;
  padding: 4px 0;
  border: 0;
  background: transparent;
  font-size: 11px;
  font-weight: 750;
  text-align: left;
  cursor: pointer;
}

#authGate .auth-forgot-link-v1472:disabled {
  opacity: .55;
  cursor: not-allowed;
}

#authGate .auth-forgot-link-v1472:hover,
#authGate #forgotPasswordBack:hover,
#authGate #forgotPasswordResend:hover {
  color: #fff;
}

#authGate .auth-reset-hint-v1472,
#authGate #forgotPasswordStatus {
  color: #d8e1f2;
  text-shadow: 0 1px 3px rgba(0, 0, 0, .8);
}

@keyframes ksAuthLogoFloatV1472 {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-3px) rotate(2deg); }
}

@keyframes ksAuthBrandSheenV1472 {
  from { background-position: 0% 50%; }
  to { background-position: 100% 50%; }
}

@media (max-width: 600px) {
  #authGate > .auth-card {
    backdrop-filter: blur(16px) saturate(1.12) !important;
    -webkit-backdrop-filter: blur(16px) saturate(1.12) !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  #authGate .auth-logo .auth-brand-logo,
  #authGate .auth-logo .brand-name-text {
    animation: none !important;
  }
}

@supports not (backdrop-filter: blur(1px)) {
  #authGate > .auth-card {
    background: linear-gradient(150deg, rgba(25, 31, 54, .94), rgba(8, 14, 27, .95)) !important;
  }
  #authGate > .auth-card::after {
    background: transparent !important;
  }
}
