/* ==========================================================================
   MySuhbat — Boshqaruv: sign in
   Ported from the ERP panel this design comes from; `fi-` renamed to `ms-`.

   That panel filled half the screen with a photograph of the plant it runs and
   put a phone-and-password form beside it. This one has nothing to photograph
   and no form -- password login was removed by BLAC-123, so the whole screen is
   one button that hands over to OneID. Artwork, split, brand column and every
   input rule are gone with it.
   ========================================================================== */

.fa {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 32px 20px;
  background: var(--ms-page);
}

.fa-form-side { width: 100%; display: flex; justify-content: center; }

.fa-form-wrap {
  width: 100%;
  max-width: 400px;
  padding: 36px 36px 32px;
  text-align: center;
  background: var(--ms-surface);
  border: 1px solid var(--ms-line);
  border-radius: 16px;
  box-shadow: 0 18px 40px -24px rgba(11, 31, 58, 0.28);
}

/* --------------------------------------------------------------- wordmark */

.fa-lockup { display: block; margin-bottom: 26px; }

.fa-lockup b {
  font-family: var(--ms-display);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: 0.06em;
  color: var(--ms-navy);
}

.fa-lockup span {
  display: block;
  margin-top: 5px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ms-muted);
}

/* ------------------------------------------------------------------ copy */

/* Everything rises in sequence, one small beat apart. */
.fa-lockup,
.fa-h,
.fa-p,
.fa-submit,
.fa-help {
  animation: fa-rise 0.55s cubic-bezier(0.2, 0.7, 0.3, 1) both;
  animation-delay: calc(var(--i, 0) * 60ms + 120ms);
}

@keyframes fa-rise {
  from { opacity: 0; transform: translateY(14px); }
}

.fa-h {
  /* !important because the template forces every heading size. */
  font-size: 26px !important;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ms-ink);
  margin: 0 0 7px;
}

.fa-p {
  font-size: 14.5px;
  color: var(--ms-muted);
  margin: 0 0 30px;
}

/* ----------------------------------------------------------------- error */

/* OneID sends failures back as a fragment on our own origin, so this appears
   on arrival rather than in response to anything typed here. */
.fa-error {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 11px 13px;
  border-radius: 11px;
  background: #fef3f2;
  border: 1px solid #fecdca;
  color: #b42318;
  font-size: 13.5px;
  text-align: start;
}

.fa-error svg { flex-shrink: 0; font-size: 17px; }

/* ---------------------------------------------------------------- button */

.fa-submit {
  width: 100%;
  height: 50px;
  margin-top: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 0;
  border-radius: 12px;
  background: var(--ms-navy);
  color: #fff;
  font-family: var(--ms-ui);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.16s ease, transform 0.12s ease, box-shadow 0.16s ease;
}

.fa-submit svg { font-size: 18px; transition: transform 0.16s ease; }

.fa-submit:hover {
  background: #12305a;
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(11, 31, 58, 0.22);
}
.fa-submit:hover svg { transform: translateX(3px); }
.fa-submit:active { transform: translateY(0); }

.fa-submit:focus-visible {
  outline: 2px solid var(--ms-crimson);
  outline-offset: 2px;
}

.fa-help {
  margin: 26px 0 0;
  font-size: 13px;
  color: var(--ms-muted);
}

/* ------------------------------------------------------------ responsive */

@media (max-width: 480px) {
  .fa { padding: 20px 14px; }
  .fa-form-wrap { padding: 28px 22px 26px; }
}

@media (prefers-reduced-motion: reduce) {
  .fa-lockup,
  .fa-h,
  .fa-p,
  .fa-submit,
  .fa-help {
    animation: none !important;
  }
  .fa-submit { transition: none; }
}
