:root {
  --brand-night: #0b1a35;
  --brand-night-deep: #06112a;
  --brand-night-soft: #1a2b4d;
  --brand-gray: #e8ecf1;
  --brand-gray-mid: #c9d1dc;
  --brand-gray-ink: #6b7689;
  --brand-white: #ffffff;
}

html {
  color-scheme: light;
}

body {
  font-family: "Inter", sans-serif;
}

h1,
h2,
h3,
.brand-display {
  font-family: "Sora", sans-serif;
}

.brand-app-body {
  background: #f6f8fb;
  color: var(--brand-night);
}

.brand-app-header {
  border-color: rgba(11, 26, 53, 0.1) !important;
  box-shadow: 0 1px 0 rgba(11, 26, 53, 0.04), 0 8px 24px rgba(11, 26, 53, 0.04) !important;
}

.brand-header-marker,
.brand-avatar,
.brand-primary-action {
  background: var(--brand-night) !important;
}

.brand-auth-body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 8% 8%, rgba(26, 43, 77, 0.12), transparent 34rem),
    var(--brand-gray);
  color: var(--brand-night);
}

.brand-auth-main {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(0.75rem, 2vw, 2rem);
}

.auth-shell {
  width: 100%;
  max-width: 72rem;
  min-height: min(44rem, calc(100vh - 4rem));
  overflow: hidden;
  border: 1px solid rgba(11, 26, 53, 0.1);
  border-radius: 1.75rem;
  background: var(--brand-white);
  box-shadow: 0 28px 80px rgba(6, 17, 42, 0.18);
}

.auth-shell-grid {
  min-height: inherit;
}

.auth-brand-panel {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  min-height: 100%;
  padding: clamp(2rem, 5vw, 4rem);
  background: var(--brand-night);
  color: var(--brand-white);
}

.auth-brand-panel::after {
  content: "";
  position: absolute;
  z-index: -1;
  right: -10rem;
  bottom: -12rem;
  width: 34rem;
  height: 34rem;
  border: 4.5rem solid rgba(6, 17, 42, 0.48);
  border-radius: 50%;
}

.auth-wordmark {
  position: relative;
  z-index: 1;
  width: min(100%, 30rem);
  height: auto;
}

.auth-kicker {
  margin-bottom: 1rem;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand-gray-mid);
}

.auth-form-panel {
  display: flex;
  align-items: center;
  padding: clamp(2rem, 5vw, 4.5rem);
  background: var(--brand-white);
}

.auth-form-wrap {
  width: 100%;
  max-width: 27rem;
  margin-inline: auto;
}

.auth-office-field {
  margin-bottom: 2rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--brand-gray-mid);
  border-radius: 0.9rem;
  background: #f6f8fb;
  color: var(--brand-night);
  font-size: 0.78rem;
  line-height: 1.45;
}

.auth-office-field span {
  color: var(--brand-gray-ink);
  font-weight: 500;
}

.auth-office-field strong {
  font-family: "Sora", sans-serif;
  font-weight: 650;
}

.brand-input {
  width: 100%;
  border: 1px solid var(--brand-gray-mid);
  border-radius: 0.9rem;
  background: var(--brand-white);
  color: var(--brand-night);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.brand-input:focus {
  border-color: var(--brand-night-soft);
  outline: none;
  box-shadow: 0 0 0 4px rgba(26, 43, 77, 0.12);
}

.brand-button {
  background: var(--brand-night);
  box-shadow: 0 10px 24px rgba(11, 26, 53, 0.18);
}

.brand-button:hover {
  background: var(--brand-night-soft);
}

.brand-button:focus-visible {
  outline: 3px solid rgba(26, 43, 77, 0.28);
  outline-offset: 3px;
}

@media (max-width: 767px) {
  .brand-auth-main {
    align-items: stretch;
    padding: 0;
  }

  .auth-shell {
    min-height: 100dvh;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .auth-shell-grid {
    min-height: 100dvh;
  }

  .auth-brand-panel {
    min-height: 13rem;
    padding: 2.5rem 1.5rem;
  }

  .auth-brand-panel::after {
    right: -9rem;
    bottom: -14rem;
    width: 25rem;
    height: 25rem;
    border-width: 3.5rem;
  }

  .auth-wordmark {
    width: min(100%, 20rem);
  }

  .auth-form-panel {
    align-items: flex-start;
    padding: 2rem 1.5rem 3rem;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .auth-brand-panel,
  .auth-form-panel {
    padding: 2.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
