/* =============================================================================
   Preview Gate Overlay
   Matches the Laborate visual language (tokens: navy, blue, Inter, Sora)
   Loaded unconditionally; only activates when #oktoberry-gate exists in DOM
============================================================================= */

#oktoberry-gate {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  background: linear-gradient(160deg, #0c1730 0%, #13264c 100%);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* Card */
.gate-card {
  width: 100%;
  max-width: 420px;
  background: #ffffff;
  border-radius: 16px;
  padding: 40px 36px 32px;
  box-shadow: 0 26px 60px rgba(15, 27, 56, 0.45);
  text-align: center;
}

@media (max-width: 480px) {
  .gate-card {
    padding: 32px 24px 28px;
  }
}

/* Logo row */
.gate-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 24px;
}

.gate-brand {
  font-family: 'Sora', 'Inter', sans-serif;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #1E2B4A;
}

/* Heading */
.gate-title {
  font-family: 'Sora', 'Inter', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: #1E2B4A;
  margin: 0 0 10px;
  line-height: 1.3;
}

.gate-sub-title {
  font-family: 'Sora', 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: #1E2B4A;
  margin: 0 0 10px;
  line-height: 1.1;
}

/* Description */
.gate-desc {
  font-size: 14px;
  color: #5a6b8c;
  margin: 0 0 28px;
  line-height: 1.6;
}

/* Form */
.gate-form {
  text-align: left;
}

.gate-field {
  margin-bottom: 6px;
}

.gate-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #1E2B4A;
  margin-bottom: 8px;
}

.gate-input {
  display: block;
  width: 100%;
  box-sizing: border-box;
  height: 48px;
  padding: 0 16px;
  font-size: 15px;
  font-family: inherit;
  color: #1E2B4A;
  background: #F7FAF9;
  border: 1.5px solid #e3eaf2;
  border-radius: 8px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.gate-input:focus {
  border-color: #1062AC;
  box-shadow: 0 0 0 3px rgba(16, 98, 172, 0.15);
  background: #fff;
}

.gate-input--error,
.gate-input--error:focus {
  border-color: #EB3236;
  box-shadow: 0 0 0 3px rgba(235, 50, 54, 0.12);
}

/* Error message */
.gate-error {
  font-size: 13px;
  color: #EB3236;
  margin: 6px 0 16px;
  min-height: 18px;
  line-height: 1.4;
}

/* Submit button */
.gate-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 48px;
  padding: 0 24px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  color: #ffffff;
  background: #1062AC;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
  box-shadow: 0 10px 24px rgba(16, 98, 172, 0.3);
}

.gate-btn:hover {
  background: #0c4f8c;
  box-shadow: 0 14px 30px rgba(16, 98, 172, 0.4);
  transform: translateY(-1px);
}

.gate-btn:active {
  transform: translateY(0);
  box-shadow: 0 6px 16px rgba(16, 98, 172, 0.25);
}

.gate-btn:focus-visible {
  outline: 2px solid #1062AC;
  outline-offset: 2px;
}

/* Footer note */
.gate-footer {
  font-size: 11px;
  color: #9fb2cf;
  margin: 20px 0 0;
  text-align: center;
  letter-spacing: 0.01em;
}
