/* ==========================================================================
  SIGNIN TOAST COMPONENT STYLES
  ========================================================================== */

:root {
  --signin-toast-padding: 16px 20px;
  --signin-toast-border-radius: 6px;
  --signin-toast-gap: 12px;
  --signin-toast-font-size: 14px;
  --signin-toast-z: var(--z-toast);
  --signin-toast-transition-duration: 300ms;
  --signin-toast-transition-easing: ease-out;
}

.signin-toast {
  position: fixed;
  top: 20px;
  left: 20px;
  padding: var(--signin-toast-padding);
  border-radius: var(--signin-toast-border-radius);
  z-index: var(--signin-toast-z);
  font-family: system-ui, -apple-system, sans-serif;
  font-size: var(--signin-toast-font-size);
  transform: translateY(-100px);
  opacity: 0;
  transition: 
    transform var(--signin-toast-transition-duration) var(--signin-toast-transition-easing),
    opacity var(--signin-toast-transition-duration) var(--signin-toast-transition-easing);
  pointer-events: none;
  min-width: 320px;
  max-width: 400px;
}

/* Light theme styles */
.theme-light .signin-toast {
  background-color: var(--toast-bg-light);
  box-shadow: var(--toast-shadow);
  color: var(--color-white);
}

/* Dark theme styles */
.theme-dark .signin-toast {
  background-color: var(--toast-bg-dark);
  box-shadow: var(--toast-shadow-dark, var(--toast-shadow));
  color: var(--color-white);
}

.signin-toast.toast-visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.signin-toast.toast-hidden {
  transform: translateY(-100px);
  opacity: 0;
  pointer-events: none;
}

.signin-toast__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.signin-toast__message {
  margin: 0;
  font-weight: 500;
  flex-grow: 1;
}

.signin-toast__close-btn {
  background: none;
  border: none;
  font-size: 16px;
  cursor: pointer;
  padding: 0;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

.theme-light .signin-toast__close-btn {
  color: var(--color-white);
}

.theme-dark .signin-toast__close-btn {
  color: var(--color-white);
}

.signin-toast__close-btn:hover {
  opacity: 1;
  background-color: rgba(255, 255, 255, 0.1);
}

.signin-toast__google-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border: none;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.1s ease;
  width: 100%;
  justify-content: center;
}

/* Light theme Google button */
.theme-light .signin-toast__google-btn {
  background-color: var(--color-white);
  color: #1f2937;
}

.theme-light .signin-toast__google-btn:hover {
  background-color: #f9fafb;
  transform: translateY(-1px);
}

.theme-light .signin-toast__google-btn:disabled {
  background-color: #f3f4f6;
  color: #9ca3af;
  cursor: not-allowed;
  transform: none;
}

/* Dark theme Google button */
.theme-dark .signin-toast__google-btn {
  background-color: var(--color-gray-100);
  color: #1f2937;
}

.theme-dark .signin-toast__google-btn:hover {
  background-color: var(--color-white);
  transform: translateY(-1px);
}

.theme-dark .signin-toast__google-btn:disabled {
  background-color: var(--color-gray-300);
  color: #9ca3af;
  cursor: not-allowed;
  transform: none;
}

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

.signin-toast__google-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

@media (prefers-contrast: high) {
  .theme-light .signin-toast {
    border: 2px solid var(--color-white);
  }
  
  .theme-dark .signin-toast {
    border: 2px solid var(--color-white);
  }
}

@media (prefers-reduced-motion: reduce) {
  .signin-toast {
    transition: opacity var(--signin-toast-transition-duration) var(--signin-toast-transition-easing);
    transform: none;
  }
  
  .signin-toast.toast-visible {
    transform: none;
  }
  
  .signin-toast.toast-hidden {
    transform: none;
  }
  
  .signin-toast__google-btn:hover {
    transform: none;
  }
  
  .signin-toast__google-btn:active {
    transform: none;
  }
}
