/* Вход в личный кабинет: макет nozdor.com/login, палитра — лёд Короля-лича. */

.lk-auth {
  --lk-bg: #0a1119;
  --lk-bg-deep: #060b12;
  --lk-sunken: #0b1520;
  --lk-border: #24425f;
  --lk-border-soft: #182c41;
  --lk-text: #e4eef8;
  --lk-text-dim: #a3bad0;
  --lk-text-mute: #6f8aa3;
  --lk-ice: #6ec3ff;
  --lk-ice-hover: #a8ddff;
  --lk-on-ice: #04121f;
  --lk-ice-fill: linear-gradient(180deg, #8ad6ff, #3b8ed8);
  --lk-error: #e57373;
  --lk-ok: #7fd18b;
  --lk-r: 4px;
  --lk-r-lg: 7px;
  --lk-t: .15s ease;

  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 132px 16px 110px;
  font-family: "Inter", "Roboto", "Segoe UI", system-ui, sans-serif;
  color: var(--lk-text);
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--lk-bg-deep) 40%, transparent) 0%, transparent 26%, transparent 66%, var(--lk-bg) 98%),
    linear-gradient(90deg, transparent 0%, color-mix(in srgb, var(--lk-bg-deep) 30%, transparent) 26%, color-mix(in srgb, var(--lk-bg-deep) 42%, transparent) 50%, color-mix(in srgb, var(--lk-bg-deep) 30%, transparent) 74%, transparent 100%),
    radial-gradient(64% 52% at 50% 52%, color-mix(in srgb, var(--lk-ice) 22%, transparent) 0%, color-mix(in srgb, var(--lk-ice) 8%, transparent) 48%, transparent 80%),
    radial-gradient(70% 40% at 50% 108%, color-mix(in srgb, var(--lk-ice) 14%, transparent) 0%, transparent 70%),
    linear-gradient(90deg, color-mix(in srgb, var(--lk-bg-deep) 55%, transparent), color-mix(in srgb, var(--lk-bg-deep) 8%, transparent) 32% 68%, color-mix(in srgb, var(--lk-bg-deep) 55%, transparent)),
    linear-gradient(0deg, rgba(6, 14, 26, .45), rgba(6, 14, 26, .45)),
    url(../img/login-bg.jpg);
  background-repeat: no-repeat;
  background-size: auto, 100% 100%, 100% 100%, 100% 100%, 100% 100%, 100% 100%, cover;
  background-position: center center;
  background-color: var(--lk-bg);
  box-sizing: border-box;
}

.lk-auth *,
.lk-auth *::before,
.lk-auth *::after {
  box-sizing: border-box;
}

.lk-auth__card {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 408px;
  margin: 0 auto;
  padding: 34px;
  overflow: hidden;
  background: rgba(7, 13, 21, .86);
  border: 1px solid color-mix(in srgb, var(--lk-ice) 18%, var(--lk-border-soft));
  border-radius: var(--lk-r-lg);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .55), 0 0 40px rgba(110, 195, 255, .06);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.lk-auth__card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 22%;
  right: 22%;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, color-mix(in srgb, var(--lk-ice) 70%, transparent) 50%, transparent 100%);
}

.lk-auth__head {
  margin: 0 0 26px;
  text-align: center;
}

.lk-auth__title {
  margin: 0;
  color: var(--lk-text);
  font-size: 27px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  text-shadow: 0 0 18px rgba(110, 195, 255, .25);
}

.lk-auth__subtitle {
  max-width: 34ch;
  margin: 10px auto 0;
  color: color-mix(in srgb, var(--lk-ice) 35%, var(--lk-text-mute));
  font-size: 13.5px;
  line-height: 1.5;
}

.lk-auth__form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.lk-auth__field {
  display: flex;
  flex-direction: column;
}

.lk-auth__label {
  display: block;
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--lk-text-dim);
}

.lk-auth__input {
  width: 100%;
  min-height: 46px;
  padding: 12px 14px;
  font: inherit;
  font-size: 14px;
  color: var(--lk-text);
  background: rgba(0, 0, 0, .28);
  border: 1px solid color-mix(in srgb, var(--lk-ice) 20%, var(--lk-border-soft));
  border-radius: var(--lk-r);
  transition: border-color var(--lk-t), background var(--lk-t), box-shadow var(--lk-t);
}

.lk-auth__input::placeholder {
  color: var(--lk-text-mute);
}

.lk-auth__input:hover {
  border-color: var(--lk-border);
}

.lk-auth__input:focus {
  outline: none;
  background: rgba(0, 0, 0, .38);
  border-color: color-mix(in srgb, var(--lk-ice) 55%, var(--lk-border));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--lk-ice) 14%, transparent);
}

