/* Página exclusiva de entrada — sem elementos do painel */

:root {
  --gate-bg1: #0e1525;
  --gate-bg2: #1a2744;
  --gate-card: #ffffff;
  --gate-text: #0c111d;
  --gate-muted: #5c6578;
  --gate-accent: #0b57d0;
  --gate-accent-h: #0842a0;
  --gate-danger: #b3261e;
  --gate-radius: 16px;
  --font: "DM Sans", system-ui, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --gate-card: #161b26;
    --gate-text: #f2f4f8;
    --gate-muted: #9aa4b2;
    --gate-accent: #8cb4ff;
    --gate-accent-h: #6b9eff;
    --gate-danger: #f28b82;
  }
}

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

html,
body {
  margin: 0;
  min-height: 100%;
  font-family: var(--font);
}

body.login-gate {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 16px 40px;
  color: var(--gate-text);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(11, 87, 208, 0.35), transparent 55%),
    radial-gradient(900px 500px at 100% 20%, rgba(219, 39, 119, 0.18), transparent 50%),
    linear-gradient(165deg, var(--gate-bg1), var(--gate-bg2));
}

.login-gate__noise {
  position: fixed;
  inset: 0;
  opacity: 0.04;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.login-gate__card {
  position: relative;
  width: 100%;
  max-width: 420px;
  background: var(--gate-card);
  border-radius: var(--gate-radius);
  padding: 2rem 2rem 1.75rem;
  box-shadow:
    0 24px 80px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(255, 255, 255, 0.06);
}

.login-gate__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gate-muted);
  margin-bottom: 0.75rem;
}

.login-gate__badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.35);
}

.login-gate__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, #ff0000, #b80000);
  margin-bottom: 1rem;
}

.login-gate__logo::after {
  content: "";
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 8px 0 8px 14px;
  border-color: transparent transparent transparent #fff;
  margin-left: 3px;
}

.login-gate h1 {
  margin: 0 0 0.5rem;
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.login-gate__lead {
  margin: 0 0 1.5rem;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--gate-muted);
}

.login-gate__lead code {
  font-size: 0.82em;
  padding: 0.1em 0.35em;
  border-radius: 4px;
  background: rgba(11, 87, 208, 0.08);
  color: var(--gate-accent);
}

.field {
  display: block;
}

.field__label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gate-muted);
  margin-bottom: 0.4rem;
}

.input {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 12px;
  background: var(--gate-card);
  color: var(--gate-text);
  font: inherit;
  font-size: 1rem;
}

@media (prefers-color-scheme: dark) {
  .input {
    border-color: rgba(255, 255, 255, 0.12);
  }
}

.input:focus {
  outline: none;
  border-color: var(--gate-accent);
  box-shadow: 0 0 0 3px rgba(11, 87, 208, 0.2);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: 1.1rem;
  padding: 0.85rem 1rem;
  border: none;
  border-radius: 12px;
  font: inherit;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  background: var(--gate-accent);
  color: #fff;
}

.btn:hover {
  background: var(--gate-accent-h);
}

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

.form-error {
  margin: 0.75rem 0 0;
  font-size: 0.88rem;
  color: var(--gate-danger);
  min-height: 1.25em;
}

.link-back {
  display: block;
  text-align: center;
  margin-top: 1.35rem;
  font-size: 0.92rem;
  color: var(--gate-accent);
  text-decoration: none;
  font-weight: 600;
}

.link-back:hover {
  text-decoration: underline;
}

.login-gate__foot {
  margin-top: 2rem;
  text-align: center;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.55);
  max-width: 360px;
  line-height: 1.45;
}
