:root {
  --progress-bar-width: 0%;
  --progress-bar-ease: 3s;
}
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  margin: 0;
  padding: 0;
}

/* Reset for desktop access pages specifically */
.desktop-access-container,
.desktop-access-success-container,
.resource-access-success-container {
  margin: 0;
  padding: 0;
}

#loading-indicator {
  z-index: 1000;
  position: fixed;
  width: 100%;
  height: 100%;
  display: flex;
  top: 0;
  left: 0;
  background: rgba(255, 255, 255, 1);
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.logo {
  width: 240px;
  height: 73.6px;
  /* width: 300px; */
  /* height: 92px; */
  display: block;
  padding-top: 90px;
  padding-bottom: 90px;
  padding-right: 10px;
}

#loading-spinner {
  display: block;
  margin: 0 auto;
  -webkit-animation: loading-spinner-spin 2s linear infinite;
  animation: loading-spinner-spin 2s linear infinite;
  will-change: transform;
}

@-webkit-keyframes loading-spinner-spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@keyframes loading-spinner-spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

#loading-circle {
  stroke-dasharray: 105;
  stroke-dashoffset: 105;
  stroke-linecap: round;
  -webkit-animation: loading-spinner-small 1.7s
    cubic-bezier(0.445, 0.05, 0.55, 0.95) infinite;
  animation: loading-spinner-small 1.7s cubic-bezier(0.445, 0.05, 0.55, 0.95)
    infinite;
  transform: translateZ(0);
  transform-origin: center;
  will-change: stroke-dashoffset;
}

@-webkit-keyframes loading-spinner-small {
  0% {
    stroke-dashoffset: 95;
    transform: scaleY(1);
  }

  49.99% {
    stroke-dashoffset: 0;
    transform: scaleY(1);
  }

  50% {
    stroke-dashoffset: 0;
    transform: scaleY(-1) rotate(25deg);
  }

  100% {
    stroke-dashoffset: 95;
    transform: scaleY(-1) rotate(-32deg);
  }
}

@keyframes loading-spinner-small {
  0% {
    stroke-dashoffset: 95;
    transform: scaleY(1);
  }

  49.99% {
    stroke-dashoffset: 0;
    transform: scaleY(1);
  }

  50% {
    stroke-dashoffset: 0;
    transform: scaleY(-1) rotate(25deg);
  }

  100% {
    stroke-dashoffset: 95;
    transform: scaleY(-1) rotate(-32deg);
  }
}

/* Container for progress bar */
.progress-container {
  width: 300px;
  height: 10px;
  background: #ddd;
  border-radius: 10px;
  overflow: hidden;
  margin: 20px 0;
  position: relative;
}

/* Progress bar itself */
.progress-bar {
  width: var(--progress-bar-width);
  height: 100%;
  border-radius: 10px;
  background: #2196f3;
  transition: width var(--progress-bar-ease) ease-in-out;
}

.mobile-warning {
  display: block;
  color: black;
  padding: 20px;
  font-size: 16px;
  text-align: center;
}

/* Desktop Access & Success Shared Styles */
.desktop-access-container,
.desktop-access-success-container,
.resource-access-success-container {
  font-family:
    "Poppins",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    Oxygen,
    Ubuntu,
    Cantarell,
    sans-serif;
  background-color: white;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.desktop-access-app-bar,
.resource-access-app-bar {
  background: white;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin: 0;
  width: 100%;
  box-sizing: border-box;
  border-bottom: 1px solid #e2e8f0;
}

.desktop-access-logo,
.resource-access-logo {
  height: 32px;
}

.desktop-access-content {
  flex: 1;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 24px 20px 60px 20px;
}

.desktop-access-form,
.desktop-access-success-form,
.resource-access-success-form {
  width: 100%;
  max-width: 400px;
  text-align: center;
}

.desktop-access-hand-emoji {
  font-size: 48px;
  margin-bottom: 24px;
  animation: wave 2s ease-in-out infinite;
}

@keyframes wave {
  0%,
  50%,
  100% {
    transform: rotate(0deg);
  }
  25% {
    transform: rotate(-15deg);
  }
  75% {
    transform: rotate(15deg);
  }
}

.desktop-access-title,
.desktop-access-success-title,
.resource-access-success-title {
  font-size: 24px;
  font-weight: 600;
  color: #2d3748;
  margin-bottom: 32px;
  line-height: 1.3;
}

.desktop-access-form-group {
  margin-bottom: 24px;
  text-align: left;
}

.desktop-access-form-label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: #4a5568;
  margin-bottom: 8px;
}

.desktop-access-form-input {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  font-size: 16px;
  font-family: "Poppins", sans-serif;
  color: #2d3748;
  background: #fff;
  transition: border-color 0.2s ease;
  box-sizing: border-box;
}

