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

body {
  min-height: 100dvh;
  background: linear-gradient(135deg, #0d001a 0%, #0a011f 50%, #000814 100%);
  color: #e0e0ff;
  font-family: 'Roboto', system-ui, sans-serif;
  overflow-x: hidden;
}

.background-grid {
  position: fixed;
  inset: 0;
  background-image: 
    linear-gradient(rgba(68, 0, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(68, 0, 255, 0.06) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 1;
  opacity: 0.4;
}

.glow-orbit {
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle at 30% 40%, rgba(100, 80, 255, 0.15), transparent 60%);
  border-radius: 50%;
  top: -30%;
  left: -20%;
  animation: drift 25s infinite alternate ease-in-out;
  pointer-events: none;
}

@keyframes drift {
  0%   { transform: translate(0, 0) rotate(0deg); }
  100% { transform: translate(15vw, 10vh) rotate(12deg); }
}

main {
  position: relative;
  z-index: 10;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
}

.login-card {
  background: rgba(15, 10, 35, 0.65);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(120, 80, 255, 0.18);
  border-radius: 20px;
  padding: 2.5rem 2rem;
  width: 100%;
  max-width: 420px;
  box-shadow: 
    0 8px 40px rgba(0,0,0,0.6),
    0 0 0 1px rgba(100, 80, 255, 0.12) inset;
  position: relative;
  overflow: hidden;
}

.login-card::before {
  content: '';
  position: absolute;
  inset: -50%;
  background: conic-gradient(
    from 0deg at 50% 50%,
    transparent 0deg,
    rgba(140, 100, 255, 0.08) 60deg,
    transparent 120deg,
    transparent 300deg
  );
  animation: rotate 18s linear infinite;
  pointer-events: none;
}

@keyframes rotate {
  to { transform: rotate(360deg); }
}

h1 {
  font-family: 'Orbitron', monospace;
  font-size: 2.1rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 0.9rem;
  background: linear-gradient(90deg, #c4b5fd, #a78bfa, #c084fc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: 1px;
}

.subtitle {
  text-align: center;
  color: #a0a0ff;
  font-size: 0.95rem;
  margin-bottom: 2.2rem;
}

.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 1rem;
  margin: 0.9rem 0;
  font-size: 1.05rem;
  font-weight: 500;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  transition: all 0.23s ease;
  position: relative;
  overflow: hidden;
}

.social-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
  transform: translateX(-100%);
  transition: transform 0.6s;
}

.social-btn:hover::after {
  transform: translateX(100%);
}

.social-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.5);
}

.google {
  background: #ffffff;
  color: #1f1f1f;
}

.facebook {
  background: #1877f2;
  color: white;
}

.divider {
  display: flex;
  align-items: center;
  margin: 1.8rem 0;
  color: #7070aa;
  font-size: 0.9rem;
}

.divider::before,
.divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(120, 120, 180, 0.3);
}

.divider span {
  padding: 0 1.4rem;
}

.legal {
  text-align: center;
  font-size: 0.78rem;
  color: #706f9c;
  margin-top: 2rem;
  line-height: 1.5;
}

.legal a {
  color: #b19eff;
  text-decoration: none;
}

.legal a:hover {
  text-decoration: underline;
}

.button {
    display: inline-block; /* Allows padding and margin, behaves like a button */
    background-color: #007bff; /* Button background color */
    color: white; /* Text color */
    padding: 10px 20px; /* Spacing inside the button */
    text-align: center; /* Center the text */
    text-decoration: none; /* Remove default link underline */
    border-radius: 5px; /* Rounded corners */
    cursor: pointer; /* Changes cursor to a hand pointer */
    border: none; /* Remove default button border */
}

.button:hover {
    background-color: #0056b3; /* Darker color on hover */
}

@media (max-width: 400px) {
  .login-card {
    padding: 2rem 1.4rem;
  }
  h1 {
    font-size: 1.9rem;
  }
}
