@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Outfit:wght@500;600;700;800&display=swap");

:root {
  --gate-ink: #0f1111;
  --gate-gold: #ff9900;
  --gate-gold-deep: #e47911;
  --gate-muted: #5c6370;
  --gate-line: #e6e8ec;
  --gate-header: #232f3e;
  --gate-deep: #131921;
  --font-display: "Outfit", sans-serif;
  --font-body: "Manrope", sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html, body { height: 100%; }

body.ms-gate-body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--gate-ink);
  background: #eef0f4;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.ms-gate-field .form-control,
.ms-gate-btn,
.ms-gate .btn,
.ms-gate-label,
.ms-gate-submit,
.ms-gate-secondary {
  font-family: var(--font-body);
}

.ms-gate {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(300px, 1.08fr) minmax(340px, 0.92fr);
}

.ms-gate--page {
  min-height: calc(100vh - 210px);
}

.ms-gate-aside {
  position: relative;
  padding: 44px 56px 36px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #fff;
  overflow: hidden;
  background:
    radial-gradient(920px 520px at -8% -10%, color-mix(in srgb, var(--gate-gold) 32%, transparent), transparent 58%),
    radial-gradient(640px 380px at 108% 108%, color-mix(in srgb, var(--gate-gold) 14%, transparent), transparent 52%),
    linear-gradient(165deg, var(--gate-header) 0%, var(--gate-deep) 58%, #1b2838 100%);
}

.ms-gate-aside::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 30% 20%, #000 20%, transparent 75%);
  pointer-events: none;
}

.ms-gate-aside::after {
  content: "";
  position: absolute;
  right: -90px;
  bottom: -90px;
  width: 300px;
  height: 300px;
  border: 36px solid color-mix(in srgb, var(--gate-gold) 12%, transparent);
  border-radius: 50%;
  pointer-events: none;
}

.ms-gate-aside > div { position: relative; z-index: 1; }

.ms-gate-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: inherit;
}

.ms-gate-logo img {
  display: block;
  height: 48px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
  background: #fff;
  padding: 8px 12px;
  border-radius: 12px;
}

.ms-gate-brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.7rem;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  color: #fff;
}

.ms-gate-kicker {
  display: inline-block;
  margin: 32px 0 14px;
  padding: 7px 14px;
  border: 1px solid color-mix(in srgb, var(--gate-gold) 50%, transparent);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: #f6d48a;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.ms-gate-aside h1 {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 3.2vw, 2.65rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.04em;
}

.ms-gate-lead,
.ms-gate-aside p {
  margin: 0 0 28px;
  max-width: 440px;
  color: #c5ced8;
  font-size: 1.05rem;
  line-height: 1.65;
}

.ms-gate-points {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ms-gate-points li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #e8edf2;
  font-size: 0.95rem;
  line-height: 1.45;
}

.ms-gate-points i {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: 10px;
  background: color-mix(in srgb, var(--gate-gold) 22%, transparent);
  color: #f6d48a;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ms-gate-foot {
  position: relative;
  z-index: 1;
  margin-top: 36px;
  color: #9aa8b5;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.ms-gate-foot i { color: #f6d48a; }

.ms-gate-main {
  background:
    radial-gradient(circle at 80% 10%, rgba(255, 153, 0, 0.08), transparent 28%),
    #f4f6f8;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 32px;
}

.ms-gate-card {
  width: 100%;
  max-width: 440px;
  background: #fff;
  border: 1px solid rgba(15, 17, 17, 0.06);
  border-radius: 24px;
  padding: 40px 36px 28px;
  box-shadow:
    0 1px 2px rgba(15, 18, 21, 0.04),
    0 24px 64px rgba(15, 18, 21, 0.08);
}

.ms-gate-card-kicker {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gate-gold-deep);
}

.ms-gate-card h2 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.ms-gate-card .lead {
  margin: 0 0 26px;
  color: var(--gate-muted);
  font-size: 0.98rem;
  line-height: 1.5;
}

.ms-gate-label {
  display: block;
  margin-bottom: 7px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #3f4650;
}

.ms-gate-field {
  position: relative;
  margin-bottom: 16px;
}

.ms-gate-field .form-control {
  display: block;
  width: 100%;
  height: 52px;
  border: 1px solid var(--gate-line);
  border-radius: 12px;
  padding: 10px 44px 10px 14px;
  font-size: 15px;
  color: var(--gate-ink);
  background: #f7f8fa;
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}

