:root {
  --bg-dark: #050810;
  --gov-blue: #0E2A4F;
  --gov-accent: #2A5A8F;
  --gov-highlight: #4B9FE3;
  --text-main: #E2E8F0;
  --text-muted: #94A3B8;
  --warning-red: #FA3E3E;
  --auth-green: #10B981;
  --font-primary: 'Inter', sans-serif;
  --font-mono: 'Space Mono', monospace;
  --glass-bg: rgba(14, 42, 79, 0.25);
  --glass-border: rgba(75, 159, 227, 0.3);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-primary);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  position: relative;
}

/* CRT Scanline Effect */
body::before {
  content: " ";
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  background: linear-gradient(rgba(18, 16, 16, 0) 50%,
      rgba(0, 0, 0, 0.25) 50%);
  background-size: 100% 4px;
  z-index: 999;
  pointer-events: none;
  opacity: 0.3;
}

/* Background gradient animation */
.background-texture {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, rgba(42, 90, 143, 0.15) 0%, rgba(5, 8, 16, 1) 100%);
  pointer-events: none;
  z-index: -1;
  animation: breathe 8s infinite alternate;
}

@keyframes breathe {
  0% {
    transform: scale(1);
    opacity: 0.8;
  }

  100% {
    transform: scale(1.05);
    opacity: 1;
  }
}

/* Header */
.gov-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 2.5rem;
  background: rgba(10, 20, 36, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 2px solid var(--gov-accent);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.6);
  position: relative;
  z-index: 10;
}

.logo {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.seal {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--gov-accent) 0%, var(--gov-blue) 100%);
  border-radius: 50%;
  border: 2px solid var(--gov-highlight);
  box-shadow: 0 0 15px rgba(75, 159, 227, 0.5);
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: pulse-seal 3s infinite alternate;
  flex-shrink: 0;
}

@keyframes pulse-seal {
  0% {
    box-shadow: 0 0 15px rgba(75, 159, 227, 0.5);
  }

  100% {
    box-shadow: 0 0 25px rgba(75, 159, 227, 0.9);
  }
}

.seal::after {
  content: "BCA";
  font-size: 0.8rem;
  font-weight: 800;
  color: white;
  letter-spacing: 1px;
}

h1 {
  font-size: 1.4rem;
  letter-spacing: 3px;
  font-weight: 800;
  color: #F8FAFC;
  text-transform: uppercase;
  text-shadow: 0 0 10px rgba(75, 159, 227, 0.3);
  margin-bottom: 0.2rem;
}

.sub-header {
  font-size: 0.85rem;
  color: var(--gov-highlight);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-weight: 600;
}

.status-indicator {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--auth-green);
  letter-spacing: 2px;
  text-shadow: 0 0 5px var(--auth-green);
  animation: blink 2s infinite;
}

@keyframes blink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.5;
  }
}

/* Warning Banner */
.warning-banner {
  background: repeating-linear-gradient(45deg,
      #7F1D1D,
      #7F1D1D 10px,
      #991B1B 10px,
      #991B1B 20px);
  color: white;
  text-align: center;
  padding: 0.6rem;
  font-size: 0.8rem;
  letter-spacing: 2px;
  font-weight: 800;
  font-family: var(--font-mono);
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
  position: relative;
  z-index: 10;
  border-bottom: 2px solid #FA3E3E;
}

/* Container */
.container {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 2.5rem;
  position: relative;
  z-index: 5;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}

.content-wrapper {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
  width: 100%;
  align-items: start;
  animation: fadeIn 0.8s ease-out;
}

/* Info Section */
.bca-info {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  padding: 2.5rem;
  border-radius: 8px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.info-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid var(--gov-highlight);
  padding-bottom: 1rem;
  margin-bottom: 2rem;
}

.info-header h2 {
  font-size: 1.8rem;
  letter-spacing: 2px;
  color: #F8FAFC;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.classification {
  font-family: var(--font-mono);
  color: var(--gov-highlight);
  font-size: 0.85rem;
  font-weight: 700;
  border: 1px solid var(--gov-highlight);
  padding: 0.3rem 0.6rem;
  border-radius: 4px;
}

.info-block {
  margin-bottom: 2rem;
}

.info-block h4 {
  font-family: var(--font-mono);
  color: var(--gov-highlight);
  letter-spacing: 1px;
  margin-bottom: 0.8rem;
  font-size: 1.1rem;
  border-left: 3px solid var(--gov-highlight);
  padding-left: 0.8rem;
}

.info-block p {
  color: var(--text-main);
  line-height: 1.6;
  margin-bottom: 1rem;
  font-size: 1.05rem;
}

.symptom-list {
  list-style-type: square;
  padding-left: 1.5rem;
  color: var(--text-muted);
}

.symptom-list li {
  margin-bottom: 0.5rem;
  line-height: 1.5;
}

.warning-block {
  background: rgba(225, 29, 72, 0.1);
  border: 1px solid rgba(225, 29, 72, 0.3);
  padding: 1.5rem;
  border-radius: 4px;
}

.warning-block h4 {
  color: #FCA5A5;
  border-left-color: var(--warning-red);
}

.bca-footer-info {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Login Panel - Glassmorphism */
.login-panel {
  background: rgba(5, 8, 16, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--gov-accent);
  padding: 2.5rem;
  border-radius: 8px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5), inset 0 0 0 1px rgba(75, 159, 227, 0.1);
  position: sticky;
  top: 2rem;
}

.panel-header {
  text-align: center;
  margin-bottom: 2rem;
}

.panel-header h2 {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
  color: #F8FAFC;
  letter-spacing: 2px;
}

.subtitle {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.scanner-line {
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gov-highlight), transparent);
  width: 100%;
  animation: scan 2.5s infinite ease-in-out alternate;
  box-shadow: 0 0 10px var(--gov-highlight);
}

