:root {
  --telegram-blue: #229ed9;
  --telegram-blue-deep: #1687c3;
  --login-ink: #142823;
  --login-subtle: #66736d;
}

.login-card {
  padding: 40px 40px 36px;
}

.login-card .brand-mark {
  width: 38px;
  height: 38px;
  margin-bottom: 28px;
  font-size: 15px;
}

.login-card > p:not(.eyebrow) {
  max-width: 350px;
  margin: 0;
  color: var(--login-subtle);
  font-size: 14px;
  line-height: 1.75;
}

.telegram-login-actions {
  display: grid;
  gap: 10px;
  margin: 27px 0 13px;
}

.telegram-oidc-login {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 13px;
  min-height: 74px;
  margin: 0;
  padding: 12px 16px 12px 13px;
  border: 1px solid #1687c3;
  border-radius: 9px;
  background: var(--telegram-blue);
  box-shadow: 0 7px 0 #0c6eaa, 0 12px 22px rgba(34, 158, 217, 0.22);
  color: #fff;
  text-decoration: none;
  transition: transform 140ms ease, background 140ms ease, box-shadow 140ms ease;
}

.telegram-oidc-login:hover {
  background: var(--telegram-blue-deep);
  box-shadow: 0 5px 0 #0c6eaa, 0 9px 16px rgba(34, 158, 217, 0.2);
  transform: translateY(2px);
}

.telegram-oidc-login:focus-visible,
.switch-account:focus-visible {
  outline: 3px solid rgba(201, 230, 107, 0.9);
  outline-offset: 3px;
}

.telegram-glyph {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.17);
}

.telegram-glyph svg {
  width: 23px;
  height: 23px;
  fill: currentColor;
}

.telegram-login-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.telegram-login-copy strong {
  font-size: 16px;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.telegram-login-copy small {
  color: rgba(255, 255, 255, 0.84);
  font-size: 11px;
  line-height: 1.35;
}

.telegram-login-arrow {
  font-size: 22px;
  line-height: 1;
  font-weight: 500;
}

.switch-account {
  display: grid;
  gap: 1px;
  width: fit-content;
  padding: 5px 1px;
  border: 0;
  background: transparent;
  color: #2c6d8a;
  font-weight: 800;
  text-align: left;
  text-decoration: none;
}

.switch-account span {
  font-size: 13px;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.switch-account small {
  color: #708079;
  font-size: 11px;
  font-weight: 600;
}

.account-switch-help {
  margin: 4px 0 0 !important;
}

.login-note {
  margin: 0 0 16px !important;
  color: #68756f;
  font-size: 11px;
}

@media (max-width: 500px) {
  .login-card {
    padding: 36px 32px 32px;
  }

  .telegram-oidc-login {
    grid-template-columns: 38px minmax(0, 1fr) auto;
    gap: 11px;
    min-height: 70px;
    padding-right: 13px;
  }

  .telegram-glyph {
    width: 38px;
    height: 38px;
  }
}
