:root {
  --lk-auth-bg: #fbf7f2;
  --lk-auth-text: #2d2f31;
  --lk-auth-muted: #686d72;
  --lk-auth-heading: #111827;
  --lk-auth-line: #e3e6e8;
  --lk-auth-line-strong: #c9ced3;
  --lk-auth-primary: #3f4447;
  --lk-auth-primary-dark: #2e3235;
  --lk-auth-link: #6f1717;
  --lk-auth-gold: #d7a84a;
}

* {
  box-sizing: border-box;
}

html,
body.lk-auth-page {
  min-height: 100%;
}

body.lk-auth-page {
  margin: 0;
  color: var(--lk-auth-text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 8% 0%, rgba(215, 168, 74, 0.19), transparent 29rem),
    linear-gradient(180deg, #ffffff 0%, #fbf7f2 48%, #f3eee7 100%);
}

.lk-auth-stage {
  position: relative;
  min-height: calc(100vh - 78px);
  padding: 54px 18px 72px;
  overflow: hidden;
}


.lk-auth-card {
  position: relative;
  z-index: 2;
  width: min(760px, 100%);
  margin: 0 auto;
  padding: 48px 56px 44px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid var(--lk-auth-line);
  border-radius: 26px;
  box-shadow: 0 22px 58px rgba(35, 31, 28, 0.14);
}

.lk-auth-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 26px;
  color: inherit;
  text-decoration: none;
}

.lk-auth-brand:hover,
.lk-auth-brand:focus-visible {
  color: inherit;
  text-decoration: none;
}

