﻿:root{
  --bg1:#051712;
  --bg2:#0c2f25;
  --glow:#5cf2a5;
  --text:#e8f7ec;
  --glass: rgba(255,255,255,0.09);
}

*{box-sizing:border-box}
html,body{height:100%;margin:0}
body {
  font-family:"Montserrat",sans-serif;
  color:var(--text);
  background-color:#041611;
  background-image: url("/static/background.png");
  background-repeat:no-repeat;
  background-position:center top;
  background-size:cover;
  overflow-x:hidden;
  position:relative;
}
body::before {
  content:"";
  position:fixed;
  inset:0;
  background: rgba(255,255,255,0.08);
  mix-blend-mode:screen;
  pointer-events:none;
  z-index:-1;
}
.page-content { position:relative; z-index:1; }

/* Navigation */
.navbar {
  position: relative;
  z-index: 10000;
  height: 70px;
  padding: 0 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(5, 23, 18, 0.8);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(92, 242, 165, 0.1);
}

.nav-container {
  width: 100%;
  max-width: 1400px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-img {
  width: 44px;
  height: 44px;
}

.logo-text {
  font-weight: 700;
  font-size: 22px;
  color: var(--text);
}

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent !important;
  border: none !important;
  cursor: pointer;
  padding: 8px !important;
  margin: 0 !important;
  width: auto !important;
  height: auto !important;
  box-shadow: none !important;
  z-index: 10000;
  position: relative;
}

.mobile-menu-toggle span {
  width: 25px;
  height: 3px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

.nav-links {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 32px;
  font-size: 13px;
  font-weight: 700;
}

.nav-link {
  text-decoration: none;
  color: var(--text);
  opacity: 0.85;
  transition: all 0.3s ease;
  position: relative;
}

.nav-link:hover {
  opacity: 1;
  text-shadow: 0 0 6px var(--glow);
}

.nav-link.active {
  opacity: 1;
  color: var(--glow);
}

.nav-link.active::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--glow);
  box-shadow: 0 0 8px var(--glow);
}

.user-info {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
  margin-left: 20px;
  padding-left: 20px;
  border-left: 1px solid rgba(92, 242, 165, 0.2);
}

.user-name {
  color: var(--text);
  font-weight: 600;
  font-size: 14px;
  font-family: "Montserrat", sans-serif;
}

.logout-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: var(--text);
  padding: 6px 14px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 13px;
  transition: all 0.3s ease;
  cursor: pointer;
  font-family: "Montserrat", sans-serif;
}

.logout-btn:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: #ef4444;
  color: #ef4444;
  transform: translateY(-1px);
}

.hero{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  min-height:calc(100vh - 70px);
  text-align:center;
  position:relative;
  z-index:1;
  z-index:3;
  padding: 20px 12px;
}

.shield { display:flex; align-items:center; justify-content:center; margin-bottom:18px; background:none !important; border:none !important; box-shadow:none !important; }
.shield-img { width:120px; height:auto; filter: drop-shadow(0 0 16px rgba(92,242,165,0.55)); }

h1{
  letter-spacing:5px;
  font-size:48px;
  font-weight:800;
  margin:6px 0 26px;
  text-shadow:0 0 14px rgba(92,242,165,.55);
  position:relative;
  z-index:4;
}

form{ width:100%; max-width:460px; display:flex; flex-direction:column; gap:12px; position:relative; z-index:4; }

