@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@500;600;700&family=Cormorant+Garamond:wght@500;600;700&family=Nunito:wght@500;600;700;800&display=swap');

:root {
  --lx-white: #ffffff;
  --lx-white-soft: rgba(255, 255, 255, 0.92);
  --lx-white-muted: rgba(255, 255, 255, 0.72);
  --lx-white-dim: rgba(255, 255, 255, 0.55);
  --lx-bg: #14121c;
  --lx-line: rgba(255, 255, 255, 0.42);
  --lx-text-shadow: 0 1px 4px rgba(0, 0, 0, 0.75), 0 2px 12px rgba(0, 0, 0, 0.55);
  --lx-safe-top: env(safe-area-inset-top, 0px);
  --lx-safe-bottom: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; }

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

body.lx-auth {
  min-height: 100dvh;
  font-family: 'Nunito', system-ui, sans-serif;
  color: var(--lx-white);
  background: transparent;
}

.lx-scene {
  position: relative;
  min-height: 100dvh;
  overflow: hidden;
  background-color: var(--lx-bg);
  background-image: var(--lx-hero);
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
}

.lx-scene::before,
.lx-scene::after {
  display: none;
}

.lx-wrap {
  position: relative;
  z-index: 1;
  width: min(430px, 100%);
  margin: 0 auto;
  min-height: 100dvh;
  padding: calc(18px + var(--lx-safe-top)) 18px calc(28px + var(--lx-safe-bottom));
  display: flex;
  flex-direction: column;
}

.lx-brand {
  text-align: center;
  margin-bottom: 18px;
}

.lx-brand__mark {
  width: 54px;
  height: 54px;
  object-fit: contain;
  background: transparent;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.45));
}

.lx-brand__name {
  margin: 6px 0 0;
  font-family: 'Cinzel', 'Cormorant Garamond', serif;
  font-size: clamp(34px, 9vw, 42px);
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--lx-white);
  text-shadow: var(--lx-text-shadow);
}

.lx-brand__sub {
  margin: 4px 0 0;
  font-family: 'Cinzel', serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.28em;
  color: var(--lx-white-soft);
  text-shadow: var(--lx-text-shadow);
}

.lx-brand__tag {
  margin: 6px 0 0;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: var(--lx-white-muted);
  text-shadow: var(--lx-text-shadow);
}

.lx-card {
  margin-top: auto;
  padding: 22px 0 18px;
  border-radius: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.lx-card__title {
  margin: 0;
  text-align: center;
  font-family: 'Cinzel', 'Cormorant Garamond', serif;
  font-size: 26px;
  font-weight: 600;
  color: var(--lx-white);
  letter-spacing: 0.02em;
  text-shadow: var(--lx-text-shadow);
}

.lx-card__lead {
  margin: 8px 0 18px;
  text-align: center;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.45;
  color: var(--lx-white-soft);
  text-shadow: var(--lx-text-shadow);
}

.lx-msg {
  margin: 0 0 12px;
  text-align: center;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--lx-white);
  text-shadow: var(--lx-text-shadow);
}

.lx-field {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  margin-bottom: 12px;
  padding: 0 12px 0 14px;
  border-radius: 14px;
  background: transparent;
  border: 1px solid var(--lx-line);
  transition: border-color 0.15s ease;
}

.lx-field:focus-within {
  border-color: rgba(255, 255, 255, 0.72);
}

.lx-field__icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  object-fit: contain;
  background: transparent;
  filter: brightness(0) invert(1);
  opacity: 0.95;
}

.lx-field svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--lx-white);
}

.lx-dial {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
  color: var(--lx-white);
  font-size: 14px;
  font-weight: 800;
  border: 0;
  background: transparent;
  padding: 0;
  font-family: inherit;
  cursor: pointer;
  text-shadow: var(--lx-text-shadow);
}

.lx-dial svg {
  width: 12px;
  height: 12px;
  color: var(--lx-white);
}

.lx-sep {
  width: 1px;
  height: 22px;
  background: rgba(255, 255, 255, 0.35);
  flex-shrink: 0;
}

.lx-field input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--lx-white);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  outline: none;
  padding: 14px 0;
  -webkit-text-fill-color: var(--lx-white);
  caret-color: var(--lx-white);
}

.lx-field input::placeholder {
  color: var(--lx-white-dim);
  font-weight: 600;
  opacity: 1;
}

.lx-field input:-webkit-autofill,
.lx-field input:-webkit-autofill:hover,
.lx-field input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--lx-white);
  box-shadow: 0 0 0 1000px transparent inset;
  transition: background-color 9999s ease-out 0s;
}

.lx-icon-btn {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 0;
  background: transparent;
  color: var(--lx-white);
  cursor: pointer;
  padding: 0;
  opacity: 0.92;
}

.lx-icon-btn svg {
  width: 18px;
  height: 18px;
}

.lx-field--pin .lx-pin-captcha {
  flex-shrink: 0;
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
  text-align: right;
  color: var(--lx-white);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.1em;
  user-select: none;
  pointer-events: none;
  text-shadow: var(--lx-text-shadow);
}

.lx-field--pin input {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.06em;
}

.lx-pin-block__error {
  margin: -4px 0 12px;
  text-align: left;
  padding: 0 2px;
  color: var(--lx-white);
  text-shadow: var(--lx-text-shadow);
}

.lx-submit {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  margin-top: 6px;
  border: 1px solid rgba(167, 139, 202, 0.35);
  border-radius: 999px;
  font-family: 'Nunito', sans-serif;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.03em;
  color: var(--lx-white);
  cursor: pointer;
  background: linear-gradient(180deg, #9b7ec8 0%, #8674b8 45%, #6d8fc4 100%);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.28);
  transition: transform 0.12s ease, filter 0.15s ease;
}

.lx-submit:hover {
  filter: brightness(1.06);
}

.lx-submit:active {
  transform: translateY(1px);
  filter: brightness(0.98);
}

.lx-submit svg {
  width: 18px;
  height: 18px;
  opacity: 0.9;
}

.lx-or {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 16px 0 10px;
  color: var(--lx-white-muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-shadow: var(--lx-text-shadow);
}

.lx-or::before,
.lx-or::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.35);
}

.lx-foot {
  margin: 14px 0 0;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--lx-white-soft);
  text-shadow: var(--lx-text-shadow);
}

.lx-foot a {
  color: var(--lx-white);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 360px) {
  .lx-card__title { font-size: 22px; }
  .lx-brand__name { letter-spacing: 0.12em; }
  .lx-field--pin .lx-pin-captcha { font-size: 14px; }
}