.lk-auth-mark {
  display: grid;
  width: 72px;
  height: 72px;
  margin-bottom: 14px;
  place-items: center;
  background: linear-gradient(145deg, #fff7df, #ecd18e);
  border: 1px solid #ddbd69;
  border-radius: 22px;
  box-shadow: 0 9px 24px rgba(138, 100, 15, 0.14);
}

.lk-auth-mark svg {
  width: 43px;
  height: 43px;
}

.lk-auth-name {
  color: #33383b;
  font-size: 1.05rem;
  font-weight: 950;
  letter-spacing: 0.04em;
}

.lk-auth-name .dotcom {
  color: #8f1f1f;
}

.lk-auth-subtitle {
  margin-top: 2px;
  color: #796126;
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.lk-auth-card h1 {
  margin: 0;
  color: var(--lk-auth-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.045em;
  text-align: center;
}

.lk-auth-lead {
  max-width: 590px;
  margin: 18px auto 0;
  color: #4d5155;
  font-size: 1.10rem;
  line-height: 1.55;
  text-align: center;
}

.lk-auth-masked-email {
  display: block;
  margin-top: 10px;
  color: #202428;
  font-size: 1.17rem;
  font-weight: 900;
  text-align: center;
}

.lk-auth-form-panel {
  margin-top: 32px;
  padding: 22px;
  background: linear-gradient(180deg, #ffffff, #fcfcfb);
  border: 1px solid var(--lk-auth-line);
  border-radius: 18px;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.04);
}

.lk-auth-card label {
  display: block;
  margin: 0 0 9px;
  color: #34383b;
  font-size: 1.02rem;
  font-weight: 900;
}

.lk-auth-input-wrap {
  position: relative;
}

.lk-auth-input-icon {
  position: absolute;
  top: 50%;
  left: 16px;
  width: 24px;
  height: 24px;
  color: #6b6f73;
  transform: translateY(-50%);
  pointer-events: none;
}

.lk-auth-email {
  width: 100%;
  height: 58px;
  padding: 0 16px 0 52px;
  color: #2d2f31;
  font: inherit;
  font-size: 1.04rem;
  background: #ffffff;
  border: 1px solid var(--lk-auth-line-strong);
  border-radius: 14px;
}

.lk-auth-email::placeholder {
  color: #90959a;
}

.lk-auth-email:focus,
.lk-auth-code-input:focus {
  border-color: #4b4f52;
  outline: 4px solid rgba(75, 79, 82, 0.10);
}

.lk-auth-code-grid {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.lk-auth-code-input {
  width: 68px;
  height: 76px;
  padding: 0;
  color: #303438;
  font: inherit;
  font-size: 1.72rem;
  text-align: center;
  background: #ffffff;
  border: 1px solid #aeb5bb;
  border-radius: 12px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.70);
  appearance: textfield;
}

.lk-auth-code-input::-webkit-outer-spin-button,
.lk-auth-code-input::-webkit-inner-spin-button {
  margin: 0;
  appearance: none;
}

.lk-auth-actions {
  display: grid;
  gap: 12px;
  margin-top: 26px;
}

.lk-auth-button {
  display: flex;
  width: 100%;
  min-height: 58px;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  color: inherit;
  font: inherit;
  font-size: 1.04rem;
  font-weight: 950;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  border-radius: 999px;
  cursor: pointer;
}

.lk-auth-button-primary {
  color: #ffffff;
  background: linear-gradient(135deg, var(--lk-auth-primary), var(--lk-auth-primary-dark));
  border: 1px solid #34383b;
  box-shadow: 0 10px 20px rgba(52, 56, 59, 0.18);
}

.lk-auth-button-primary:hover,
.lk-auth-button-primary:focus-visible {
  color: #ffffff;
  background: linear-gradient(135deg, #34383b, #262a2d);
  text-decoration: none;
}

.lk-auth-button-secondary {
  color: #34383b;
  background: #ffffff;
  border: 1px solid #cbd0d4;
}

.lk-auth-button-secondary:hover,
.lk-auth-button-secondary:focus-visible {
  color: #202428;
  background: #f7f8f8;
  text-decoration: none;
}

.lk-auth-info {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-top: 24px;
  padding: 16px 18px;
  color: #555b60;
  line-height: 1.5;
  background: #f8fafc;
  border: 1px solid var(--lk-auth-line);
  border-radius: 16px;
}

.lk-auth-info-icon {
  flex: 0 0 auto;
  width: 29px;
  height: 29px;
  margin-top: 1px;
  color: #8f1f1f;
}

.lk-auth-info strong {
  color: #2d2f31;
}

.lk-auth-message {
  margin: 26px 0 0;
  padding: 15px 17px;
  line-height: 1.5;
  border-radius: 16px;
}

.lk-auth-message-error {
  color: #6b1717;
  background: #fff1ef;
  border: 1px solid #e0a09a;
}

.lk-auth-message-success {
  color: #135d27;
  background: #ecfff1;
  border: 1px solid #a8e7b7;
}

.lk-auth-text-link {
  display: block;
  margin-top: 26px;
  color: var(--lk-auth-link);
  font-weight: 850;
  text-align: center;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.lk-auth-text-link:hover,
.lk-auth-text-link:focus-visible {
  color: #4f1010;
}

.lk-auth-divider {
  display: flex;
  gap: 14px;
  align-items: center;
  margin: 25px 0 0;
  color: #92979b;
  font-size: 0.84rem;
  font-weight: 800;
}

.lk-auth-divider::before,
.lk-auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--lk-auth-line);
}

.lk-auth-join-note {
  margin: 26px 0 0;
  color: #656a6f;
  text-align: center;
}

.lk-auth-join-note a {
  color: var(--lk-auth-link);
  font-weight: 850;
}

.lk-auth-noscript-code {
  width: 100%;
  height: 58px;
  padding: 0 16px;
  color: #2d2f31;
  font: inherit;
  font-size: 1.15rem;
  letter-spacing: 0.45em;
  text-align: center;
  background: #ffffff;
  border: 1px solid var(--lk-auth-line-strong);
  border-radius: 14px;
}

@media (max-width: 640px) {
  .lk-auth-stage {
    padding: 26px 12px 44px;
  }


  .lk-auth-card {
    padding: 34px 20px 30px;
    border-radius: 21px;
  }

  .lk-auth-form-panel {
    padding: 17px 14px;
  }

  .lk-auth-code-grid {
    gap: 7px;
  }

  .lk-auth-code-input {
    width: 47px;
    height: 61px;
    font-size: 1.4rem;
  }
}

@media (max-width: 390px) {
  .lk-auth-card {
    padding-right: 16px;
    padding-left: 16px;
  }

  .lk-auth-code-grid {
    gap: 5px;
  }

  .lk-auth-code-input {
    width: 42px;
    height: 58px;
  }
}
