
.form-glow::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 1.2rem;
  padding: 2px;
  background: linear-gradient(135deg,#1e3a8a,#3b82f6,#1d4ed8);
  -webkit-mask:
     linear-gradient(#fff 0 0) content-box,
     linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  animation: glowRotate 6s linear infinite;
  opacity: .35;
}
@keyframes glowRotate {
  0% { filter:hue-rotate(0deg); transform: rotate(0deg); }
  100% { filter:hue-rotate(360deg); transform: rotate(360deg); }
}

.panel {
  @apply rounded-xl bg-blue-950/70 backdrop-blur border border-blue-900 p-7 shadow-lg hover:border-blue-500 transition relative overflow-hidden;
}
.panel::after {
  content:"";
  position:absolute;
  inset:0;
  background:radial-gradient(circle at 80% 20%,rgba(59,130,246,0.18),transparent 60%);
  opacity:0;
  transition:.4s;
}


.btn-primary {
  @apply px-4 py-2 rounded-lg bg-blue#-600 text-white font-semibold shadow shadow-blue-600/30 hover:bg-blue-500 active:scale-[.97] transition inline-flex items-center justify-center;
}

@keyframes avatarPop {
  from { opacity:0; transform:scale(.8); }
  to { opacity:1; transform:scale(1); }
}
.avatar-fade { animation: avatarPop .5s ease; }
.avatar-round img {
  transition: transform .45s cubic-bezier(.25,.8,.25,1), filter .45s;
}
.group:hover .avatar-round img {
  transform: scale(1.08);
  filter: brightness(1.15);
}
@media (max-width: 480px) {
  .avatar-round img {
    transform: scale(1.02);
  }
  .group:active .avatar-round img {
    transform: scale(1.12);
    filter: brightness(1.2);
  }
  body {
    font-size: 15px;
  }
}
@media (max-width: 640px) {
  .profile-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }
  .profile-grid a {
    width: 100%;
  }
  .profile-grid .avatar-round img {
    transform: scale(1.03);
  }
  .profile-grid a:active .avatar-round img {
    transform: scale(1.12);
    filter: brightness(1.18);
  }
  .mobile-grid-2 {
    display: grid;
    grid-template-columns: repeat(2,1fr) !important;
    width: 100%;
  }
  .mobile-grid-2 a {
    width: 100%;
  }
  .mobile-grid-2 .avatar-round {
    width: 8.5rem !important;
    height: 8.5rem !important;
  }
}

::-webkit-scrollbar { width:10px; }
::-webkit-scrollbar-track { background:#0f172a; }
::-webkit-scrollbar-thumb { background:#334155; border-radius:6px; }
::-webkit-scrollbar-thumb:hover { background:#1d4ed8; }

body { animation: bodyFade .6s ease; }
@keyframes bodyFade {
  from { opacity:0; transform:translateY(6px); }
  to { opacity:1; transform:translateY(0); }
}

.modal-backdrop {
  background: rgba(0,0,0,0.65);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}
.modal-content {
  width: 100%;
  max-width: 380px;
  background: rgba(17,34,64,0.85);
  border: 1px solid #1e3a8a;
  border-radius: 1.1rem;
  padding: 1.75rem 1.5rem 2rem;
  position: relative;
  box-shadow: 0 10px 35px -8px rgba(0,0,0,.6), 0 0 0 1px rgba(30,58,138,.4);
}
.modal-close {
  position: absolute;
  top: .6rem;
  right: .9rem;
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  transition: color .25s;
}
.modal-close:hover { color: #3b82f6; }

@media (max-width: 480px) {
  .modal-content {
    max-width: 100%;
    border-radius: 1rem;
    padding: 1.5rem 1.25rem 2rem;
  }
}

#loginForm { margin-top: .25rem; }
