/* Variant B and the two Bitrix24 service pages. */
.glow-auth,
.glow-auth * { box-sizing: border-box; }

.glow-auth {
  --auth-ink: #2B3134;
  --auth-muted: #71757F;
  --auth-line: #E0E3EB;
  --auth-blue: #1C86C4;
  --auth-yellow: #FFCB00;
  display: grid;
  min-height: 100vh;
  place-items: center;
  margin: 0;
  padding: 40px env(safe-area-inset-right, 0px) 40px env(safe-area-inset-left, 0px);
  background: #F4F6FA;
  color: var(--auth-ink);
  font: 14px/21px Inter, Roboto, -apple-system, "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
  -webkit-text-size-adjust: 100%;
}

.auth-card {
  width: 430px;
  max-width: calc(100% - 32px);
  padding: 30px;
  background: #fff;
  border: 1px solid var(--auth-line);
  border-top: 4px solid var(--auth-blue);
  border-radius: 12px;
}

.auth-card h1 { margin: 0; font-size: 26px; line-height: 30px; font-weight: 400; }
.auth-card p { margin: 0 0 8px; }
.auth-card a { color: var(--auth-blue); text-decoration: none; }
.auth-card a:hover { text-decoration: underline; }
.auth-card :focus-visible { outline: 2px solid var(--auth-yellow); outline-offset: 2px; }

.auth-brand { display: flex; align-items: center; gap: 12px; margin: 0 0 14px; }
.auth-brand img { display: block; flex: none; }
.auth-brand b { display: block; font-weight: 600; }
.auth-brand small { display: block; color: var(--auth-muted); font-size: 12px; line-height: 18px; }
.auth-card .auth-error { color: #B3261E; }

.auth-card label { display: block; margin: 18px 0 0; font-size: 14px; }
.auth-card input {
  display: block;
  width: 100%;
  height: 45px;
  margin-top: 7px;
  padding: 11px;
  border: 1px solid #CBD2DD;
  border-radius: 8px;
  font: inherit;
  color: inherit;
}
.auth-card .auth-code { letter-spacing: .3em; font-variant-numeric: tabular-nums; }

.auth-card .auth-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  height: 32px;
  margin-top: 22px;
  padding: 0 12px;
  border: 1px solid var(--auth-line);
  border-radius: 8px;
  background: #fff;
  color: var(--auth-ink);
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
}
.auth-card .auth-button:hover { background: #F7F9FC; }
.auth-card .auth-button--primary { background: var(--auth-yellow); border-color: var(--auth-yellow); }
.auth-card .auth-button--primary:hover { background: var(--auth-yellow); filter: brightness(1.03); }
.auth-card .auth-button--primary:disabled {
  background: #FFEA99;
  border-color: #FFEA99;
  color: var(--auth-muted);
  cursor: default;
}

.auth-or {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0 0;
  color: var(--auth-muted);
  font-size: 12px;
  line-height: 18px;
}
.auth-or::before, .auth-or::after { content: ""; flex: 1 1 auto; height: 1px; background: var(--auth-line); }
.auth-go--secondary .auth-button { margin-top: 18px; }

@media (pointer: coarse) {
  .auth-card input { font-size: 16px; }
  .auth-card .auth-button { min-height: 44px; }
}
