/* --- Reset & Global Variables --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg-color: #030408;
  --panel-bg: rgba(10, 12, 22, 0.45);
  --border-color: rgba(255, 255, 255, 0.05);
  --text-primary: #ffffff;
  --text-secondary: #8892b0;
  --neon-pink: #ff007f;
  --neon-cyan: #00f0ff;
  --neon-green: #39ff14;
  --neon-red: #ff3131;
}

body {
  font-family: 'Outfit', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  position: relative;
}

/* --- Dynamic Background Orbs & Vector Grid --- */
.grid-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  overflow: hidden;
}

.vector-grid {
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 50px 50px;
  background-position: center center;
  animation: gridPulse 8s ease-in-out infinite;
}

@keyframes gridPulse {
  0%, 100% { opacity: 0.7; transform: scale(1); }
  50% { opacity: 1.0; transform: scale(1.02); }
}

.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.15;
  transition: all 4s ease-in-out;
}

.pink-orb {
  width: 400px;
  height: 400px;
  background: var(--neon-pink);
  top: 15%;
  left: 10%;
  animation: floatOrb1 16s ease-in-out infinite alternate;
}

.cyan-orb {
  width: 500px;
  height: 500px;
  background: var(--neon-cyan);
  bottom: 10%;
  right: 10%;
  animation: floatOrb2 20s ease-in-out infinite alternate;
}

@keyframes floatOrb1 {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(80px, 50px) scale(1.1); }
}

@keyframes floatOrb2 {
  0% { transform: translate(0, 0) scale(1.1); }
  100% { transform: translate(-100px, -60px) scale(0.9); }
}

/* --- Console Card Wrapper (Glassmorphism) --- */
.console-wrapper {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 600px;
  padding: 20px;
}

.console-card {
  background: var(--panel-bg);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 40px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 
    0 24px 64px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
  gap: 28px;
}

/* --- Logo Section --- */
.logo-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin-bottom: -10px;
}

