*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Orbitron', sans-serif;
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  overflow: hidden;
}

#bgVideo {
  position: fixed;
  right: 0;
  bottom: 0;
  min-width: 100%;
  min-height: 100%;
  object-fit: cover;
  z-index: -1;
}

.auth-container {
  width: 100%;
  padding: 20px 16px;
  overflow-x: hidden;
}

.auth-box {
  max-width: 400px;
  margin: auto;
  background: rgba(13, 13, 13, 0.85);
  padding: 30px;
  border-radius: 16px;
  border: 2px solid #00ffff;
  box-shadow: 0 0 15px #00ffff, 0 0 30px #00ffff inset;
  animation: fadeIn 0.8s ease;
}

.auth-box h2 {
  text-align: center;
  margin-bottom: 20px;
  color: #33ffff;
}

.auth-box input {
  width: 100%;
  padding: 12px;
  margin-bottom: 15px;
  border: none;
  border-radius: 10px;
  background: #1a1a1a;
  color: #fff;
}

.auth-box input:focus {
  outline: none;
  box-shadow: 0 0 8px #33ffff;
}

.auth-box button {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(145deg, #00ffff, #0099aa);
  color: white;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s ease;
}

.auth-box button:hover {
  background: linear-gradient(145deg, #00d5ff, #007e96);
}

.switch {
  text-align: center;
  font-size: 14px;
  color: #aaa;
}

.switch a {
  color: #33ffff;
  text-decoration: none;
}

.hidden {
  display: none;
}

.button-loading {
  position: relative;
  pointer-events: none;
  color: transparent !important;
}

.button-loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 18px;
  height: 18px;
  margin: -9px 0 0 -9px;
  border: 3px solid #00ffff;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.shake {
  animation: shake 0.4s ease;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-5px); }
  40%, 80% { transform: translateX(5px); }
}

.login-social {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 16px;
}

.social-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 14px;
  color: #fff;
  transition: all 0.25s ease;
  box-shadow: 0 0 4px #00ffff55;
}

.social-icon:hover {
  transform: scale(1.1);
  box-shadow: 0 0 8px #00ffffaa;
}

.social-icon.google { background: #fff; color: #DB4437; }
.social-icon.facebook { background: #3b5998; }
.social-icon.github { background: #000; }

@media (max-width: 500px) {
  .auth-box {
    padding: 20px;
  }

  .social-icon {
    width: 28px;
    height: 28px;
    font-size: 12px;
  }
}