.lk-auth__input:-webkit-autofill,
.lk-auth__input:-webkit-autofill:hover,
.lk-auth__input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--lk-text);
  -webkit-box-shadow: 0 0 0 1000px var(--lk-sunken) inset;
  caret-color: var(--lk-text);
}

.lk-auth__row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 4px;
}

.lk-auth__link {
  color: var(--lk-ice);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid color-mix(in srgb, var(--lk-ice) 40%, transparent);
  transition: color var(--lk-t), border-color var(--lk-t);
}

.lk-auth__link:hover {
  color: var(--lk-ice-hover);
  border-bottom-color: var(--lk-ice-hover);
}

.lk-auth__submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 52px;
  margin-top: 4px;
  padding: 15px 20px;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: .6px;
  text-transform: uppercase;
  color: var(--lk-on-ice);
  background: var(--lk-ice-fill);
  border: 1px solid transparent;
  border-radius: var(--lk-r);
  cursor: pointer;
  transition: box-shadow var(--lk-t), filter var(--lk-t);
}

.lk-auth__submit:hover {
  filter: brightness(1.08);
  box-shadow: 0 0 16px rgba(110, 195, 255, .35);
}

.lk-auth__submit:focus-visible,
.lk-auth__input:focus-visible {
  outline: 2px solid var(--lk-ice);
  outline-offset: 2px;
}

.lk-auth__foot {
  margin: 24px 0 0;
  padding-top: 20px;
  border-top: 1px solid color-mix(in srgb, var(--lk-border-soft) 70%, transparent);
  color: var(--lk-text-mute);
  font-size: 13px;
  line-height: 1.9;
  text-align: center;
}

.lk-auth__foot .lk-auth__link {
  display: inline-block;
}

.lk-auth__alert {
  margin: 0 0 18px;
  padding: 11px 14px;
  border-radius: var(--lk-r);
  font-size: 13.5px;
  line-height: 1.5;
}

.lk-auth__alert--error {
  color: #f3b0b0;
  background: rgba(229, 115, 115, .1);
  border: 1px solid rgba(229, 115, 115, .35);
}

.lk-auth__alert--ok {
  color: var(--lk-ok);
  background: rgba(127, 209, 139, .1);
  border: 1px solid rgba(127, 209, 139, .3);
}

/* Регистрация */
.lk-auth__card--wide {
  max-width: 460px;
}

.lk-auth__pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.lk-auth__guide {
  margin: 0 0 22px;
  padding: 12px 14px;
  background: rgba(110, 195, 255, .06);
  border: 1px solid rgba(110, 195, 255, .2);
  border-radius: var(--lk-r);
  color: var(--lk-text-dim);
  font-size: 13.5px;
  line-height: 1.55;
}

.lk-auth__guide summary {
  cursor: pointer;
  color: var(--lk-text);
  font-weight: 700;
  list-style: none;
}

.lk-auth__guide summary::-webkit-details-marker {
  display: none;
}

.lk-auth__guide summary::before {
  content: "\25B8";
  display: inline-block;
  margin-right: 8px;
  color: var(--lk-ice);
  transition: transform var(--lk-t);
}

.lk-auth__guide[open] summary::before {
  transform: rotate(90deg);
}

.lk-auth__guide.is-closing summary::before {
  transform: none;
}

.lk-auth__guide {
  position: relative;
  z-index: 5;
}

.lk-auth__guide-body {
  position: absolute;
  top: calc(100% + 6px);
  left: -1px;
  right: -1px;
  padding: 12px 14px;
  background: rgba(9, 17, 28, .98);
  border: 1px solid rgba(110, 195, 255, .28);
  border-radius: var(--lk-r);
  box-shadow: 0 14px 34px rgba(0, 0, 0, .6), 0 0 18px rgba(110, 195, 255, .08);
}

.lk-auth__guide--static .lk-auth__guide-body {
  position: static;
  padding: 10px 0 0;
  background: none;
  border: 0;
  box-shadow: none;
}

.lk-auth__guide ol {
  margin: 0;
  padding-left: 20px;
}

.lk-auth__guide li + li {
  margin-top: 4px;
}

.lk-auth__guide .lk-auth__link {
  font-size: inherit;
}

.lk-auth__guide-warn {
  color: #ffd38a;
}

.lk-auth__guide-warn strong {
  color: #ffe2ad;
}

.lk-captcha__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.lk-captcha__title {
  margin-bottom: 0;
}

