/* Gamer-Themed Login Page with Magical Feel */

/* Dark Blue & Orange Color Scheme */
:root {
  --deep-blue: #0a1628;
  --mid-blue: #1a2744;
  --bright-blue: #2e5090;
  --glow-blue: #4a7fd4;
  --dark-orange: #d35400;
  --bright-orange: #ff6b35;
  --glow-orange: #ff9a56;
  --text-light: #e8edf3;
  --text-dim: #8b9db8;
}

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

/* Autofill styling */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0px 1000px var(--mid-blue) inset;
  -webkit-text-fill-color: var(--text-light);
  transition: background-color 5000s ease-in-out 0s;
}

input:-moz-autofill {
  box-shadow: 0 0 0px 1000px var(--mid-blue) inset;
  -moz-text-fill-color: var(--text-light);
}

body {
  margin: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background: radial-gradient(ellipse at top, var(--mid-blue), var(--deep-blue)),
              radial-gradient(ellipse at bottom, #0f1b2e, var(--deep-blue));
  color: var(--text-light);
  text-align: center;
  overflow: hidden;
  position: relative;
}

/* Animated gradient overlay */
body::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 50%, rgba(212, 84, 0, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(74, 127, 212, 0.08) 0%, transparent 50%);
  animation: gradientShift 15s ease-in-out infinite;
  pointer-events: none;
}

@keyframes gradientShift {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 0.8; }
}

h1 {
  font-size: 56px;
  font-weight: 700;
  margin-bottom: 15px;
  letter-spacing: 4px;
  text-transform: uppercase;
  background: linear-gradient(135deg, var(--glow-orange) 0%, var(--bright-orange) 50%, var(--glow-blue) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 0 30px rgba(255, 107, 53, 0.3);
  z-index: 2;
  position: relative;
  animation: titleGlow 3s ease-in-out infinite;
}

@keyframes titleGlow {
  0%, 100% {
    filter: drop-shadow(0 0 10px rgba(255, 107, 53, 0.5));
  }
  50% {
    filter: drop-shadow(0 0 20px rgba(255, 107, 53, 0.8));
  }
}

.login-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 2;
  position: relative;
  padding: 50px 40px;
  background: rgba(26, 39, 68, 0.6);
  border-radius: 24px;
  backdrop-filter: blur(10px);
  border: 2px solid rgba(74, 127, 212, 0.3);
  box-shadow: 
    0 0 60px rgba(255, 107, 53, 0.15),
    0 0 100px rgba(74, 127, 212, 0.1),
    inset 0 0 60px rgba(26, 39, 68, 0.5);
  min-width: 450px;
}

.login-container::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(135deg, var(--bright-orange), var(--glow-blue), var(--dark-orange));
  border-radius: 24px;
  opacity: 0;
  z-index: -1;
  transition: opacity 0.5s;
}

.login-container:hover::before {
  opacity: 0.3;
  animation: borderGlow 2s ease-in-out infinite;
}

@keyframes borderGlow {
  0%, 100% { opacity: 0.2; }
  50% { opacity: 0.4; }
}

.form-group {
  width: 100%;
  margin-bottom: 25px;
}

.login-container input {
  width: 100%;
  padding: 16px 20px;
  border: 2px solid rgba(74, 127, 212, 0.3);
  border-radius: 12px;
  background: rgba(14, 22, 38, 0.8);
  color: var(--text-light);
  font-size: 16px;
  outline: none;
  transition: all 0.3s ease;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.3);
}

.login-container input::placeholder {
  color: var(--text-dim);
  font-style: italic;
}

.login-container input:focus {
  border-color: var(--bright-orange);
  background: rgba(14, 22, 38, 0.95);
  box-shadow: 
    inset 0 2px 8px rgba(0, 0, 0, 0.3),
    0 0 20px rgba(255, 107, 53, 0.4),
    0 0 40px rgba(255, 107, 53, 0.2);
  transform: translateY(-2px);
}

.login-container button {
  margin-top: 20px;
  padding: 16px 50px;
  border-radius: 12px;
  border: none;
  background: linear-gradient(135deg, var(--dark-orange), var(--bright-orange));
  color: white;
  font-weight: 700;
  font-size: 18px;
  text-transform: uppercase;
  letter-spacing: 2px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 
    0 4px 15px rgba(211, 84, 0, 0.4),
    0 0 20px rgba(255, 107, 53, 0.3);
  position: relative;
  overflow: hidden;
}

.login-container button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s;
}

.login-container button:hover::before {
  left: 100%;
}

.login-container button:hover {
  background: linear-gradient(135deg, var(--bright-orange), #ff8c5a);
  transform: translateY(-3px) scale(1.05);
  box-shadow: 
    0 6px 25px rgba(211, 84, 0, 0.6),
    0 0 30px rgba(255, 107, 53, 0.5);
}

.login-container button:active {
  transform: translateY(-1px) scale(1.02);
}

.msg {
  margin-top: 20px;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  min-height: 20px;
}

.msg.error {
  background: rgba(211, 47, 47, 0.2);
  border: 1px solid rgba(244, 67, 54, 0.5);
  color: #ff8a80;
}

.msg.success {
  background: rgba(46, 125, 50, 0.2);
  border: 1px solid rgba(76, 175, 80, 0.5);
  color: #69f0ae;
}

/* Magical Particle Effects */
.particle {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  animation: float 15s linear infinite;
  filter: blur(1px);
}

.particle path {
  fill: var(--glow-orange);
  filter: drop-shadow(0 0 8px var(--bright-orange));
}

@keyframes float {
  0% {
    transform: translateY(100vh) translateX(0) rotate(0deg) scale(1);
    opacity: 0;
  }
  10% {
    opacity: 0.8;
  }
  90% {
    opacity: 0.5;
  }
  100% {
    transform: translateY(-100px) translateX(100px) rotate(360deg) scale(0.5);
    opacity: 0;
  }
}

/* Glowing orbs in background */
body::after {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255, 107, 53, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: pulse 8s ease-in-out infinite;
  pointer-events: none;
}

@keyframes pulse {
  0%, 100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.3;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.3);
    opacity: 0.5;
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .login-container {
    min-width: 90%;
    padding: 40px 30px;
  }
  
  h1 {
    font-size: 42px;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 32px;
    letter-spacing: 2px;
  }
  
  .login-container {
    padding: 30px 20px;
  }
}