/* ================= LOGIN MODAL ================= */

.login-modal {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle, rgba(0, 0, 0, 0.4), #000);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

/* OUTER WRAPPER (static) */
.login-ring {
  position: relative;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
}
/* INNER CARD */
.login-card {
  width: 100%;
  height: 100%;
  background: #071826;
  border-radius: 50%;
  box-shadow: inset 0 0 25px rgba(0, 245, 255, 0.6);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 30px;
}

/* STOP SPIN INSIDE */
.login-card * {
  animation: none;
}

/* ROTATING BORDER LAYER ONLY */
.login-ring::before {
  pointer-events: none;
  z-index: 0;
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  padding: 8px;
  background: conic-gradient(#00f5ff,
      #00ff99,
      #ff00ff,
      #8a2be2,
      #00f5ff);
  animation: spin 6s linear infinite;
  -webkit-mask:
    radial-gradient(circle at center,
      transparent 65%,
      black 66%);
  mask:
    radial-gradient(circle at center,
      transparent 65%,
      black 66%);
}

/* TITLE */
.login-card h2 {
  margin-bottom: 20px;
  font-size: 22px;
  color: #00f5ff;
  text-shadow: 0 0 12px #00f5ff;
}

/* INPUT GROUP = MERGED BORDER EFFECT */
.input-group {
  width: 85%;
  border-radius: 30px;
  padding: 2px;
  margin-bottom: 12px;
  background: linear-gradient(90deg, #00f5ff, #ff00ff);
}

.input-group input {
  width: 100%;
  padding: 12px 18px;
  border-radius: 28px;
  border: none;
  outline: none;
  background: #020617;
  color: #00f5ff;
  font-family: 'Orbitron', sans-serif;
  font-size: 14px;
}

/* BUTTON */
.login-card button {
  width: 85%;
  padding: 12px;
  margin-top: 14px;
  border-radius: 30px;
  border: none;
  background: #ff00ff;
  color: white;
  font-family: 'Orbitron', sans-serif;
  cursor: pointer;
  box-shadow: 0 0 18px #ff00ff;
  transition: 0.25s;
}

.login-card button:hover {
  transform: scale(1.05);
  box-shadow: 0 0 28px #ff00ff;
}

/* SWITCH */
.login-switch {
  margin-top: 14px;
  font-size: 11px;
  color: #00f5ff;
  cursor: pointer;
}

/* ERROR */
#loginError {
  color: #ff3b3b;
  margin-top: 8px;
  font-size: 12px;
}

/* ANIMATION */
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* MOBILE SAFE */
@media (max-width: 420px) {
  .login-ring {
    width: 300px;
    height: 300px;
  }
}

@media (max-width: 480px) {

  .login-switch {
    font-size: 6px;
    text-align: center;
    line-height: 1.4;
    word-break: break-word;
  }

}