.lk-captcha__timer {
  color: var(--lk-text-mute);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.lk-captcha__row {
  display: flex;
  gap: 10px;
  margin-top: 8px;
}

.lk-captcha__plate {
  position: relative;
  flex: 1;
  min-width: 0;
  height: 72px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    repeating-linear-gradient(135deg, rgba(110, 195, 255, .05) 0 6px, transparent 6px 14px),
    rgba(0, 0, 0, .3);
  border: 1px solid color-mix(in srgb, var(--lk-ice) 20%, var(--lk-border-soft));
  border-radius: var(--lk-r);
}

.lk-captcha__code {
  font-family: "Courier New", monospace;
  font-size: 30px;
  font-weight: 700;
  letter-spacing: 8px;
  color: #cfeaff;
  text-shadow: 0 0 10px rgba(110, 195, 255, .55);
  transform: skewX(-8deg);
  user-select: none;
}

.lk-captcha__life {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: rgba(36, 66, 95, .6);
}

.lk-captcha__life span {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--lk-ice);
  transition: width 1s linear;
}

.lk-captcha__refresh {
  flex: none;
  width: 72px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--lk-text-dim);
  background: var(--lk-sunken);
  border: 1px solid var(--lk-border);
  border-radius: var(--lk-r);
  cursor: pointer;
  transition: color var(--lk-t), border-color var(--lk-t), background var(--lk-t);
}

.lk-captcha__refresh:hover {
  color: var(--lk-ice);
  border-color: color-mix(in srgb, var(--lk-ice) 50%, var(--lk-border));
  background: rgba(110, 195, 255, .08);
}

.lk-captcha__input {
  margin-top: 10px;
  text-align: center;
  letter-spacing: 3px;
  text-transform: uppercase;
}

.lk-captcha__input::placeholder {
  letter-spacing: normal;
  text-transform: none;
}

.lk-auth__checks {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.lk-auth__check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--lk-text-dim);
  font-size: 14px;
  line-height: 1.5;
  cursor: pointer;
}

.lk-auth__check input[type=checkbox] {
  flex: none;
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: var(--lk-ice);
  cursor: pointer;
}

.lk-auth__check .lk-auth__link {
  font-size: inherit;
}

.lk-auth__summary {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 8px 16px;
  margin: 0 0 22px;
  padding: 14px 16px;
  background: rgba(0, 0, 0, .28);
  border: 1px solid var(--lk-border-soft);
  border-radius: var(--lk-r);
  font-size: 14px;
}

.lk-auth__summary dt {
  color: var(--lk-text-mute);
  font-weight: 600;
}

.lk-auth__summary dd {
  margin: 0;
  color: var(--lk-text);
  font-weight: 700;
  word-break: break-all;
}

.lk-auth__submit--link {
  text-decoration: none;
}

@media (max-width: 480px) {
  .lk-auth__pair { grid-template-columns: 1fr; }
  .lk-captcha__plate { height: 64px; }
  .lk-captcha__refresh { width: 64px; }
}

/* Шапка в холодной палитре — только на странице входа */
.lk-login .armory-site-header {
  background: linear-gradient(180deg, rgba(8, 16, 27, .97), rgba(6, 12, 21, .94));
  border-bottom: 1px solid rgba(110, 195, 255, .24);
  box-shadow: 0 4px 24px rgba(0, 0, 0, .45), 0 1px 18px rgba(110, 195, 255, .08);
}

.lk-login .armory-site-header::after {
  content: "";
  position: absolute;
  left: 18%;
  right: 18%;
  bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(150, 215, 255, .7), transparent);
  pointer-events: none;
}

.lk-login .armory-site-header__logo img,
.lk-login .armory-site-header__emblem {
  filter: hue-rotate(172deg) saturate(1.15) brightness(1.08) drop-shadow(0 2px 4px rgba(0, 0, 0, .45));
}

.lk-login .armory-site-header__logo:hover img {
  filter: hue-rotate(172deg) saturate(1.15) brightness(1.15) drop-shadow(0 2px 8px rgba(110, 195, 255, .45));
}

.lk-login .armory-site-header__link,
.lk-login .header__action-item {
  color: #dceaf7;
}

.lk-login .armory-site-header__link:hover,
.lk-login .header__action-item:hover,
.lk-login .header__account-wrapper.is-open .header__action-item {
  color: #fff;
  background: rgba(110, 195, 255, .14);
}

.lk-login .armory-site-header__link.is-active {
  background: rgba(110, 195, 255, .2);
  box-shadow: inset 0 0 0 1px rgba(110, 195, 255, .35);
}

.lk-login .header__account .material-icons {
  color: #8fd0ff;
}

