* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body.gate {
  font-family: Inter, ui-sans-serif, system-ui, "Segoe UI", sans-serif;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
  color: #1e293b;
}
.gate-split { display: flex; min-height: 100vh; }
.gate-brand {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 60px;
  color: white;
}
.logo { display: flex; align-items: center; gap: 15px; margin-bottom: 48px; }
.logo-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-weight: 800;
  letter-spacing: -0.04em;
  font-size: 16px;
  color: white;
  box-shadow: 0 10px 24px rgba(102, 126, 234, 0.35);
}
.logo-text h1 { margin: 0; font-size: 32px; font-weight: 700; letter-spacing: -1px; }
.logo-text p { margin: 4px 0 0; font-size: 14px; opacity: 0.8; }
.brand-content { max-width: 520px; }
.brand-content h2 {
  margin: 0 0 16px;
  font-size: 48px;
  line-height: 1.15;
  font-weight: 700;
  background: linear-gradient(135deg, #8ea2ff 0%, #c084fc 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.brand-content p { margin: 0 0 28px; font-size: 18px; line-height: 1.6; opacity: 0.9; }
.features { display: flex; flex-wrap: wrap; gap: 18px 28px; }
.feature { display: flex; align-items: center; gap: 10px; font-size: 14px; opacity: 0.95; }
.feature svg { color: #8ea2ff; flex: none; }
.gate-panel {
  width: min(520px, 100%);
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 40px 28px;
  box-shadow: -20px 0 60px rgba(0, 0, 0, 0.18);
  border-radius: 30px 0 0 30px;
}
.login-card { width: 100%; max-width: 400px; }
.login-header { text-align: center; margin-bottom: 32px; }
.login-header h3 { margin: 0 0 8px; font-size: 28px; color: #1e293b; }
.login-header p { margin: 0; color: #64748b; font-size: 14px; }
.input-group { margin-bottom: 20px; }
.input-group label { display: block; margin-bottom: 8px; color: #1e293b; font-weight: 600; font-size: 14px; }
.input-wrapper { position: relative; }
.input-wrapper svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: #94a3b8; }
.input-wrapper input {
  width: 100%;
  padding: 14px 15px 14px 44px;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  font: inherit;
  font-size: 14px;
  color: #1e293b;
  background: white;
}
.input-wrapper input:focus { outline: none; border-color: #667eea; box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.15); }
.login-options { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 22px; }
.remember-me { display: flex; align-items: center; gap: 8px; color: #64748b; font-size: 14px; }
.remember-me input { width: 16px; height: 16px; }
.forgot-password, .legal a { color: #667eea; font-weight: 600; text-decoration: none; font-size: 14px; }
button.forgot-password { background: none; border: 0; padding: 0; cursor: pointer; font: inherit; font-weight: 600; font-size: 14px; }
.forgot-password:hover, .legal a:hover { text-decoration: underline; }
.login-btn {
  width: 100%;
  padding: 14px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}
.login-btn:hover { transform: translateY(-1px); box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3); }
.login-btn:disabled { opacity: 0.7; cursor: default; transform: none; box-shadow: none; }
.error-message { background: #fee2e2; color: #dc2626; padding: 12px; border-radius: 8px; margin-bottom: 16px; font-size: 14px; text-align: center; }
.error-message:empty { display: none; }
.ok-message { color: #216e4e; font-size: 14px; text-align: center; min-height: 1.2em; }
.legal { margin-top: 28px; padding-top: 16px; border-top: 1px solid #e2e8f0; color: #64748b; font-size: 12px; text-align: center; line-height: 1.7; }
.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 30;
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  background: #0f172a;
  color: #e2e8f0;
  border-radius: 16px;
  padding: 16px 18px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}
.cookie-banner p { margin: 0; font-size: 14px; line-height: 1.5; }
.cookie-banner a { color: #c4b5fd; }
.cookie-banner button {
  border: 0;
  border-radius: 10px;
  padding: 10px 16px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}
.legal-page { min-height: 100vh; display: flex; flex-direction: column; }
.legal-main { flex: 1; display: grid; place-items: start center; padding: 32px 16px 48px; }
.legal-card { width: min(760px, 100%); background: white; color: #1e293b; border-radius: 20px; padding: 32px; }
.legal-card h1 { margin: 8px 0 4px; font-size: 32px; }
.legal-card h2 { margin: 24px 0 8px; font-size: 18px; }
.legal-card p, .legal-card li { color: #334155; line-height: 1.6; }
.legal-card a { color: #5b4cdb; }
@media (max-width: 860px) {
  .gate-brand { display: none; }
  .gate-panel { width: 100%; border-radius: 0; min-height: 100vh; }
  .cookie-banner { flex-direction: column; align-items: stretch; }
}
