/*
 * Windyday AuthCrunch bridge page.
 *
 * Follow the browser's preferred color scheme and visually bridge into the
 * Metadosis Zitadel login: Lato-like system typography, an unboxed centered
 * layout, neutral #fafafa/#20242a backgrounds, and compact rounded controls.
 */
:root {
  color-scheme: light dark;
  --windy-auth-background: #fafafa;
  --windy-auth-foreground: #000000;
  --windy-auth-muted: #475569;
  --windy-auth-control: #ffffff;
  --windy-auth-control-hover: #f1f3f5;
  --windy-auth-border: rgba(0, 0, 0, 0.12);
  --windy-auth-accent: #5469d4;
  --windy-auth-accent-hover: #465cc7;
  --windy-auth-accent-foreground: #ffffff;
}

html,
html.bg-blue-100,
body,
.app-page {
  background: var(--windy-auth-background) !important;
  color: var(--windy-auth-foreground);
}

body,
button,
input,
select,
textarea {
  font-family: Lato, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.app-page {
  min-height: 100vh;
  padding: 0 1.5rem;
}

.app-content {
  width: 100%;
  max-width: 27.5rem;
  margin: 6.25rem auto 0;
  padding-bottom: 3rem;
}

.app-container {
  background: transparent;
  padding: 2rem 1.25rem;
  box-shadow: none;
}

.logo-box {
  margin-bottom: 1.75rem;
}

.logo-img {
  max-width: 15.625rem;
  max-height: 5.3125rem;
  margin: 0 auto;
}

.logo-txt {
  margin: 1.25rem 0 0;
  color: var(--windy-auth-foreground);
  font-size: 1.5rem;
  line-height: 2rem;
  font-weight: 400;
}

.app-login-btn-box {
  overflow: hidden;
  border: 1px solid var(--windy-auth-border);
  border-radius: 0.375rem;
  background: var(--windy-auth-control);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
  transition: border-color 120ms ease, box-shadow 120ms ease,
    transform 120ms ease;
}

.app-login-btn-box:hover {
  border-color: var(--windy-auth-accent);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.14);
  transform: translateY(-1px);
}

.app-login-btn-box > div:first-child {
  background: var(--windy-auth-accent) !important;
  color: var(--windy-auth-accent-foreground) !important;
}

.app-login-btn-txt,
.app-login-btn-txt:hover {
  background: var(--windy-auth-control);
  color: var(--windy-auth-foreground);
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 500;
  letter-spacing: 0.025em;
  box-shadow: none;
}

.app-login-btn-box:hover .app-login-btn-txt {
  background: var(--windy-auth-control-hover);
}

#bookmarks {
  display: none !important;
}

@media (prefers-color-scheme: dark) {
  :root {
    --windy-auth-background: #20242a;
    --windy-auth-foreground: #ffffff;
    --windy-auth-muted: #cbd5e1;
    --windy-auth-control: rgba(255, 255, 255, 0.08);
    --windy-auth-control-hover: rgba(255, 255, 255, 0.12);
    --windy-auth-border: rgba(255, 255, 255, 0.18);
    --windy-auth-accent: #34b34a;
    --windy-auth-accent-hover: #2f9f42;
  }

  .app-login-btn-box {
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.28);
  }

  .app-login-btn-box:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
  }
}

@media (max-width: 639px) {
  .app-page {
    padding: 0 1rem;
  }

  .app-content {
    margin-top: 2.5rem;
  }

  .app-container {
    padding-right: 0;
    padding-left: 0;
  }
}
