@import url('https://fonts.googleapis.com/css2?family=Courier+Prime:wght@400;700&display=swap');

:root {
  --primary-gold: #d4af37;
  --secondary-gold: #b8860b;
  --dark-bg: #0a0a0a;
  --darker-bg: #050505;
  --terminal-green: #00ff41;
  --border-gold: #ffd700;
  --text-gold: #ffdd44;
  --blocked-red: #ff4c4c;
  --blocked-bg: rgba(255, 76, 76, 0.1);
  --info-bg: rgba(212, 175, 55, 0.1);
}

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

body {
  font-family: 'Courier Prime', monospace;
  background-image: url('bg-img.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--text-gold);
  padding: 20px;
}

.terminal-container {
  background: rgb(0 0 0 / 50%);
  border-radius: 8px;
  width: 100%;
  max-width: 500px;
  padding: 40px;
  position: relative;
  overflow: hidden;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.terminal-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 1;
}

.terminal-content {
  position: relative;
  z-index: 2;
  text-align: center;
}

.user-icon {
  width: 50px;
  height: 50px;
  border: 2px solid #4caf50;
  border-radius: 4px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto 30px;
  background: #4caf501c;
  font-size: 24px;
  color: var(--border-gold);
}

.main-title {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 3px;
  margin-bottom: 20px;
  text-transform: uppercase;
  color: #4CAF50;
  text-shadow: 0 0 10px #4caf5070;
}

.subtitle {
  font-size: 12px;
  color: #888;
  margin-bottom: 40px;
  text-transform: uppercase;
  letter-spacing: 1px;
  line-height: 1.4;
}

.form-section {
  margin-bottom: 30px;
  transition: opacity 0.5s;
}

.form-label {
  display: block;
  font-size: 14px;
  color: #888;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-align: left;
}

.input-container {
  position: relative;
  margin-bottom: 20px;
}

.terminal-input {
  width: 100%;
  background: rgba(0, 0, 0, 0.8);
  border: 2px solid #333;
  border-radius: 4px;
  padding: 15px;
  font-family: 'Courier Prime', monospace;
  font-size: 16px;
  color: #888;
  transition: all 0.3s ease;
  text-transform: uppercase;
}

.terminal-input:focus {
  outline: none;
  border-color: #4caf50;
  box-shadow: 0 0 15px #4caf5045;
  background: rgb(0 0 0 / 10%);
  color: #888;
}

.terminal-input::placeholder {
  color: #555;
}

.terminal-input:disabled {
  background: rgba(0, 0, 0, 0.4);
  color: #555;
  cursor: not-allowed;
}

.terminal-button {
  width: 100%;
  background: #4caf5036;
  border: 2px solid #4caf50;
  border-radius: 4px;
  padding: 15px;
  font-family: 'Courier Prime', monospace;
  font-size: 16px;
  font-weight: 700;
  color: #4caf50;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 2px;
  transition: all 0.3s ease;
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  display: block;
}

.terminal-button:hover {
  background: #4caf5045;
  box-shadow: 0 0 20px #4caf5066;
  transform: translateY(-2px);
  border: 2px solid #4caf5045;
}

.terminal-button:active {
  transform: translateY(0);
}

.terminal-button:disabled {
  background: rgba(40, 40, 40, 0.8);
  color: #666;
  cursor: not-allowed;
  border-color: #333;
}

.next-step-button {
  background: rgba(40, 40, 40, 0.8);
  color: #666;
  cursor: not-allowed;
  border-color: #333;
}

.next-step-button.active {
  background: rgba(0, 255, 65, 0.1);
  border-color: #4caf50;
  color: #4caf50;
  cursor: pointer;
}

.next-step-button.active:hover {
  background: #4caf5045;
  box-shadow: 0 0 20px #4caf5066;
  border: 2px solid #4caf5045;
}

.status-message {
  font-size: 14px;
  margin-bottom: 20px;
  padding: 15px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 700;
  text-align: center;
}

.status-success {
  background: #12422d;
  border: 1px solid #4caf50;
  color: #4caf50;
  cursor: pointer;
}

.status-error {
  background: var(--blocked-bg);
  border: 1px solid var(--blocked-red);
  color: var(--blocked-red);
  font-size: 16px;
  letter-spacing: 2px;
}

.status-info {
  background: var(--info-bg);
  border: 1px solid var(--border-gold);
  color: var(--border-gold);
}

.blinking-cursor {
  animation: blink 1s infinite;
}

@keyframes blink {
  0%, 50% {
    opacity: 1;
  }
  51%, 100% {
    opacity: 0;
  }
}

.scan-line {
  position: absolute;
  width: 100%;
  height: 2px;
  animation: scan 3s linear infinite;
  top: 0;
  display: none;
}

@keyframes scan {
  0% {
    top: 0;
  }
  100% {
    top: 100%;
  }
}

@media (max-width: 600px) {
  .terminal-container {
    padding: 30px 20px;
    margin: 10px;
  }

  .main-title {
    font-size: 22px;
    letter-spacing: 2px;
  }

  .terminal-input,
  .terminal-button {
    padding: 12px;
    font-size: 14px;
  }
}

i.fa-solid {
  color: #4caf50;
}

/* New styles for blocked message overlay */
.blocked-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(10, 10, 10, 0.95);
  color: var(--blocked-red);
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 2px;
  z-index: 9999;
  padding: 20px;
}