.lk-login .account-dropdown,
.lk-login .account-dropdown::before {
  background: rgba(8, 15, 25, .98);
  border-color: rgba(110, 195, 255, .25);
}

.lk-login .account-dropdown__item .material-icons {
  color: #7f9cb8;
}

.lk-login .account-dropdown__item:hover,
.lk-login .account-dropdown__item:hover .material-icons {
  color: #8fd0ff;
}

.lk-login .account-dropdown__item:hover {
  background: rgba(110, 195, 255, .14);
}

/* Снежинки вместо искр */
.lk-auth .particles-container {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}

.lk-auth .particle {
  position: absolute;
  top: -10px;
  border-radius: 50%;
  background: rgba(200, 232, 255, .75);
  box-shadow: 0 0 6px rgba(140, 205, 255, .6);
  filter: blur(.5px);
  animation: lk-snow 12s infinite linear;
}

.lk-auth .particle:nth-child(1) { width: 3px; height: 3px; left: 5%; animation-delay: 1s; animation-duration: 12s; }
.lk-auth .particle:nth-child(2) { width: 6px; height: 6px; left: 12%; animation-delay: 2s; animation-duration: 15s; }
.lk-auth .particle:nth-child(3) { width: 4px; height: 4px; left: 18%; animation-delay: 3s; animation-duration: 10s; }
.lk-auth .particle:nth-child(4) { width: 7px; height: 7px; left: 25%; animation-delay: 4s; animation-duration: 18s; }
.lk-auth .particle:nth-child(5) { width: 2px; height: 2px; left: 32%; animation-delay: 5s; animation-duration: 13s; }
.lk-auth .particle:nth-child(6) { width: 5px; height: 5px; left: 40%; animation-delay: 6s; animation-duration: 11s; }
.lk-auth .particle:nth-child(7) { width: 6px; height: 6px; left: 47%; animation-delay: 7s; animation-duration: 16s; }
.lk-auth .particle:nth-child(8) { width: 3px; height: 3px; left: 55%; animation-delay: 8s; animation-duration: 9s; }
.lk-auth .particle:nth-child(9) { width: 6px; height: 6px; left: 62%; animation-delay: 9s; animation-duration: 14s; }
.lk-auth .particle:nth-child(10) { width: 4px; height: 4px; left: 70%; animation-delay: 10s; animation-duration: 12s; }
.lk-auth .particle:nth-child(11) { width: 5px; height: 5px; left: 77%; animation-delay: 11s; animation-duration: 17s; }
.lk-auth .particle:nth-child(12) { width: 7px; height: 7px; left: 85%; animation-delay: 12s; animation-duration: 8s; }
.lk-auth .particle:nth-child(13) { width: 3px; height: 3px; left: 92%; animation-delay: 0s; animation-duration: 13s; }
.lk-auth .particle:nth-child(14) { width: 4px; height: 4px; left: 8%; animation-delay: 6s; animation-duration: 19s; }
.lk-auth .particle:nth-child(15) { width: 2px; height: 2px; left: 36%; animation-delay: 2.5s; animation-duration: 10s; }
.lk-auth .particle:nth-child(16) { width: 5px; height: 5px; left: 58%; animation-delay: 4.5s; animation-duration: 15s; }
.lk-auth .particle:nth-child(17) { width: 3px; height: 3px; left: 66%; animation-delay: 7.5s; animation-duration: 11s; }
.lk-auth .particle:nth-child(18) { width: 6px; height: 6px; left: 81%; animation-delay: 9.5s; animation-duration: 16s; }
.lk-auth .particle:nth-child(19) { width: 2px; height: 2px; left: 96%; animation-delay: 3.5s; animation-duration: 9s; }
.lk-auth .particle:nth-child(20) { width: 4px; height: 4px; left: 21%; animation-delay: 11.5s; animation-duration: 14s; }
.lk-auth .particle:nth-child(21) { width: 3px; height: 3px; left: 44%; animation-delay: 1.5s; animation-duration: 12s; }
.lk-auth .particle:nth-child(22) { width: 5px; height: 5px; left: 73%; animation-delay: 5.5s; animation-duration: 18s; }

@keyframes lk-snow {
  0% { transform: translate(0, 0); opacity: 0; }
  10% { opacity: 1; }
  50% { transform: translate(18px, 50vh); }
  90% { opacity: .9; }
  100% { transform: translate(-12px, 105vh); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .lk-auth .particle { animation: none; display: none; }
}

@media (max-width: 600px) {
  .lk-auth { padding: 104px 12px 80px; }
  .lk-auth__title { font-size: 23px; }
  .lk-auth__head { margin-bottom: 22px; }
  .lk-auth__card { padding: 26px 20px; }
}
