body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
}

#deviceAuthScreen .container {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: var(--spacing-xxl);
  background-image: url('../images/backgroundImage.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

#deviceAuthScreen .background-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(12, 13, 15, 0.8);
  z-index: 1;
}

#deviceAuthScreen .content-container {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  width: 100%;
  padding: var(--spacing-xxl);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

#deviceAuthScreen .brand-section {
  margin-bottom: var(--spacing-xxl);
  text-align: center;
}

#deviceAuthScreen .brand-logo {
  height: 40px;
  width: auto;
}

#deviceAuthScreen .main-content {
  display: flex;
  gap: 96px; /* 6rem equivalent, no direct token */
  align-items: flex-start;
  max-width: 1000px;
  width: 100%;
}

#deviceAuthScreen .qr-section {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

#deviceAuthScreen .qr-container {
  width: 280px;
  height: 280px;
  padding: var(--spacing-lg);
  background-color: var(--critical-contrast);
  border-radius: var(--spacing-lg);
  box-shadow: 0 4px 8px rgba(12, 13, 15, 0.3);
  margin-bottom: var(--spacing-xxl);
  border: var(--spacing-xs) solid var(--critical-contrast);
}

#deviceAuthScreen .qr-code {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

#deviceAuthScreen .user-code-container {
  text-align: center;
}

#deviceAuthScreen .user-code-display {
  font-size: 3rem;
  font-weight: bold;
  letter-spacing: 0.5rem;
  color: var(--text-primary);
  margin: 0;
}

#deviceAuthScreen .instructions-section {
  flex: 1;
  background-color: var(--bg-frosted-darker);
  padding: 40px; /* 2.5rem equivalent */
  border-radius: var(--spacing-lg);
  backdrop-filter: blur(10px);
}

#deviceAuthScreen .instructions {
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: var(--spacing-xxl);
  color: var(--text-primary);
  margin-top: 0;
  /* Reset global .instructions styles from styles.css */
  position: static;
  left: auto;
  bottom: auto;
  transform: none;
  background: none;
  padding: 0;
  border-radius: 0;
  z-index: auto;
  backdrop-filter: none;
}

#deviceAuthScreen .steps-container {
  margin-bottom: var(--spacing-xxl);
}

#deviceAuthScreen .step {
  font-size: 1.2rem;
  margin-bottom: var(--spacing-xl);
  color: var(--text-primary);
  line-height: 1.5;
}

#deviceAuthScreen .verification-url {
  color: var(--text-primary);
  font-weight: bold;
}

#deviceAuthScreen .expiration-note {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: var(--spacing-xxl);
  line-height: 1.5;
}

#deviceAuthScreen .button {
  padding: var(--spacing-md) var(--spacing-xxl);
  font-size: 1rem;
  font-weight: 500;
  color: black;
  background-color: var(--brand-main);
  border: none;
  border-radius: var(--border-radius-full);
  cursor: pointer;
  transition: background-color 0.3s, transform 0.1s;
  text-transform: capitalize;
  display: block;
  margin: 0 auto;
  outline: none;
}

#deviceAuthScreen .button:hover,
#deviceAuthScreen .button:focus {
  background-color: var(--brand-main);
  transform: translateY(-1px);
}

#deviceAuthScreen .button:active {
  transform: translateY(0);
}

#deviceAuthScreen .loading-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid var(--text-tertiary);
  border-top: 4px solid var(--text-primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: var(--spacing-md);
}

#deviceAuthScreen .loading-text {
  font-size: 1.1rem;
  color: var(--text-primary);
  text-align: center;
}

#deviceAuthScreen .error-text {
  font-size: 1.1rem;
  color: var(--critical-main);
  margin-bottom: var(--spacing-md);
  text-align: center;
}

#deviceAuthScreen .status-message {
  color: var(--text-secondary) !important;
  font-style: italic;
}

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