.desktop-access-form-input:focus {
  outline: none;
  border-color: #8b5cf6;
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

.desktop-access-form-input::placeholder {
  color: #a0aec0;
  font-family: "Poppins", sans-serif;
}

.desktop-access-form-input.error {
  border-color: #e53e3e;
  box-shadow: 0 0 0 3px rgba(229, 62, 62, 0.1);
}

.desktop-access-form-input.error:focus {
  border-color: #e53e3e;
  box-shadow: 0 0 0 3px rgba(229, 62, 62, 0.1);
}

.desktop-access-error-message {
  color: #e53e3e;
  font-size: 14px;
  font-family: "Poppins", sans-serif;
  margin-top: 8px;
  display: none;
}

.desktop-access-continue-btn {
  width: 100%;
  background: #832ec5;
  color: white;
  border: 1px solid transparent;
  padding: 14px 16px;
  border-radius: 12px;
  font-size: 16px;
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.desktop-access-continue-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 25px rgba(139, 92, 246, 0.3);
  border: 1.5px solid rgba(255, 255, 255, 0.6);
}

.desktop-access-continue-btn:active {
  transform: translateY(0);
}

.desktop-access-continue-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.desktop-access-continue-btn:disabled:hover {
  transform: none;
  box-shadow: none;
  border: 1px solid transparent;
}

.desktop-access-continue-btn.loading {
  position: relative;
  color: transparent;
}

.desktop-access-continue-btn.loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: white;
  animation: button-spin 1s ease-in-out infinite;
}

@keyframes button-spin {
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

/* Desktop & Resource Access Success Screen Specific Styles */
.desktop-access-success-content,
.resource-access-success-content {
  flex: 1;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 24px 20px 60px 20px;
}

.desktop-access-success-icon,
.resource-access-success-icon {
  width: 206px;
  height: 206px;
}

.desktop-access-success-subtitle,
.resource-access-success-subtitle {
  font-size: 16px;
  color: #4a5568;
  line-height: 1.5;
}

.desktop-access-success-link-container {
  background: rgba(29, 35, 58, 0.1);
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.desktop-access-success-link-text {
  font-size: 18px;
  font-weight: 600;
  color: #1a202c;
  font-family: "Poppins", sans-serif;
  letter-spacing: -0.01em;
}

.desktop-access-success-link-actions {
  display: flex;
  gap: 4px;
}

.desktop-access-success-icon-btn {
  background: none;
  border: none;
  padding: 6px;
  cursor: pointer;
  border-radius: 4px;
  transition: background-color 0.2s ease;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1a202c;
}

.desktop-access-success-icon-btn:hover {
  background: #e2e8f0;
}

.desktop-access-success-icon-btn .material-icons {
  font-size: 16px;
}

.desktop-access-success-copy-text {
  font-size: 14px;
  color: #4a5568;
  margin-bottom: 8px;
  font-family: "Poppins", sans-serif;
}

.hidden {
  display: none !important;
}

/* Page transition animations - only for content area */
.content-fade-out {
  opacity: 0;
  transform: translateX(-30px);
  transition:
    opacity 0.3s ease-out,
    transform 0.3s ease-out;
}

.content-fade-in {
  opacity: 0;
  transform: translateX(30px);
  animation: slideInFade 0.5s ease-out forwards;
}

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

/* Google emoji styling for all desktop and resource access pages */
.desktop-access-container *,
.desktop-access-success-container *,
.resource-access-success-container * {
  font-variant-emoji: unicode !important;
}

.desktop-access-hand-emoji,
.desktop-access-success-icon,
.resource-access-success-icon,
.desktop-access-success-icon-btn {
  font-family: "Noto Color Emoji" !important;
  -webkit-font-feature-settings: "liga", "kern" !important;
  font-feature-settings: "liga", "kern" !important;
  text-rendering: optimizeLegibility !important;
}

/* Snack bar notification */
.snack-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  background: #22c55e;
  color: white;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  font-family: "Poppins", sans-serif;
  font-size: 16px;
  font-weight: 500;
  z-index: 1000;
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.snack-bar.show {
  transform: translateY(0);
}

.snack-bar-icon {
  font-size: 20px;
  flex-shrink: 0;
}

/* Mobile responsive styles */
@media (max-width: 768px) {
  .desktop-access-app-bar,
  .resource-access-app-bar {
    padding: 12px 20px;
  }

  .desktop-access-logo,
  .resource-access-logo {
    height: 28px;
  }

  .desktop-access-content,
  .desktop-access-success-content,
  .resource-access-success-content {
    padding: 16px 20px 40px 20px;
  }

  .desktop-access-form {
    padding: 0;
  }

  .desktop-access-title,
  .desktop-access-success-title,
  .resource-access-success-title {
    font-size: 20px;
  }

  .desktop-access-success-subtitle,
  .resource-access-success-subtitle {
    font-size: 21px;
    color: rgba(29, 35, 58, 0.7);
  }

  .desktop-access-success-link-text {
    font-size: 16px;
  }

  .snack-bar {
    font-size: 14px;
    padding: 10px 20px;
  }
}
