/*
 * Adapted from TailAdmin src/css/style.css and signin.html utility values.
 * MIT, Copyright (c) 2023 TailAdmin.
 * Exact source-to-target patch: third_party/source-fidelity/tailadmin-login.toml.
 * Static CSS replaces the upstream Tailwind build; no third-party runtime is loaded.
 */
:root {
  --color-white: #ffffff;
  --color-brand-300: #9cb9ff;
  --color-brand-500: #465fff;
  --color-brand-600: #3641f5;
  --color-brand-950: #161950;
  --color-gray-300: #d0d5dd;
  --color-gray-400: #98a2b3;
  --color-gray-500: #667085;
  --color-gray-700: #344054;
  --color-gray-800: #1d2939;
  --color-error-500: #f04438;
  --shadow-theme-xs: 0 1px 2px 0 rgb(16 24 40 / 5%);
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  min-height: 100%;
}
body {
  background: var(--color-white);
  color: var(--color-gray-800);
  font: 400 14px/1.5 "PingFang SC", "Noto Sans SC", -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}
h1,
p {
  margin: 0;
}
img {
  display: block;
  max-width: 100%;
}
.nexus-auth-page {
  position: relative;
  padding: 24px;
  background: var(--color-white);
}
.nexus-auth-layout {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  min-height: calc(100vh - 48px);
  min-height: calc(100dvh - 48px);
}
.nexus-auth-form-side {
  display: flex;
  flex: 1;
  flex-direction: column;
  width: 100%;
  min-width: 0;
}
.nexus-auth-top,
.nexus-auth-form-wrap,
.nexus-auth-bottom {
  width: 100%;
  max-width: 448px;
  margin-inline: auto;
}
.nexus-auth-top {
  padding-top: 16px;
}
.nexus-auth-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.4px;
}
.nexus-auth-brand img {
  flex: none;
  border-radius: 8px;
}
.nexus-auth-form-wrap {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: center;
  padding-block: 48px;
}
.nexus-auth-intro {
  margin-bottom: 32px;
}
.nexus-auth-intro h1 {
  margin-bottom: 8px;
  font-size: 30px;
  font-weight: 600;
  line-height: 38px;
}
.nexus-auth-intro p {
  color: var(--color-gray-500);
}
.nexus-auth-fields {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.nexus-auth-fields label {
  display: block;
  margin-bottom: 6px;
  color: var(--color-gray-700);
  font-weight: 500;
}
.nexus-auth-fields input:not([type="hidden"]) {
  width: 100%;
  height: 44px;
  padding: 10px 16px;
  border: 1px solid var(--color-gray-300);
  border-radius: 8px;
  outline: none;
  background: transparent;
  color: var(--color-gray-800);
  font: inherit;
  box-shadow: var(--shadow-theme-xs);
  transition: border-color 120ms, box-shadow 120ms;
}
.nexus-auth-fields input::placeholder {
  color: var(--color-gray-400);
}
.nexus-auth-fields input:focus {
  border-color: var(--color-brand-300);
  box-shadow: 0 0 0 3px rgb(70 95 255 / 10%);
}
.nexus-auth-fields input[aria-invalid="true"] {
  border-color: var(--color-error-500);
}
.nexus-auth-fields button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 44px;
  padding: 12px 16px;
  border: 0;
  border-radius: 8px;
  background: var(--color-brand-500);
  color: var(--color-white);
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  font-family: inherit;
  cursor: pointer;
  box-shadow: var(--shadow-theme-xs);
  transition: background 120ms;
}
.nexus-auth-fields button:hover {
  background: var(--color-brand-600);
}
.nexus-auth-fields button:focus-visible {
  outline: 3px solid var(--color-brand-300);
  outline-offset: 3px;
}
.nexus-auth-message {
  padding: 12px 16px;
  border-radius: 8px;
  background: #f2f7ff;
  color: var(--color-gray-700);
  overflow-wrap: anywhere;
}
.nexus-auth-message-error {
  background: #fef3f2;
  color: #b42318;
}
.nexus-auth-bottom {
  height: 48px;
}
.nexus-auth-brand-side {
  position: relative;
  display: none;
  align-items: center;
  width: 50%;
  min-width: 0;
  background: var(--color-brand-950);
  overflow: hidden;
}
.nexus-auth-brand-content {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 100%;
  isolation: isolate;
}
.nexus-auth-brand-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 360px;
  padding: 24px;
  text-align: center;
}
.nexus-auth-brand-large {
  margin-bottom: 16px;
  gap: 16px;
  color: var(--color-white);
  font-size: 36px;
  line-height: 44px;
}
.nexus-auth-brand-copy p {
  color: var(--color-gray-400);
  font-size: 16px;
  line-height: 24px;
}
.nexus-auth-grid {
  position: absolute;
  z-index: -1;
  width: 100%;
  max-width: 250px;
  pointer-events: none;
}
.nexus-auth-grid img {
  width: 100%;
}
.nexus-auth-grid-top {
  top: 0;
  right: 0;
}
.nexus-auth-grid-bottom {
  bottom: 0;
  left: 0;
  transform: rotate(180deg);
}
@media (min-width: 640px) {
  .nexus-auth-page {
    padding: 0;
  }
  .nexus-auth-layout {
    min-height: 100vh;
    min-height: 100dvh;
  }
  .nexus-auth-form-side {
    padding-inline: 32px;
  }
  .nexus-auth-top {
    padding-top: 40px;
  }
  .nexus-auth-intro h1 {
    font-size: 36px;
    line-height: 44px;
  }
}
@media (min-width: 1024px) {
  .nexus-auth-layout {
    flex-direction: row;
  }
  .nexus-auth-form-side {
    flex: none;
    width: 50%;
  }
  .nexus-auth-brand-side {
    display: grid;
  }
}
@media (min-width: 1280px) {
  .nexus-auth-grid {
    max-width: 450px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .nexus-auth-fields input,
  .nexus-auth-fields button {
    transition: none;
  }
}
