html,
body.gate-body {
  margin: 0 !important;
  min-height: 100%;
}

html:has(body.gate-body),
html[data-praisi-theme]:has(body.gate-body) {
  background: #06191d !important;
}

body.gate-body {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(22px, 4vh, 38px) clamp(18px, 4vw, 54px);
  overflow-x: hidden;
  background:
    linear-gradient(115deg, rgba(3, 17, 22, .93) 0%, rgba(7, 48, 51, .78) 42%, rgba(246, 241, 232, .92) 100%),
    radial-gradient(circle at 84% 20%, rgba(255, 255, 255, .48), rgba(255, 255, 255, 0) 30%),
    linear-gradient(160deg, #08242a 0%, #0b6c66 48%, #f5efe4 100%) !important;
  background-attachment: fixed !important;
  color: #102326 !important;
}

html[data-praisi-theme] body.gate-body {
  background:
    linear-gradient(115deg, rgba(3, 17, 22, .93) 0%, rgba(7, 48, 51, .78) 42%, rgba(246, 241, 232, .92) 100%),
    radial-gradient(circle at 84% 20%, rgba(255, 255, 255, .48), rgba(255, 255, 255, 0) 30%),
    linear-gradient(160deg, #08242a 0%, #0b6c66 48%, #f5efe4 100%) !important;
  color: #102326 !important;
}

body.gate-body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(90deg, rgba(0, 0, 0, .75), rgba(0, 0, 0, .08));
}

.gate-card {
  position: relative;
  z-index: 1;
  width: min(486px, calc(100% - 24px));
  border-radius: 8px;
  padding: clamp(24px, 3.4vw, 34px);
  background: rgba(255, 255, 255, .965) !important;
  border: 1px solid rgba(12, 93, 89, .15) !important;
  box-shadow: 0 34px 88px rgba(3, 17, 22, .22);
  backdrop-filter: blur(14px);
  color: #102326 !important;
}

html[data-praisi-theme] main.gate-card,
html[data-praisi-theme] div[class*="card"].gate-card {
  background: rgba(255, 255, 255, .965) !important;
  color: #102326 !important;
  border-color: rgba(12, 93, 89, .15) !important;
  box-shadow: 0 34px 88px rgba(3, 17, 22, .22) !important;
}

.gate-mode-badge {
  position: absolute;
  top: 18px;
  right: 18px;
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 11px;
  border: 1px solid rgba(15, 118, 110, .2);
  border-radius: 999px;
  background: linear-gradient(135deg, #effaf7, #ffffff);
  color: #0f766e;
  box-shadow: 0 12px 28px rgba(16, 35, 38, .08);
  font-size: .68rem;
  font-weight: 900;
  letter-spacing: .08em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.gate-brand-full {
  justify-content: flex-start;
  margin: 0 128px 18px 0;
}

.gate-logo-full {
  width: min(206px, 52vw);
}

.gate-card .eyebrow {
  display: none !important;
}

.gate-card h1 {
  margin: 0 0 10px;
  color: #092c31;
  font-family: var(--praisi-public-head, Georgia, serif);
  font-size: clamp(2rem, 3vw, 2.92rem);
  line-height: 1;
  letter-spacing: 0;
}

.gate-card p {
  color: #5d6a6d;
  font-size: .96rem;
  line-height: 1.45;
  margin: 0 0 16px;
}

.gate-btn {
  border-radius: 999px;
  min-height: 44px;
  text-decoration: none;
}

.gate-btn.primary {
  background: #092c31;
  color: #ffffff;
}

.gate-google {
  min-height: 46px;
  gap: 12px;
  border-color: rgba(16, 35, 38, .16);
  background: #ffffff;
  color: #102326;
  box-shadow: 0 16px 34px rgba(16, 35, 38, .08);
}

.gate-google .google-icon {
  display: inline-flex;
  width: 22px;
  height: 22px;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.gate-google .google-icon svg {
  width: 22px;
  height: 22px;
  display: block;
}

.gate-divider {
  margin: 13px 0;
}

.gate-card .form-grid {
  gap: 10px;
  margin-top: 14px !important;
}

.gate-card input {
  min-height: 43px;
}

.gate-consent {
  font-size: 12.2px;
  line-height: 1.32;
}

.gate-actions {
  justify-content: flex-start;
  margin-top: 12px;
}

.gate-legal {
  position: fixed;
  z-index: 2;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  width: min(760px, calc(100% - 28px));
  color: rgba(255, 255, 255, .78);
  font-size: 11.5px;
  line-height: 1.35;
  text-align: center;
  text-shadow: 0 1px 10px rgba(0, 0, 0, .26);
}

.gate-footer,
.praisi-public-footer {
  display: none !important;
}

@media (min-width: 981px) {
  html:has(body.gate-body),
  body.gate-body {
    height: 100%;
    overflow: hidden;
  }

  .gate-card {
    max-height: calc(100vh - 86px);
  }
}

@media (max-width: 980px) {
  body.gate-body {
    min-height: 100svh;
    flex-direction: column;
    padding: 20px 0 54px;
    overflow: auto;
    background:
      linear-gradient(180deg, rgba(3, 17, 22, .9), rgba(8, 78, 72, .72) 44%, rgba(246, 241, 232, .95)),
      linear-gradient(160deg, #08242a 0%, #0b6c66 48%, #f5efe4 100%) !important;
    background-attachment: scroll !important;
  }

  .gate-card {
    margin: 0 auto;
    width: min(100% - 28px, 540px);
  }

  .gate-brand-full {
    justify-content: flex-start;
  }

  .gate-legal {
    position: static;
    transform: none;
    margin: 14px auto 0;
    color: rgba(255, 255, 255, .84);
  }
}

@media (max-width: 520px) {
  .gate-mode-badge {
    position: static;
    margin: 0 0 14px;
  }

  .gate-brand-full {
    margin-right: 0;
  }
}
