/* Home Page Styles - Optimized for single screen */
.epost-bg {
  height: 100vh;
  width: 100vw;
  overflow: hidden;
  background: url('/images/background.jpg') no-repeat center center/cover;
  display: flex;
  flex-direction: column;
  position: relative;
}

/* Decor elements - smaller and more compact */
.decor-ship {
  position: absolute;
  left: 2vw;
  bottom: 6vh;
  z-index: 1;
  opacity: 0.08;
  pointer-events: none;
  width: 80px;
  height: 40px;
}

.decor-plane {
  position: absolute;
  right: 3vw;
  top: 5vh;
  z-index: 1;
  opacity: 0.08;
  pointer-events: none;
  width: 60px;
  height: 60px;
}

.decor-truck {
  position: absolute;
  left: 6vw;
  top: 12vh;
  z-index: 1;
  opacity: 0.06;
  pointer-events: none;
  width: 60px;
  height: 30px;
}

.decor-box {
  position: absolute;
  right: 6vw;
  bottom: 12vh;
  z-index: 1;
  opacity: 0.06;
  pointer-events: none;
  width: 40px;
  height: 40px;
}

.decor-arrow {
  position: absolute;
  left: 50vw;
  bottom: 3vh;
  z-index: 1;
  opacity: 0.06;
  pointer-events: none;
  width: 60px;
  height: 30px;
}

.decor-map {
  position: absolute;
  right: 2vw;
  top: 30vh;
  z-index: 1;
  opacity: 0.05;
  pointer-events: none;
  width: 80px;
  height: 48px;
}

/* Main content - centered perfectly */
.epost-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  padding: 0 20px;
  box-sizing: border-box;
}

.tracking-card {
  background: rgba(255,255,255,0.15);
  box-shadow: 0 8px 32px 0 rgba(31,38,135,0.15);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.25);
  padding: 32px 28px 28px 28px;
  width: 100%;
  max-width: 380px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  box-sizing: border-box;
}

.tracking-card h2 {
  font-size: 1.4rem;
  font-weight: 600;
  color: #222;
  margin: 0;
  text-align: center;
}

.tracking-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tracking-input {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.3);
  font-size: 0.95rem;
  outline: none;
  background: rgba(255,255,255,0.8);
  font-family: 'Inter', sans-serif;
  transition: all 0.2s ease;
}

.tracking-input:focus {
  border-color: #ff9800;
  box-shadow: 0 0 0 2px rgba(255, 152, 0, 0.2);
  background: rgba(255,255,255,0.95);
}

.track-btn {
  width: 100%;
  padding: 12px 0;
  border-radius: 8px;
  border: none;
  background: linear-gradient(90deg, #ff9800 0%, #fb8c00 100%);
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: 'Inter', sans-serif;
}

.track-btn:hover {
  background: linear-gradient(90deg, #fb8c00 0%, #ff9800 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 152, 0, 0.3);
}

.track-btn:active {
  transform: translateY(0);
}

.track-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Loading and error styles */
.loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
}

.spinner {
  width: 24px;
  height: 24px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top: 2px solid #ff9800;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

.loading p {
  margin: 0;
  font-size: 0.9rem;
  color: #666;
}

.error-message {
  background: rgba(244, 67, 54, 0.1);
  border: 1px solid rgba(244, 67, 54, 0.3);
  border-radius: 6px;
  padding: 8px 12px;
  color: #d32f2f;
  font-size: 0.85rem;
  text-align: center;
  margin-top: 8px;
}

/* Responsive - optimized for single screen */
@media (max-width: 768px) {
  .epost-main {
    padding: 0 16px;
  }
  
  .tracking-card {
    max-width: 100%;
    padding: 24px 20px 20px 20px;
    gap: 14px;
  }
  
  .tracking-card h2 {
    font-size: 1.3rem;
  }
  
  .decor-ship, .decor-plane, .decor-truck, .decor-box, .decor-arrow, .decor-map {
    display: none;
  }
}

@media (max-width: 480px) {
  .epost-main {
    padding: 0 12px;
  }
  
  .tracking-card {
    padding: 20px 16px 16px 16px;
    gap: 12px;
  }
  
  .tracking-card h2 {
    font-size: 1.2rem;
  }
  
  .tracking-input {
    padding: 10px 12px;
    font-size: 0.9rem;
  }
  
  .track-btn {
    padding: 10px 0;
    font-size: 0.95rem;
  }
}

/* Ensure no scroll on any screen size */
@media (max-height: 600px) {
  .tracking-card {
    padding: 16px 20px 14px 20px;
    gap: 10px;
  }
  
  .tracking-card h2 {
    font-size: 1.1rem;
    margin-bottom: 4px;
  }
  
  .tracking-form {
    gap: 8px;
  }
  
  .tracking-input {
    padding: 8px 12px;
    font-size: 0.85rem;
  }
  
  .track-btn {
    padding: 8px 0;
    font-size: 0.9rem;
  }
} 