input{
  padding:13px 14px;
  border-radius:6px;
  border:none;
  background:var(--glass);
  color:var(--text);
  font-size:15px;
  outline:none;
  backdrop-filter:blur(6px);
}
input::placeholder{color:#9fb7ac}

button{
  margin-top:10px;
  padding:11px 20px;
  width:140px;
  align-self:center;
  background:#ffffff;
  color:#0a1813;
  border:none;
  border-radius:6px;
  font-weight:800;
  cursor:pointer;
  box-shadow:0 6px 22px rgba(255,255,255,0.25);
}
button:hover{transform:scale(1.04)}
button:active{transform:scale(1)}

.percent{
  position:absolute;
  font-weight:800;
  color:var(--text);
  opacity:.95;
  text-shadow:0 6px 18px rgba(0,0,0,0.6);
  letter-spacing:0.6px;
  transition:transform .25s ease, opacity .25s ease;
  pointer-events:none;
  z-index:1;
}

.percent.small{ font-size:20px; opacity:0.85;}
.percent.default{ font-size:34px; }
.percent.big{ font-size:56px; font-weight:900; }

.percent.glow{
  color: #e8fff0;
  text-shadow:
     0 0 18px rgba(92,242,165,0.25),
     0 6px 26px rgba(2,8,6,0.6);
}

@keyframes pulseGlow {
  0%{filter:drop-shadow(0 0 6px rgba(92,242,165,0.15)); transform:translateY(0)}
  50%{filter:drop-shadow(0 0 18px rgba(92,242,165,0.34)); transform:translateY(-2px)}
  100%{filter:drop-shadow(0 0 6px rgba(92,242,165,0.15)); transform:translateY(0)}
}
.percent.pulse { animation: pulseGlow 2.2s infinite linear; }

.p1{ left:6%; top:24%; }
.p2{ right:6%; top:24%; }
.p3{ left:8%; bottom:18%; }
.p4{ right:8%; bottom:18%; }
.p5{ left:22%; top:42%; }
.p6{ right:22%; bottom:36%; }

.percent:hover{ transform:scale(1.06); opacity:1 }

@media (max-width:1500px) and (max-height:1000px) {
  .hero {
    position: relative;
  }

  .p5 {
    left: 50% !important;
    top: 30% !important;
    transform: translate(-50%, -140px) !important;
    z-index: 6 !important;
    pointer-events: none;
  }
}

@media(max-width:1024px){
  .percent.big{ font-size:48px; }
}

@media(max-width:768px){
  h1{font-size:34px}
  .percent{font-size:20px}
  .percent.big{font-size:36px}
  .p1{left:4%; top:16%}
  .p2{right:4%; top:14%}
  .p3{left:6%; bottom:12%}
  .p4{right:6%; bottom:12%}
  .p5{left:8%; top:40%}
  .p6{right:8%; bottom:26%}
  .navbar{padding:0 20px}
  
  .mobile-menu-toggle {
    display: flex !important;
    margin: 0 !important;
    padding: 8px !important;
    width: auto !important;
    height: auto !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
  }

  .nav-links {
    position: fixed !important;
    top: 70px;
    left: 0;
    right: 0;
    background: rgba(5, 23, 18, 0.98);
    backdrop-filter: blur(10px);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(92, 242, 165, 0.2);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    display: none !important;
    transition: max-height 0.3s ease, opacity 0.3s ease, padding 0.3s ease;
    z-index: 99999 !important;
  }

  .nav-links.active {
    max-height: 500px;
    opacity: 1;
    pointer-events: auto !important;
    display: flex !important;
  }

  .nav-links.active .nav-link {
    pointer-events: auto !important;
    cursor: pointer !important;
    position: relative !important;
    z-index: 100000 !important;
  }
  
  .user-info {
    width: 100%;
    margin-left: 0;
    padding-left: 0;
    border-left: none;
    border-top: 1px solid rgba(92, 242, 165, 0.2);
    padding-top: 20px;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .nav-link {
    padding: 12px 0;
    border-bottom: 1px solid rgba(92, 242, 165, 0.1);
    width: 100%;
    text-align: left;
    display: block !important;
    cursor: pointer !important;
    text-decoration: none !important;
    pointer-events: auto !important;
    position: relative !important;
    z-index: 100000 !important;
  }

  .nav-link:last-child {
    border-bottom: none;
  }

  .nav-link.active::after {
    display: none;
  }

  .nav-link.active {
    color: var(--glow);
    padding-left: 8px;
    border-left: 3px solid var(--glow);
  }
}

/* Footer */
.footer {
  margin-top: auto;
  padding: 40px 20px;
  background: rgba(5, 23, 18, 0.8);
  border-top: 1px solid rgba(92, 242, 165, 0.1);
}

.footer-bottom {
  text-align: center;
  opacity: 0.6;
  font-size: 14px;
}

.footer-bottom p {
  margin: 4px 0;
}

.footer-bottom p:first-child {
  margin-top: 0;
}

.footer-bottom p:last-child {
  margin-bottom: 0;
}

.footer .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

@media (max-width:480px) {
  .p5, .p6 { display:none; }
  .percent.default { font-size:18px; }
  .percent.big { font-size:28px; }
  .p1 { left:6%; top:10%; }
  .p2 { right:6%; top:10%; }
  .p3 { left:6%; bottom:8%; }
  .p4 { right:6%; bottom:8%; }
  h1 { font-size:28px; margin-top:6px; margin-bottom:16px; z-index:4;}
  form { z-index:4; }
}

.logo-img { width: 42px; height: 42px; }

.login-error {
  max-width:460px;
  margin:8px auto 6px;
  padding:10px 12px;
  border-radius:8px;
  background: rgba(255,100,100,0.12);
  color: #ffdede;
  border: 1px solid rgba(255,100,100,0.14);
  font-weight:700;
}

