/* Auth-specific styles extracted from inline styles (CSP: removed unsafe-inline) */

body {
  font-family: 'Be Vietnam Pro', sans-serif;
}

/* Single source of truth for card/container width across every centered
   card layout - notice/form cards (forgot-password, reset, activation,
   migration, inactive...) and .auth-container (login, signup, OTP, 2FA,
   invitation). Fixed max-width regardless of viewport so cards stay
   visually consistent with each other - only the height should vary
   with content. */
.card-shell {
  width: min(100% - 2rem, 480px);
  margin-inline: auto;
}

.auth-container {
  min-height: 50%;
  background: white;
  padding: 24px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

@media (min-width: 768px) {
  .auth-container {
    padding: 32px;
  }
}

/* Space utility used in base layout */
.space-y-6 > * + * {
  margin-top: 24px;
}

/* Auth layout typography */
.auth-logo-img {
  width: 60px;
  height: 60px;
  margin-right: 10px;
}

.auth-title {
  font-weight: 500;
  font-size: 20px;
  line-height: 160%;
  letter-spacing: 0.15px;
}

.auth-subtitle {
  font-weight: 400;
  font-size: 16px;
  line-height: 150%;
  letter-spacing: 0.15px;
  color: var(--text-secondary, #00000099);
}

.auth-content-area {
  padding-top: 40px;
}

/* Signup step headings */
.signup-step-heading {
  font-weight: 500;
  font-size: 16px;
  line-height: 160%;
  letter-spacing: 0.15px;
  color: var(--text-primary, #000000de);
}

.signup-step-heading-lg {
  font-weight: 500;
  font-size: 18px;
  line-height: 160%;
  color: var(--text-primary, #000000de);
}

/* Floating label fix for browser autofill.
   Browsers inject autofill values directly into the DOM without firing input/change
   events, and :-webkit-autofill bypasses :placeholder-shown, so Tailwind's
   peer-[:not(:placeholder-shown)] selectors never fire.
   #loginForm prefix gives specificity 1,2,1 which beats Tailwind peer selectors at 0,3,0. */
@keyframes onAutoFillStart {
  from { opacity: 1; }
  to { opacity: 1; }
}

input:-webkit-autofill {
  animation-name: onAutoFillStart;
  animation-duration: 1ms;
}

#loginForm .peer:-webkit-autofill ~ label,
#loginForm .peer:autofill ~ label {
  top: -0.625rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
  color: rgb(75 85 99);
  background-color: rgb(255 255 255);
  padding-left: 0.25rem;
  padding-right: 0.25rem;
}

/* Icon sizes */
.icon-md {
  width: 24px;
  height: 24px;
  margin-left: 8px;
}

.icon-sm {
  width: 16px;
  height: 16px;
  margin-right: 4px;
}

/* Migration reset success screen — animated auto-redirect progress bar.
   CSS-driven (not inline style) per CSP style-src having no 'unsafe-inline'. */
@keyframes migration-progress-fill {
  from {
    width: 0%;
  }
  to {
    width: 100%;
  }
}

.migration-progress-bar {
  animation: migration-progress-fill 2s linear forwards;
}