.ms-gate-field .form-control:hover { border-color: #cfd3d8; }

.ms-gate-field .form-control:focus {
  background: #fff;
  border-color: var(--gate-gold);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--gate-gold) 22%, transparent);
}

.ms-gate-field > i.prefix {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #98a2ae;
  pointer-events: none;
}

.ms-gate-field.has-icon .form-control { padding-left: 44px; }

.ms-gate-toggle {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  color: #8b95a1;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  cursor: pointer;
}

.ms-gate-toggle:hover { color: var(--gate-ink); background: #eef0f3; }

.ms-gate-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 4px 0 18px;
  font-size: 13px;
}

.ms-gate-toolbar a {
  color: var(--gate-muted);
  font-weight: 700;
  text-decoration: none;
}

.ms-gate-toolbar a:hover { color: var(--gate-gold-deep); }

.ms-gate-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #3f4650;
  font-weight: 600;
  cursor: pointer;
  user-select: none;
}

.ms-gate-check input {
  width: 16px;
  height: 16px;
  accent-color: var(--gate-gold);
}

.ms-gate-submit {
  width: 100%;
  height: 52px;
  border: 0;
  border-radius: 12px;
  background: var(--gate-gold);
  color: #111;
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.01em;
  cursor: pointer;
  box-shadow: 0 8px 20px color-mix(in srgb, var(--gate-gold) 32%, transparent);
  transition: background .15s ease, transform .15s ease, box-shadow .15s ease;
}

.ms-gate-submit:hover {
  background: var(--gate-gold-deep);
  color: #111;
}

.ms-gate-submit:active { transform: translateY(1px); }

.ms-gate-secondary {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 50px;
  border-radius: 12px;
  border: 1px solid var(--gate-line);
  background: #fff;
  color: var(--gate-ink);
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  transition: border-color .15s ease, background .15s ease;
}

.ms-gate-secondary:hover {
  background: #f7f8fa;
  border-color: #cfd3d8;
  color: var(--gate-ink);
  text-decoration: none;
}

.ms-gate-or {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 22px 0 14px;
  color: #98a2ae;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ms-gate-or::before,
.ms-gate-or::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--gate-line);
}

.ms-gate-alert {
  border-radius: 12px;
  border: 1px solid #fecaca;
  background: #fef2f2;
  color: #991b1b;
  padding: 12px 14px;
  font-size: 14px;
  margin-bottom: 16px;
}

.ms-gate-alert--ok {
  border-color: #bbf7d0;
  background: #f0fdf4;
  color: #166534;
}

.ms-gate-links {
  margin: 20px 0 0;
  text-align: center;
  color: var(--gate-muted);
  font-size: 14px;
}

.ms-gate-links a {
  color: var(--gate-ink);
  font-weight: 700;
  text-decoration: none;
}

.ms-gate-links a:hover { color: var(--gate-gold-deep); }

.ms-gate-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--gate-line);
  font-size: 13px;
}

.ms-gate-meta a {
  color: var(--gate-muted);
  text-decoration: none;
  font-weight: 600;
}

.ms-gate-meta a:hover { color: var(--gate-ink); }

.ms-gate-meta .fa-arrow-left { margin-right: 6px; }

.ms-gate-staff {
  opacity: 0.7;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.ms-gate-demo {
  margin-top: 14px;
  border: 1px dashed var(--gate-line);
  border-radius: 10px;
  padding: 8px 12px;
  background: #fafafa;
}

.ms-gate-demo summary {
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  color: var(--gate-muted);
  outline: none;
}

.ms-gate-demo p {
  margin: 8px 0 4px;
  font-size: 12px;
  color: #4b5563;
  line-height: 1.55;
}

@media (max-width: 900px) {
  .ms-gate,
  .ms-gate--page { grid-template-columns: 1fr; min-height: 0; }
  .ms-gate-aside {
    min-height: auto;
    padding: 28px 24px 22px;
  }
  .ms-gate-aside::before,
  .ms-gate-aside::after { display: none; }
  .ms-gate-aside h1 { font-size: 1.7rem; }
  .ms-gate-lead { margin-bottom: 0; }
  .ms-gate-points,
  .ms-gate-foot { display: none; }
  .ms-gate-kicker { margin-top: 18px; }
  .ms-gate-main { padding: 20px 16px 40px; }
  .ms-gate-card { padding: 28px 20px 22px; max-width: 100%; border-radius: 20px; }
  .ms-gate-logo img { height: 42px; }
}

@media (min-width: 901px) {
  .ms-gate { height: 100vh; overflow: hidden; }
}
