:root {
  --red: #e21d2d;
  --red2: #b71422;
}

.login-brand {
  width: min(430px, 82%);
}

.brand-logo,
.brand-symbol,
.paper-logo {
  display: block;
  height: auto;
}

.brand-logo {
  width: 100%;
}

.login-card-symbol {
  width: 68px;
  margin-bottom: 22px;
}

.brand-symbol {
  width: 100%;
}

.premium-brand {
  display: block;
  width: 222px;
  max-width: 100%;
  margin-bottom: 26px;
}

.premium-brand .brand-logo {
  width: 100%;
}

.paper-company {
  max-width: 55%;
}

.paper-logo {
  width: 270px;
  max-width: 100%;
  margin-bottom: 8px;
}

@media print {
  .paper-logo {
    width: 270px !important;
    max-height: 82px;
    object-fit: contain;
    object-position: left center;
  }
}

.service-error {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: #f2f3f5;
}

.service-error > div {
  width: min(520px, 100%);
  padding: 42px;
  border: 1px solid #e4e5e8;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 18px 45px rgba(17, 21, 27, .08);
}

.service-error .brand-symbol {
  width: 70px;
  margin-bottom: 24px;
}

.service-error h1 {
  margin: 8px 0 12px;
}

.service-error p {
  color: #6d7580;
  line-height: 1.6;
}

.service-error .error-code {
  padding: 10px 12px;
  border-left: 3px solid #e21d2d;
  background: #fff0f1;
  color: #9d2630;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
}

.payment-details {
  margin-top: 16px;
  padding: 11px 13px;
  border-left: 3px solid #e21d2d;
  background: #f7f8f9;
}

.payment-details > span,
.signature-box > span {
  color: #e21d2d;
  font-size: 7px;
  font-weight: 900;
  letter-spacing: .04em;
}

.account-holder {
  margin: 6px 0 9px;
  font-weight: 700;
}

.bank-accounts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: 18px;
}

.bank-account {
  padding: 8px 10px;
  border: 1px solid #dfe3e8;
  background: #fff;
}

.bank-account strong {
  color: #171b21;
  font-size: 8px;
}

.bank-account p {
  margin: 4px 0 0;
}

.signature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-top: 15px;
}

.signature-box {
  min-height: 150px;
  padding: 12px 13px;
  border: 1px solid #dfe3e8;
  border-radius: 7px;
}

.signature-space {
  height: 46px;
  margin-top: 5px;
  border-bottom: 1px solid #30343a;
}

@media print {
  .payment-details,
  .signature-box {
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .payment-details {
    background: #f7f8f9 !important;
    border-left: 3px solid #e21d2d !important;
  }
}
