* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Courier New', 'Consolas', monospace;
  background: #000000;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: hidden;
}

#matrix-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.8;
}

.container {
  width: 100%;
  max-width: 450px;
  padding: 20px;
}

.card {
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 255, 65, 0.3);
  border-radius: 20px;
  padding: 50px 40px;
  box-shadow: 
    0 0 60px rgba(0, 255, 65, 0.15),
    inset 0 0 40px rgba(0, 255, 65, 0.03);
  text-align: center;
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, 
    transparent, 
    rgba(0, 255, 65, 0.1), 
    transparent);
  border-radius: 20px;
  z-index: -1;
  animation: border-glow 3s ease-in-out infinite;
}

@keyframes border-glow {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}

.logo {
  margin-bottom: 20px;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0.8; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.05); }
}

h1 {
  color: #00ff41;
  margin-bottom: 5px;
  font-size: 1.8em;
  text-shadow: 
    0 0 10px rgba(0, 255, 65, 0.8),
    0 0 20px rgba(0, 255, 65, 0.4);
  letter-spacing: 4px;
  font-weight: 700;
}

.subtitle {
  color: rgba(0, 255, 65, 0.6);
  margin-bottom: 40px;
  font-size: 0.9em;
  font-style: italic;
  letter-spacing: 1px;
}

.footer-text {
  margin-top: 30px;
  font-size: 0.7em;
  color: rgba(0, 255, 65, 0.4);
  letter-spacing: 2px;
  border-top: 1px solid rgba(0, 255, 65, 0.1);
  padding-top: 20px;
}

.input-group {
  margin-bottom: 25px;
  position: relative;
  display: flex;
  align-items: center;
}

.input-prefix {
  position: absolute;
  left: 15px;
  color: #00ff41;
  font-size: 20px;
  font-weight: bold;
  z-index: 1;
  animation: blink 1.5s infinite;
}

@keyframes blink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0.3; }
}

input[type="text"] {
  width: 100%;
  padding: 18px 20px 18px 40px;
  font-size: 18px;
  font-family: 'Courier New', monospace;
  background: rgba(0, 20, 0, 0.5);
  color: #00ff41;
  border: 1px solid rgba(0, 255, 65, 0.3);
  border-radius: 10px;
  transition: all 0.3s ease;
  outline: none;
  letter-spacing: 4px;
  text-transform: uppercase;
}

input[type="text"]:focus {
  border-color: #00ff41;
  box-shadow: 
    0 0 20px rgba(0, 255, 65, 0.3),
    inset 0 0 20px rgba(0, 255, 65, 0.05);
  background: rgba(0, 30, 0, 0.6);
}

input[type="text"]::placeholder {
  color: rgba(0, 255, 65, 0.3);
  letter-spacing: 8px;
}

.btn-submit {
  width: 100%;
  padding: 18px 30px;
  font-size: 15px;
  font-weight: 700;
  font-family: 'Courier New', monospace;
  color: #000000;
  background: linear-gradient(135deg, #00ff41 0%, #00cc33 100%);
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 3px;
  position: relative;
  overflow: hidden;
}

.btn-submit span {
  position: relative;
  z-index: 2;
}

.btn-glow {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  transform: rotate(45deg);
  animation: btn-shine 3s infinite;
}

@keyframes btn-shine {
  0% { transform: translateX(-100%) rotate(45deg); }
  100% { transform: translateX(100%) rotate(45deg); }
}

.btn-submit:hover {
  transform: translateY(-3px);
  box-shadow: 
    0 5px 30px rgba(0, 255, 65, 0.5),
    0 0 40px rgba(0, 255, 65, 0.3);
}

.btn-submit:active {
  transform: translateY(-1px);
}

.error-message {
  display: none;
  color: #ff3333;
  background: rgba(255, 0, 0, 0.15);
  border: 1px solid rgba(255, 51, 51, 0.5);
  padding: 12px;
  border-radius: 8px;
  margin-bottom: 20px;
  font-size: 13px;
  text-shadow: 0 0 8px rgba(255, 0, 0, 0.6);
  letter-spacing: 1px;
  animation: error-pulse 0.5s ease-out;
}

@keyframes error-pulse {
  0% { transform: scale(0.95); opacity: 0; }
  50% { transform: scale(1.02); }
  100% { transform: scale(1); opacity: 1; }
}

@media (max-width: 480px) {
  .card {
    padding: 30px 20px;
  }
  
  h1 {
    font-size: 1.5em;
  }
}
