* {
  box-sizing: border-box;
}

:root {
  --bg-base: #0b1016;
  --bg-app-gradient:
    radial-gradient(circle at top left, rgba(126, 166, 201, 0.09), transparent 34%),
    linear-gradient(180deg, #0c1219 0%, var(--bg-base) 56%, #090d12 100%);
  --bg-panel: rgba(255, 255, 255, 0.028);
  --bg-panel-strong: rgba(255, 255, 255, 0.05);
  --border-subtle: rgba(210, 221, 235, 0.09);
  --border-strong: rgba(210, 221, 235, 0.14);
  --text-primary: #f3f6fb;
  --text-secondary: rgba(227, 234, 244, 0.72);
  --text-muted: rgba(194, 204, 219, 0.5);
  --accent: #7ea6c9;
  --accent-strong: #a9c4dd;
  --danger: #ef4444;
  --shadow-soft: 0 18px 40px rgba(0, 0, 0, 0.26);
}

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

body {
  min-height: 100vh;
  background: var(--bg-app-gradient);
  background-color: var(--bg-base);
  color: var(--text-primary);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, Helvetica, Arial, sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.gate-card {
  width: min(380px, 100%);
  padding: 44px 40px;
  background: var(--bg-panel);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  text-align: center;
  box-shadow: var(--shadow-soft);
}

.gate-logo {
  display: block;
  width: 48px;
  height: 56px;
  object-fit: contain;
  margin: 0 auto 34px;
}

.gate-disclaimer {
  margin-bottom: 32px;
  line-height: 1.65;
}

.gate-disclaimer p {
  margin: 0 0 4px 0;
  color: var(--text-muted);
  font-size: 13px;
}

.gate-disclaimer .gate-disclaimer-title {
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 8px;
}

.gate-disclaimer a {
  color: var(--accent-strong);
  text-decoration: none;
}

.gate-disclaimer a:hover {
  text-decoration: underline;
}

.gate-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.gate-input {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-panel-strong);
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 14px;
  outline: none;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.gate-input::placeholder {
  color: var(--text-muted);
}

.gate-input:focus {
  background: rgba(255, 255, 255, 0.065);
  border-color: rgba(169, 196, 221, 0.54);
}

.gate-input-error {
  border-color: rgba(239, 68, 68, 0.62);
}

.gate-button {
  width: 100%;
  padding: 12px;
  background: rgba(126, 166, 201, 0.1);
  border: 1px solid rgba(169, 196, 221, 0.36);
  border-radius: 8px;
  color: var(--accent-strong);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.gate-button:hover:not(:disabled) {
  background: rgba(126, 166, 201, 0.16);
  border-color: rgba(169, 196, 221, 0.54);
  color: #d7e6f3;
}

.gate-button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.gate-error-text {
  margin: 12px 0 0 0;
  color: var(--danger);
  font-size: 13px;
}

@media (max-width: 480px) {
  body {
    padding: 16px;
  }

  .gate-card {
    padding: 36px 24px;
  }
}