@keyframes scan {
  0% {
    transform: scaleX(0);
    opacity: 0;
  }

  50% {
    transform: scaleX(1);
    opacity: 1;
  }

  100% {
    transform: scaleX(0);
    opacity: 0;
  }
}

.input-group {
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

label {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--gov-highlight);
  letter-spacing: 1.5px;
  font-weight: 700;
}

input {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--gov-accent);
  padding: 0.9rem 1rem;
  color: white;
  font-family: var(--font-mono);
  font-size: 1rem;
  border-radius: 4px;
  transition: all 0.3s ease;
  letter-spacing: 1px;
}

input:focus {
  outline: none;
  border-color: var(--gov-highlight);
  box-shadow: 0 0 15px rgba(75, 159, 227, 0.3);
  background: rgba(0, 0, 0, 0.6);
}

input::placeholder {
  color: #475569;
}

.auth-btn {
  width: 100%;
  padding: 1.1rem;
  background: linear-gradient(135deg, var(--gov-accent) 0%, var(--gov-blue) 100%);
  color: white;
  border: 1px solid var(--gov-highlight);
  font-family: var(--font-mono);
  font-size: 1.05rem;
  font-weight: bold;
  letter-spacing: 2px;
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.3s ease;
  margin-top: 1rem;
  position: relative;
  overflow: hidden;
}

.auth-btn:hover {
  box-shadow: 0 0 20px rgba(75, 159, 227, 0.4);
  transform: translateY(-1px);
}

.error-msg {
  margin-top: 1.5rem;
  color: #FCA5A5;
  background: rgba(225, 29, 72, 0.15);
  border-left: 4px solid var(--warning-red);
  padding: 1rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  line-height: 1.4;
  box-shadow: inset 0 0 10px rgba(225, 29, 72, 0.2);
}

/* Denial/Dashboard Panel */
.denial-panel {
  background: rgba(20, 5, 5, 0.9);
  backdrop-filter: blur(12px);
  border: 1px solid var(--warning-red);
  padding: 3rem 4rem;
  width: 100%;
  max-width: 900px;
  border-radius: 8px;
  box-shadow: 0 0 40px rgba(250, 62, 62, 0.3), inset 0 0 0 1px rgba(250, 62, 62, 0.2);
  margin: 0 auto;
  animation: alert-slide-up 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes alert-slide-up {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.alert-box {
  margin-bottom: 2.5rem;
  border-bottom: 2px dashed rgba(250, 62, 62, 0.4);
  padding-bottom: 2rem;
}

.alert-title {
  color: var(--warning-red);
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  text-shadow: 0 0 15px rgba(250, 62, 62, 0.6);
  text-align: center;
}

.subject-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
  background: rgba(0, 0, 0, 0.4);
  padding: 1.5rem;
  border: 1px solid rgba(250, 62, 62, 0.3);
  border-radius: 4px;
}

.grid-stat {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.grid-stat .label {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: #94A3B8;
  letter-spacing: 1px;
}

.grid-stat .value {
  font-family: var(--font-mono);
  font-size: 1.2rem;
  font-weight: bold;
}

.value.highlight {
  color: #F8FAFC;
}

.value.pending {
  color: #FBBF24;
}

.value.slowing {
  color: #F97316;
}

.value.retracted {
  color: var(--warning-red);
  text-decoration: line-through;
}

.warning-text {
  font-size: 1.15rem;
  line-height: 1.6;
  color: var(--text-main);
  margin-bottom: 1rem;
  text-align: center;
}

.countdown-container h3 {
  color: #F8FAFC;
  letter-spacing: 4px;
  margin-bottom: 2rem;
  font-size: 1.4rem;
  font-weight: 600;
  text-transform: uppercase;
  text-align: center;
}

.timer {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.time-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(250, 62, 62, 0.5);
  padding: 1.5rem 1rem;
  min-width: 120px;
  border-radius: 6px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.5), inset 0 0 20px rgba(250, 62, 62, 0.1);
}

.time-box span {
  font-family: var(--font-mono);
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--warning-red);
  text-shadow: 0 0 15px rgba(250, 62, 62, 0.5);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.time-box label {
  margin-top: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 700;
  letter-spacing: 2px;
}

.mitigation-notice {
  text-align: center;
  background: rgba(225, 29, 72, 0.1);
  padding: 2rem;
  border: 1px solid var(--warning-red);
  border-radius: 4px;
}

.mitigation-notice h4 {
  color: #FCA5A5;
  font-size: 1.2rem;
  letter-spacing: 2px;
  margin-bottom: 1rem;
}

.mitigation-notice p {
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--text-main);
  margin-bottom: 1.5rem;
}

.footer-msg {
  margin-top: 2rem !important;
  font-family: var(--font-mono);
  font-size: 0.9rem !important;
  color: #94A3B8 !important;
  letter-spacing: 1.5px;
}

.hidden {
  display: none !important;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1024px) {
  .content-wrapper {
    grid-template-columns: 1fr;
  }

  .login-panel {
    max-width: 600px;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .gov-header {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .logo {
    flex-direction: column;
    gap: 0.5rem;
  }

  .subject-details {
    grid-template-columns: 1fr;
  }

  .timer {
    gap: 1rem;
  }

  .time-box {
    min-width: 90px;
    padding: 1rem 0.5rem;
  }

  .time-box span {
    font-size: 2.5rem;
  }

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