:root {
  --bg-dark: #0b1736;
  --bg-gradient-start: rgba(11, 23, 54, 0.85);
  --bg-gradient-end: rgba(19, 54, 106, 0.6);
  --glass-bg: rgba(12, 22, 46, 0.55);
  --glass-border: rgba(255, 255, 255, 0.05);
  --accent: #3b82f6;
  --accent-2: #38bdf8;
  --text-muted: rgba(255, 255, 255, 0.65);
  --text-light: rgba(255, 255, 255, 0.85);
  --shadow-soft: 0 18px 60px rgba(8, 15, 40, 0.45);
  --shadow-card: 0 14px 40px rgba(11, 23, 54, 0.55);
}

* {
  box-sizing: border-box;
}

body {
  font-family: 'Barlow', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: radial-gradient(circle at 20% 20%, rgba(59, 130, 246, 0.55), transparent 50%),
    radial-gradient(circle at 80% 0%, rgba(56, 189, 248, 0.4), transparent 55%),
    linear-gradient(135deg, rgba(9, 12, 30, 1) 0%, rgba(13, 26, 62, 0.92) 100%);
  min-height: 100vh;
  color: #fff;
  display: flex;
  align-items: stretch;
  justify-content: center;
}

.page-wrapper {
  position: relative;
  min-height: 100vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.gradient-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(11, 23, 54, 0.35), rgba(59, 130, 246, 0.18));
  z-index: 0;
}

header,
main,
footer {
  position: relative;
  z-index: 1;
}

.brand-badge {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  background: linear-gradient(140deg, rgba(59, 130, 246, 0.22), rgba(56, 189, 248, 0.08));
  display: grid;
  place-items: center;
  color: var(--accent);
  font-size: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 12px 35px rgba(59, 130, 246, 0.23);
}

.brand-title {
  font-weight: 700;
  font-size: clamp(1.75rem, 2.4vw, 2.4rem);
  letter-spacing: 0.02em;
  color: #fff;
}

.brand-subtitle {
  font-size: 0.95rem;
  color: var(--text-muted);
}

.badge.bg-opacity {
  background: rgba(59, 130, 246, 0.18);
  color: #bfdbfe;
  border: 1px solid rgba(191, 219, 254, 0.3);
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  letter-spacing: 0.12em;
  font-weight: 600;
}

.glass-panel {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 28px;
  padding: clamp(2rem, 4vw, 2.85rem);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(18px);
}

.hero-card .hero-title {
  font-weight: 700;
  font-size: clamp(2rem, 2.8vw, 2.45rem);
  line-height: 1.25;
  margin-bottom: 1rem;
}

.hero-card .hero-text {
  font-size: 1.05rem;
  color: var(--text-light);
  margin-bottom: 1.75rem;
}

.feature-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0;
  font-size: 1rem;
  color: var(--text-light);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.feature-list li:last-child {
  border-bottom: none;
}

.feature-list i {
  color: var(--accent-2);
  font-size: 1.2rem;
}

.login-card {
  position: relative;
}

.login-icon {
  width: 64px;
  height: 64px;
  border-radius: 22px;
  margin: 0 auto 1.5rem;
  background: url('https://www.pm.pb.gov.br/portal/wp-content/uploads/2023/06/BEPTUR.png') center/contain no-repeat,
    linear-gradient(135deg, rgba(59, 130, 246, 0.3), rgba(59, 130, 246, 0.1));
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.input-group-text,
.form-control {
  border-radius: 14px;
  border-color: rgba(255, 255, 255, 0.12) !important;
}

.form-control {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}

.form-control::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.form-label {
  color: var(--text-light);
  font-weight: 600;
}

.form-text {
  color: rgba(255, 255, 255, 0.45);
}

.password-field .toggle-password {
  position: absolute;
  top: 50%;
  right: 1rem;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.55);
  font-size: 1rem;
}

.btn-primary {
  border-radius: 14px;
  font-weight: 600;
  letter-spacing: 0.03em;
  background: linear-gradient(135deg, #2563eb, #38bdf8);
  border: none;
  box-shadow: 0 16px 30px rgba(31, 99, 214, 0.35);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #1d4ed8, #0ea5e9);
}

.link-light {
  color: rgba(255, 255, 255, 0.7);
}

.link-light:hover {
  color: #fff;
}

.access-levels .badge {
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
}

footer {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  margin-top: clamp(3rem, 8vw, 5rem);
}

@media (max-width: 991.98px) {
  header {
    text-align: center;
  }

  .brand-badge {
    margin: 0 auto;
  }

  .brand-title {
    margin-top: 0.75rem;
  }

  .glass-panel {
    padding: 2rem;
  }
}

@media (max-width: 575.98px) {
  body {
    padding: 1.5rem 0.75rem;
  }

  .glass-panel {
    border-radius: 22px;
  }

  footer {
    text-align: center;
  }

  footer .text-md-end {
    text-align: center !important;
  }

  footer .text-md-end a {
    display: inline-block;
    margin: 0.35rem 0.75rem 0;
  }
}
