/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */
@layer theme, base, components, utilities;
@layer theme {
  :root, :host {
    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
      "Noto Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji",
      "Segoe UI Symbol", "Noto Color Emoji";
    --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono",
      "Courier New", monospace;
    --spacing: 0.25rem;
    --text-sm: 0.875rem;
    --text-sm--line-height: calc(1.25 / 0.875);
    --ease-out: cubic-bezier(0, 0, 0.2, 1);
    --default-font-family: var(--font-sans);
    --default-mono-font-family: var(--font-mono);
  }
}
@layer base {
  *, ::after, ::before, ::backdrop, ::file-selector-button {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    border: 0 solid;
  }
  html, :host {
    line-height: 1.5;
    -webkit-text-size-adjust: 100%;
    tab-size: 4;
    font-family: var(--default-font-family, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");
    font-feature-settings: var(--default-font-feature-settings, normal);
    font-variation-settings: var(--default-font-variation-settings, normal);
    -webkit-tap-highlight-color: transparent;
  }
  hr {
    height: 0;
    color: inherit;
    border-top-width: 1px;
  }
  abbr:where([title]) {
    -webkit-text-decoration: underline dotted;
    text-decoration: underline dotted;
  }
  h1, h2, h3, h4, h5, h6 {
    font-size: inherit;
    font-weight: inherit;
  }
  a {
    color: inherit;
    -webkit-text-decoration: inherit;
    text-decoration: inherit;
  }
  b, strong {
    font-weight: bolder;
  }
  code, kbd, samp, pre {
    font-family: var(--default-mono-font-family, ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);
    font-feature-settings: var(--default-mono-font-feature-settings, normal);
    font-variation-settings: var(--default-mono-font-variation-settings, normal);
    font-size: 1em;
  }
  small {
    font-size: 80%;
  }
  sub, sup {
    font-size: 75%;
    line-height: 0;
    position: relative;
    vertical-align: baseline;
  }
  sub {
    bottom: -0.25em;
  }
  sup {
    top: -0.5em;
  }
  table {
    text-indent: 0;
    border-color: inherit;
    border-collapse: collapse;
  }
  :-moz-focusring:where(:not(iframe)) {
    outline: auto;
  }
  progress {
    vertical-align: baseline;
  }
  summary {
    display: list-item;
  }
  ol, ul, menu {
    list-style: none;
  }
  img, svg, video, canvas, audio, iframe, embed, object {
    display: block;
    vertical-align: middle;
  }
  img, video {
    max-width: 100%;
    height: auto;
  }
  button, input, select, optgroup, textarea, ::file-selector-button {
    font: inherit;
    font-feature-settings: inherit;
    font-variation-settings: inherit;
    letter-spacing: inherit;
    color: inherit;
    border-radius: 0;
    background-color: transparent;
    opacity: 1;
  }
  :where(select:is([multiple], [size])) optgroup {
    font-weight: bolder;
  }
  :where(select:is([multiple], [size])) optgroup option {
    padding-inline-start: 20px;
  }
  ::file-selector-button {
    margin-inline-end: 4px;
  }
  ::placeholder {
    opacity: 1;
  }
  @supports (not (-webkit-appearance: -apple-pay-button))  or (contain-intrinsic-size: 1px) {
    ::placeholder {
      color: currentcolor;
      @supports (color: color-mix(in lab, red, red)) {
        color: color-mix(in oklab, currentcolor 50%, transparent);
      }
    }
  }
  textarea {
    resize: vertical;
  }
  ::-webkit-search-decoration {
    -webkit-appearance: none;
  }
  ::-webkit-date-and-time-value {
    min-height: 1lh;
    text-align: inherit;
  }
  ::-webkit-datetime-edit {
    display: inline-flex;
  }
  ::-webkit-datetime-edit-fields-wrapper {
    padding: 0;
  }
  ::-webkit-datetime-edit, ::-webkit-datetime-edit-year-field, ::-webkit-datetime-edit-month-field, ::-webkit-datetime-edit-day-field, ::-webkit-datetime-edit-hour-field, ::-webkit-datetime-edit-minute-field, ::-webkit-datetime-edit-second-field, ::-webkit-datetime-edit-millisecond-field, ::-webkit-datetime-edit-meridiem-field {
    padding-block: 0;
  }
  ::-webkit-calendar-picker-indicator {
    line-height: 1;
  }
  :-moz-ui-invalid {
    box-shadow: none;
  }
  button, input:where([type="button"], [type="reset"], [type="submit"]), ::file-selector-button {
    appearance: button;
  }
  ::-webkit-inner-spin-button, ::-webkit-outer-spin-button {
    height: auto;
  }
  [hidden]:where(:not([hidden="until-found"])) {
    display: none !important;
  }
}
@layer utilities {
  .flex {
    display: flex;
  }
  .hidden {
    display: none;
  }
  .flex-col {
    flex-direction: column;
  }
  .items-center {
    align-items: center;
  }
  .gap-3 {
    gap: calc(var(--spacing) * 3);
  }
  .p-6 {
    padding: calc(var(--spacing) * 6);
  }
  .px-6 {
    padding-inline: calc(var(--spacing) * 6);
  }
  .py-3 {
    padding-block: calc(var(--spacing) * 3);
  }
  .text-sm {
    font-size: var(--text-sm);
    line-height: var(--tw-leading, var(--text-sm--line-height));
  }
}
body.auth-body {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 24px;
  background: url('/static/img/login_bg.jpg') center/cover no-repeat;
  background-color: #0f1115;
  position: relative;
}
body.auth-body::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(15, 17, 21, 0.78);
  backdrop-filter: blur(10px) saturate(1.1);
  -webkit-backdrop-filter: blur(10px) saturate(1.1);
  z-index: 0;
}
.auth-card {
  width: 100%;
  max-width: 460px;
  background: var(--bb-surface);
  @supports (color: color-mix(in lab, red, red)) {
    background: color-mix(in srgb, var(--bb-surface) 96%, transparent);
  }
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  border: 1px solid var(--bb-border);
  @supports (color: color-mix(in lab, red, red)) {
    border: 1px solid color-mix(in srgb, var(--bb-border) 85%, transparent);
  }
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.45), 0 8px 24px rgba(0,0,0,0.25), inset 0 1px 0 rgba(255,255,255,0.04);
  overflow: hidden;
  animation: bb-fade-in 0.35s cubic-bezier(0.16,1,0.3,1);
  position: relative;
  z-index: 1;
}
.auth-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 36px 28px 10px;
  text-align: center;
}
.auth-brand .brand-logo {
  width: 58px;
  height: 58px;
  font-size: 24px;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.35), 0 2px 8px rgba(0,0,0,0.2);
  background: var(--bb-accent);
  padding: 10px;
}
.brand-title {
  margin: 6px 0 0;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.05;
  text-align: center;
  color: var(--bb-text);
}
.brand-title .brand-slogan {
  display: block;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bb-accent);
  margin-top: 7px;
  opacity: 0.95;
}
.brand-tagline {
  color: var(--bb-text-dim);
  font-size: 13px;
  margin: 4px 0 0;
  text-align: center;
  font-weight: 400;
  line-height: 1.4;
}
.auth-brand h1 {
  margin: 4px 0 0;
  font-size: 22px;
  letter-spacing: 0.02em;
}
.auth-brand .subtitle {
  color: var(--bb-text-dim);
  font-size: 13px;
  margin: 0;
}
.first-run-banner {
  margin: 16px 20px 0;
  padding: 14px 16px;
  border: 1px solid rgba(250, 204, 21, 0.45);
  border-radius: 12px;
  background: rgba(250, 204, 21, 0.08);
}
.first-run-banner h3 {
  margin: 0 0 6px;
  font-size: 14px;
  color: var(--bb-warn, #facc15);
}
.first-run-banner p {
  margin: 0 0 10px;
  font-size: 12.5px;
  color: var(--bb-text-dim);
}
.first-run-banner .cred-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 5px 0;
  font-size: 13px;
}
.first-run-banner .cred-row code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.25);
  color: var(--bb-text);
  user-select: all;
}
.first-run-banner .btn {
  margin-top: 10px;
}
.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 20px 24px 0;
  background: var(--bb-bg-alt);
  border: 1px solid var(--bb-border);
  border-radius: var(--bb-radius);
  padding: 4px;
  gap: 4px;
}
.auth-tab {
  background: transparent;
  border: 1px solid transparent;
  color: var(--bb-text-dim);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: var(--bb-radius-sm);
  cursor: pointer;
  font-family: inherit;
  transition: all var(--dur-fast) var(--ease-out);
  position: relative;
  outline: none;
  text-align: center;
}
.auth-tab:hover:not(.active) {
  color: var(--bb-text);
  background: var(--bb-surface-2);
}
.auth-tab.active {
  background: var(--bb-surface);
  color: var(--bb-text);
  font-weight: 600;
  border-color: var(--bb-border);
  box-shadow: var(--bb-shadow-sm);
}
@keyframes bb-panel-fade {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.auth-panels {
  position: relative;
  min-height: 280px;
}
.auth-panel {
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
  pointer-events: none;
}
.auth-panel.active {
  position: relative;
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
  animation: bb-panel-fade 0.25s ease;
}
.auth-panel[hidden] {
  display: none !important;
  opacity: 0;
  visibility: hidden;
}
.auth-panel h2 {
  margin: 0 0 4px;
  font-size: 17px;
}
.auth-panel .hint {
  color: var(--bb-text-dim);
  font-size: 13px;
  margin: 0 0 18px;
}
.auth-error {
  background: rgba(255, 107, 107, 0.12);
  border: 1px solid rgba(255, 107, 107, 0.35);
  color: var(--bb-danger);
  font-size: 13px;
  padding: 10px 12px;
  border-radius: var(--bb-radius-sm);
  margin-bottom: 14px;
  display: none;
}
.auth-error.show {
  display: block;
}
.auth-success {
  background: rgba(74, 222, 128, 0.12);
  border: 1px solid rgba(74, 222, 128, 0.35);
  color: var(--bb-success);
  font-size: 13px;
  padding: 10px 12px;
  border-radius: var(--bb-radius-sm);
  margin-bottom: 14px;
  display: none;
}
.auth-success.show {
  display: block;
}
.btn-submit {
  width: 100%;
  padding: 12px;
  font-size: 15px;
  border-radius: var(--bb-radius-sm);
  background: var(--bb-accent);
  color: #fff;
  border: none;
  cursor: pointer;
  font-weight: 600;
  font-family: inherit;
  box-shadow: var(--bb-shadow-sm);
  transition: background 0.15s, transform 0.1s, box-shadow var(--dur-base) var(--ease-out);
  margin-top: 6px;
}
.btn-submit:hover:not(:disabled) {
  filter: brightness(1.08);
  transform: translateY(-1px);
  box-shadow: var(--bb-shadow-md);
}
.btn-submit:active {
  transform: scale(0.99);
}
.btn-submit:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.auth-footer {
  text-align: center;
  padding: 16px 24px 24px;
  color: var(--bb-text-dim);
  font-size: 12px;
}
.password-hint {
  font-size: 12px;
  color: var(--bb-text-dim);
  margin-top: -8px;
}
.auth-panel .field label {
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.01em;
}
.auth-panel .input {
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}
.auth-panel .input:focus {
  border-color: var(--bb-accent);
  box-shadow: 0 0 0 3px var(--bb-accent);
  @supports (color: color-mix(in lab, red, red)) {
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--bb-accent) 18%, transparent);
  }
  background: var(--bb-surface);
  @supports (color: color-mix(in lab, red, red)) {
    background: color-mix(in srgb, var(--bb-surface) 92%, var(--bb-accent) 6%);
  }
  outline: none;
}
.auth-footer {
  border-top: 1px solid var(--bb-border);
  @supports (color: color-mix(in lab, red, red)) {
    border-top: 1px solid color-mix(in srgb, var(--bb-border) 70%, transparent);
  }
  background: var(--bb-surface-1);
  @supports (color: color-mix(in lab, red, red)) {
    background: color-mix(in srgb, var(--bb-surface-1) 60%, transparent);
  }
}
.btn-toggle-password {
  position: absolute;
  right: 8px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--bb-text-dim);
  padding: 4px;
  display: flex;
  align-items: center;
}
.btn-toggle-password:hover {
  color: var(--bb-text);
}
.btn-toggle-password:focus-visible {
  outline: 2px solid var(--bb-accent);
  outline-offset: 2px;
}
