/* Index Page Loading & Verification Styles */

.center-content {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

/* 1. Loading Screen Styles */
.loading-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 400px;
  animation: entranceScale 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.animated-logo-container {
  margin-bottom: 1.5rem;
}

.gift-logo-svg {
  filter: drop-shadow(0 0 15px var(--glass-glow));
}

.logo-path {
  stroke-dasharray: 200;
  stroke-dashoffset: 200;
  animation: drawStroke 2s ease forwards infinite;
}

.logo-ribbon {
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  animation: drawStroke 2s ease 0.5s forwards infinite;
}

.logo-bow {
  stroke-dasharray: 80;
  stroke-dashoffset: 80;
  animation: drawStroke 2s ease 1s forwards infinite;
}

@keyframes drawStroke {
  to {
    stroke-dashoffset: 0;
  }
}

.loading-title {
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: 2px;
  margin-bottom: 1.5rem;
  color: var(--text-white);
}

.progress-bar-outer {
  width: 250px;
  height: 6px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 0.75rem;
}

.progress-bar-inner {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  border-radius: 10px;
  transition: width 0.1s ease;
}

.progress-text {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 1px;
}

/* 2. Verification Screen Styles */
.verification-container {
  width: 100%;
  display: flex;
  justify-content: center;
  animation: entranceScale 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.verification-card {
  text-align: center;
}

.verification-title {
  font-size: 2.2rem;
  margin-bottom: 1rem;
}

.verification-subtitle {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 2rem;
}

.input-group {
  text-align: left;
  margin-bottom: 2rem;
}

.input-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}

.elegant-date-picker {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  color: var(--text-white);
  font-family: var(--font-ui);
  font-size: 1rem;
  outline: none;
  transition: var(--transition-smooth);
}

.elegant-date-picker:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 15px rgba(108, 99, 255, 0.25);
  background: rgba(255, 255, 255, 0.1);
}

.verify-btn {
  width: 100%;
  padding: 1.1rem;
}

/* Shake and Error Glow */
.verification-card.shake {
  animation: shake 0.5s ease-in-out;
  border-color: rgba(255, 63, 128, 0.6) !important;
  box-shadow: 0 0 30px rgba(255, 63, 128, 0.3) !important;
}

/* 3. Access Granted Screen Styles */
.granted-container {
  text-align: center;
  animation: entranceScale 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.granted-title {
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: 6px;
  margin-bottom: 1rem;
  text-shadow: 0 0 30px rgba(108, 99, 255, 0.6);
}

.granted-subtitle {
  color: var(--text-muted);
  font-size: 1.1rem;
  letter-spacing: 1.5px;
}

.sparkles-container {
  margin-top: 2rem;
  font-size: 3rem;
  animation: floatUpDown 2s infinite ease-in-out;
}

.granted-glow {
  text-shadow: 0 0 20px var(--accent-color);
}

/* 4. Cinematic Door Unlock Overlay */
.unlock-door-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1000;
  display: flex;
  pointer-events: none;
}

.door {
  width: 50%;
  height: 100%;
  background: radial-gradient(circle at center, #0F172A 0%, #07111F 100%);
  border: 1px solid rgba(255, 215, 0, 0.15);
  box-shadow: inset 0 0 100px rgba(0, 0, 0, 0.8);
  transition: transform 1.2s cubic-bezier(0.7, 0, 0.3, 1);
  position: relative;
}

.door-left {
  transform: translateX(-100%);
}

.door-right {
  transform: translateX(100%);
}

/* Close state when verifying is successful */
.unlock-door-container.close-doors .door-left {
  transform: translateX(0);
}
.unlock-door-container.close-doors .door-right {
  transform: translateX(0);
}

/* Open doors animation */
.unlock-door-container.open-doors .door-left {
  transform: translateX(-100%);
}
.unlock-door-container.open-doors .door-right {
  transform: translateX(100%);
}

/* 5. Error Toast Notifications */
.toast-notification {
  position: fixed;
  top: 2rem;
  right: 2rem;
  background: rgba(255, 63, 128, 0.15);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 63, 128, 0.3);
  box-shadow: 0 8px 32px rgba(255, 63, 128, 0.2);
  border-radius: 12px;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-white);
  font-weight: 500;
  z-index: 9999;
  transform: translateY(-100px) scale(0.9);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  pointer-events: none;
}

.toast-notification.show {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.toast-icon {
  font-size: 1.25rem;
}

/* Helpers */
.hidden {
  display: none !important;
}
