/* Access Code Screen Styles */
.access-code-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #0f1419 0%, #1a2332 100%);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
}

.access-code-container {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  padding: 3rem;
  max-width: 450px;
  width: 90%;
  text-align: center;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  animation: slideInUp 0.6s ease-out;
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.access-code-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 2rem;
  background: linear-gradient(135deg, #22d3ee, #fbbf24);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(34, 211, 238, 0.4);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 0 0 20px rgba(34, 211, 238, 0);
  }
}

.access-code-title {
  color: #ffffff;
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, #22d3ee, #fbbf24);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.access-code-subtitle {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1rem;
  margin-bottom: 2rem;
  line-height: 1.5;
}

.access-code-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.access-code-input {
  background: rgba(255, 255, 255, 0.08);
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 1rem 1.5rem;
  font-size: 1.1rem;
  color: #ffffff;
  text-align: center;
  letter-spacing: 2px;
  font-weight: 600;
  transition: all 0.3s ease;
  outline: none;
  direction: ltr;
}

.access-code-input::placeholder {
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: normal;
  direction: rtl;
}

.access-code-input:focus {
  border-color: #22d3ee;
  background: rgba(34, 211, 238, 0.1);
  box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.1);
  transform: scale(1.02);
}

.access-code-submit {
  background: linear-gradient(135deg, #22d3ee, #10b981);
  border: none;
  border-radius: 16px;
  padding: 1rem 2rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: #ffffff;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.access-code-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(34, 211, 238, 0.3);
}

.access-code-submit:active {
  transform: translateY(0);
}

.access-code-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.access-code-submit.loading {
  pointer-events: none;
}

.access-code-submit.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid transparent;
  border-top: 2px solid #ffffff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.access-code-error {
  background: rgba(244, 67, 54, 0.1);
  border: 1px solid rgba(244, 67, 54, 0.3);
  border-radius: 12px;
  padding: 1rem;
  color: #ff6b6b;
  font-size: 0.9rem;
  margin-top: 1rem;
  animation: shake 0.5s ease-in-out;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}

.access-code-success {
  background: rgba(76, 175, 80, 0.1);
  border: 1px solid rgba(76, 175, 80, 0.3);
  border-radius: 12px;
  padding: 1rem;
  color: #81c784;
  font-size: 0.9rem;
  margin-top: 1rem;
  animation: slideInUp 0.3s ease-out;
}

/* Loading overlay */
.access-code-loading {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 24px;
  backdrop-filter: blur(5px);
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid rgba(255, 255, 255, 0.2);
  border-top: 4px solid #22d3ee;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

/* Security info */
.security-info {
  margin-top: 2rem;
  padding: 1rem;
  background: rgba(255, 193, 7, 0.1);
  border: 1px solid rgba(255, 193, 7, 0.2);
  border-radius: 12px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.4;
}

.security-info-icon {
  display: inline-block;
  margin-left: 0.5rem;
  font-size: 1rem;
}

/* Responsive design */
@media (max-width: 480px) {
  .access-code-container {
    padding: 2rem;
    margin: 1rem;
    border-radius: 20px;
  }
  
  .access-code-title {
    font-size: 1.5rem;
  }
  
  .access-code-icon {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }
}

/* Hide the main content when access code is shown */
.access-code-active .header,
.access-code-active .content {
  filter: blur(10px);
  pointer-events: none;
}