.enrollment-container {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
  padding: 20px;
  text-align: center;
  box-sizing: border-box;
  overflow: hidden;
  position: absolute;
  top: 0;
  left: 0;
}

.enrollment-container .logo {
  width: 80px;
  height: 80px;
  margin-bottom: 15px;
  background: url('/images/noctel-logo.svg') center/contain no-repeat;
}

.enrollment-container h2 {
  font-size: clamp(18px, 4vw, 28px);
  margin-bottom: 12px;
  color: #fff;
}

.enrollment-container p {
  font-size: clamp(12px, 2.5vw, 16px);
  margin-bottom: 15px;
  color: #ccc;
}

.enrollment-steps {
  display: flex;
  justify-content: center;
  gap: clamp(8px, 2vw, 15px);
  margin: 15px 0;
  flex-wrap: wrap;
  max-width: 100%;
}

.step-box {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  padding: clamp(8px, 2vw, 15px);
  text-align: center;
  min-width: clamp(100px, 20vw, 140px);
  max-width: clamp(120px, 25vw, 160px);
  transition: all 0.3s ease;
  position: relative;
  animation: stepPulse 3s ease-in-out infinite;
  flex: 1 1 auto;
}

.step-box:nth-child(1) { animation-delay: 0s; }
.step-box:nth-child(2) { animation-delay: 0.5s; }
.step-box:nth-child(3) { animation-delay: 1s; }
.step-box:nth-child(4) { animation-delay: 1.5s; }

.step-number {
  position: absolute;
  top: -8px;
  left: -8px;
  background: #4CAF50;
  color: #fff;
  width: clamp(18px, 4vw, 22px);
  height: clamp(18px, 4vw, 22px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(10px, 2vw, 12px);
  font-weight: bold;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.step-box:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-1px);
}

.step-icon {
  font-size: clamp(20px, 5vw, 28px);
  margin-bottom: clamp(5px, 1vw, 8px);
  opacity: 0.9;
}

.step-text {
  font-size: clamp(10px, 2.2vw, 13px);
  color: #fff;
  line-height: 1.3;
}

.enrollment-code {
  font-size: clamp(24px, 8vw, 48px);
  font-weight: bold;
  margin: clamp(10px, 3vw, 20px) 0;
  letter-spacing: clamp(2px, 1vw, 6px);
  color: #4CAF50;
  font-family: 'Courier New', monospace;
  word-break: break-all;
  line-height: 1.2;
}

.countdown-timer {
  font-size: clamp(12px, 2.5vw, 15px);
  color: #ffeb3b;
  margin-top: clamp(5px, 1vw, 8px);
  opacity: 0.9;
}

.countdown-timer span {
  font-weight: bold;
  font-family: 'Courier New', monospace;
}

.enrollment-code-box {
  transition: all 0.3s ease;
}

.enrollment-code-box:hover {
  border-color: rgba(255, 255, 255, 0.5) !important;
  background: rgba(255, 255, 255, 0.05) !important;
  transform: scale(1.02);
}

.loading-spinner {
  width: clamp(24px, 6vw, 35px);
  height: clamp(24px, 6vw, 35px);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top: 2px solid #fff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-top: clamp(10px, 2vw, 15px);
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes stepPulse {
  0%, 100% { 
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: scale(1);
  }
  50% { 
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    transform: scale(1.02);
  }
}

/* Extra small screens and portrait tablets */
@media (max-height: 600px) {
  .enrollment-container {
    padding: 10px;
  }
  
  .enrollment-container .logo {
    width: 60px;
    height: 60px;
    margin-bottom: 8px;
  }
  
  .enrollment-container h2 {
    font-size: clamp(16px, 3.5vw, 24px);
    margin-bottom: 8px;
  }
  
  .enrollment-steps {
    margin: 8px 0;
    gap: clamp(4px, 1.5vw, 10px);
  }
  
  .step-box {
    padding: clamp(6px, 1.5vw, 12px);
    min-width: clamp(80px, 18vw, 120px);
    border-radius: 6px;
  }
  
  .enrollment-code {
    font-size: clamp(20px, 6vw, 36px);
    margin: clamp(8px, 2vw, 15px) 0;
    letter-spacing: clamp(1px, 0.8vw, 4px);
  }
}

/* Very small screens */
@media (max-height: 480px) {
  .enrollment-container {
    padding: 8px;
    justify-content: flex-start;
    padding-top: clamp(10px, 3vh, 20px);
  }
  
  .enrollment-steps {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-around;
  }
  
  .step-box {
    flex: 1 1 22%;
    max-width: 24%;
    min-width: 70px;
  }
  
  .step-text {
    font-size: clamp(8px, 1.8vw, 11px);
    line-height: 1.2;
  }
  
  .enrollment-code {
    font-size: clamp(18px, 5vw, 30px);
    margin: clamp(5px, 1.5vw, 10px) 0;
  }
}