/* YesAPI sign-in theme. Scoped by api-home.html to authentication routes only. */
html[data-yesapi-auth='true'],
html[data-yesapi-auth='true'] body,
html[data-yesapi-auth='true'] #root {
  min-height: 100%;
}

html[data-yesapi-auth='true'] body {
  background:
    radial-gradient(circle at top, #dbeafe 0, rgba(219, 234, 254, 0) 42%),
    #f8fafc !important;
}

html[data-yesapi-auth='true'] [class~='h-svh'][class~='max-w-none'] {
  background: transparent !important;
}

html[data-yesapi-auth='true'] [class~='h-svh'][class~='max-w-none'] > .container {
  width: 100%;
  max-width: none;
  padding-inline: 20px;
}

html[data-yesapi-auth='true'] [class~='h-svh'][class~='max-w-none'] > .container > [class~='mx-auto'][class~='w-full'] {
  box-sizing: border-box;
  width: min(100%, 480px) !important;
  padding: 32px !important;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.12);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

html[data-yesapi-auth='true'] [class~='h-svh'][class~='max-w-none'] input:not([type='checkbox']):not([type='radio']):not([type='hidden']) {
  min-height: 44px;
  border-radius: 10px !important;
  border-color: #cbd5e1;
  background: #fff;
  box-shadow: none;
}

html[data-yesapi-auth='true'] [class~='h-svh'][class~='max-w-none'] input:not([type='checkbox']):not([type='radio']):not([type='hidden']):focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14);
}

html[data-yesapi-auth='true'] [class~='h-svh'][class~='max-w-none'] form button[type='submit'] {
  min-height: 44px;
  border-radius: 10px !important;
  border-color: #2563eb !important;
  background: #2563eb !important;
  color: #fff !important;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.22);
}

html[data-yesapi-auth='true'] [class~='h-svh'][class~='max-w-none'] form button[type='submit']:hover {
  background: #1d4ed8 !important;
}

html[data-yesapi-auth='true'] [class~='h-svh'][class~='max-w-none'] form button[type='button'][class*='w-full'] {
  min-height: 44px;
  border-radius: 10px !important;
}

html[data-yesapi-auth='true'] [class~='h-svh'][class~='max-w-none'] h2 {
  color: #0f172a;
}

html.dark[data-yesapi-auth='true'] body {
  background:
    radial-gradient(circle at top, #172554 0, rgba(23, 37, 84, 0) 44%),
    #020617 !important;
}

html.dark[data-yesapi-auth='true'] [class~='h-svh'][class~='max-w-none'] > .container > [class~='mx-auto'][class~='w-full'] {
  border-color: #334155;
  background: rgba(15, 23, 42, 0.96);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.38);
}

html.dark[data-yesapi-auth='true'] [class~='h-svh'][class~='max-w-none'] input:not([type='checkbox']):not([type='radio']):not([type='hidden']) {
  border-color: #475569;
  background: #0f172a;
}

html.dark[data-yesapi-auth='true'] [class~='h-svh'][class~='max-w-none'] h2 {
  color: #f8fafc;
}

@media (max-width: 639px) {
  html[data-yesapi-auth='true'] [class~='h-svh'][class~='max-w-none'] > .container {
    padding-inline: 14px;
    padding-top: 74px;
    padding-bottom: 18px;
  }

  html[data-yesapi-auth='true'] [class~='h-svh'][class~='max-w-none'] > .container > [class~='mx-auto'][class~='w-full'] {
    padding: 24px 20px !important;
    border-radius: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html[data-yesapi-auth='true'] * {
    scroll-behavior: auto !important;
  }
}