.phoenix-logo {
  width: 150px;
  height: 180px;
  object-fit: contain;
  -webkit-mask-image: url('SPL_PPU_logo1_sm.png');
  mask-image: url('SPL_PPU_logo1_sm.png');
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  background: linear-gradient(180deg, var(--neon-cyan) 0%, #7000ff 50%, var(--neon-pink) 100%);
  
  filter: drop-shadow(0 0 12px rgba(0, 240, 255, 0.6));
  animation: phoenixGlow 4s ease-in-out infinite alternate;
}

@keyframes phoenixGlow {
  0% {
    transform: scale(0.97);
    filter: drop-shadow(0 0 6px rgba(255, 0, 127, 0.3)) drop-shadow(0 0 12px rgba(255, 0, 127, 0.15));
  }
  100% {
    transform: scale(1.03);
    filter: drop-shadow(0 0 10px rgba(0, 240, 255, 0.55)) drop-shadow(0 0 20px rgba(0, 240, 255, 0.25));
  }
}

/* --- Brand Section --- */
.console-header {
  text-align: center;
}

.brand-title {
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: 4px;
  background: linear-gradient(90deg, var(--neon-pink), var(--neon-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 8px;
}

.brand-tagline {
  font-size: 0.95rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* --- Status Terminal Box --- */
.status-terminal {
  background: rgba(3, 4, 8, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 12px;
  padding: 16px 20px;
  font-family: 'Share Tech Mono', monospace;
}

.status-header {
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 12px;
  margin-bottom: 12px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.dot.red { background-color: var(--neon-red); }
.dot.yellow { background-color: #ffcc00; }
.dot.green { background-color: var(--neon-green); }

.terminal-title {
  font-size: 0.8rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.status-content {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.status-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
}

.status-label {
  color: var(--text-secondary);
}

.status-value {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}

.status-value.active { color: var(--neon-green); }
.status-value.pending { color: var(--neon-cyan); }
.status-value.secured { color: var(--neon-pink); }

/* --- Pulsing Glow Indicators --- */
.pulse-indicator {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
  animation: indicatorPulse 2s infinite alternate;
}

.pulse-indicator.green { background-color: var(--neon-green); box-shadow: 0 0 8px var(--neon-green); }
.pulse-indicator.cyan { background-color: var(--neon-cyan); box-shadow: 0 0 8px var(--neon-cyan); }
.pulse-indicator.red { background-color: var(--neon-red); box-shadow: 0 0 8px var(--neon-red); }

@keyframes indicatorPulse {
  0% { transform: scale(0.8); opacity: 0.5; }
  100% { transform: scale(1.2); opacity: 1.0; }
}

/* --- Description & Copy --- */
.intro-text {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.6;
  text-align: center;
  font-weight: 300;
}

/* --- Form & Interactive Actions --- */
.signup-form {
  width: 100%;
}

.input-group {
  display: flex;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  overflow: hidden;
  padding: 4px;
  transition: all 0.3s ease;
}

.input-group:focus-within {
  border-color: var(--neon-cyan);
  box-shadow: 0 0 16px rgba(0, 240, 255, 0.15);
}

.input-group input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  padding: 12px 16px;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.9rem;
}

.input-group input::placeholder {
  color: #555c72;
}

.submit-btn {
  background: linear-gradient(90deg, var(--neon-pink), var(--neon-cyan));
  color: #fff;
  border: none;
  outline: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: opacity 0.2s;
}

.submit-btn:hover {
  opacity: 0.9;
}

.feedback-message {
  font-size: 0.85rem;
  text-align: center;
  margin-top: 12px;
  min-height: 18px;
  font-weight: 600;
}

/* --- Footer --- */
.console-footer {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.2);
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  padding-top: 20px;
}

.version-tag {
  font-family: 'Share Tech Mono', monospace;
  color: var(--neon-pink);
  letter-spacing: 1px;
}

/* --- Responsive Adjustments --- */
@media (max-width: 480px) {
  .console-card {
    padding: 24px;
    gap: 20px;
  }
  .brand-title {
    font-size: 1.6rem;
  }
  .input-group {
    flex-direction: column;
    gap: 8px;
    background: transparent;
    border: none;
    padding: 0;
  }
  .input-group input {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
  }
  .submit-btn {
    width: 100%;
  }
}

/* --- Footer Link --- */
.footer-link {
  color: var(--text-secondary);
  text-decoration: none;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.2);
  transition: all 0.2s;
}

.footer-link:hover {
  color: var(--neon-cyan);
  border-bottom-color: var(--neon-cyan);
  text-shadow: 0 0 8px rgba(0, 240, 255, 0.4);
}

/* --- Modal Overlay & Card --- */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(3, 4, 8, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 100;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  background: var(--panel-bg);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  width: 90%;
  max-width: 500px;
  padding: 32px;
  box-shadow: 
    0 24px 64px rgba(0, 0, 0, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.modal-overlay.active .modal-card {
  transform: scale(1);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 12px;
  margin-bottom: 16px;
}

.modal-title {
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 1px;
}

.close-icon-btn {
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-secondary);
  font-size: 1.5rem;
  cursor: pointer;
  transition: color 0.2s;
}

.close-icon-btn:hover {
  color: var(--neon-pink);
}

.modal-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.modal-sub {
  font-size: 0.85rem;
  color: var(--neon-cyan);
  font-family: 'Share Tech Mono', monospace;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 4px;
}

.modal-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: rgba(3, 4, 8, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.02);
  border-radius: 10px;
  padding: 16px;
}

.modal-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.modal-label {
  font-size: 0.75rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.modal-val {
  font-size: 0.9rem;
  color: #fff;
  font-weight: 600;
}

.modal-val.status-active {
  color: var(--neon-green);
  text-shadow: 0 0 6px rgba(57, 255, 20, 0.3);
}

.modal-email-link {
  color: var(--neon-cyan);
  text-decoration: none;
  transition: text-shadow 0.2s;
}

.modal-email-link:hover {
  text-shadow: 0 0 8px var(--neon-cyan);
}

.modal-footer-note {
  font-size: 0.75rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-top: 8px;
}

.modal-close-btn {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #ccc;
  padding: 12px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  margin-top: 24px;
  transition: all 0.2s;
}

.modal-close-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}
