.portal-auth {
  color: #17384b;
  font-family: inherit;
  text-align: left;
}
.portal-auth * {
  box-sizing: border-box;
}
.portal-auth h1 {
  margin: 8px 0 12px;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.5px;
}
.portal-auth .pa-eyebrow {
  margin: 0;
  color: #29236b;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.035em;
}
.portal-auth .pa-intro {
  margin: 0 0 24px;
  color: #607381;
  font-size: 15px;
  line-height: 1.55;
}
.pa-form {
  display: grid;
  gap: 18px;
}
.pa-field {
  display: grid;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
}
.pa-field input {
  width: 100%;
  height: 48px;
  margin: 0;
  padding: 11px 14px;
  border: 1px solid #ccd5df;
  border-radius: 8px;
  background: #fff;
  color: #17384b;
  font: inherit;
  font-weight: 400;
}
.pa-field input:focus {
  outline: 2px solid #29236b;
  outline-offset: 2px;
}
.pa-password {
  position: relative;
}
.pa-password input {
  padding-right: 92px;
}
.pa-toggle {
  position: absolute;
  right: 8px;
  top: 4px;
  height: 40px;
  border: 0;
  background: transparent;
  color: #607381;
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}
.pa-submit {
  width: 100%;
  min-height: 48px;
  padding: 12px 18px;
  border: 0;
  border-radius: 8px;
  background: #29236b;
  color: #fff;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}
.pa-submit:hover {
  background: #39337d;
}
.pa-submit:disabled {
  opacity: 0.6;
  cursor: wait;
}
.pa-text {
  width: auto;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #29236b;
  text-align: left;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.pa-text:disabled {
  color: #607381;
  cursor: default;
  text-decoration: none;
}
.pa-alternatives {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.portal-auth .pa-note {
  margin: 0;
  color: #607381;
  font-size: 12px;
  line-height: 1.5;
}
.portal-auth .pa-footer {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px;
  padding-top: 24px;
  margin: 24px 0 0;
  border-top: 1px solid #e6e9ef;
  color: #607381;
  font-size: 14px;
}
.pa-consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 12px;
  line-height: 1.6;
  font-weight: 400;
}
.pa-consent input {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  margin: 1px 0 0;
  accent-color: #29236b;
}
.pa-consent a {
  color: #29236b;
  text-decoration: underline;
}
.portal-auth .pa-error {
  margin: 0;
  padding: 12px;
  border-radius: 8px;
  background: #fff0f0;
  color: #a02727;
  font-size: 14px;
  line-height: 1.5;
}
.pa-code {
  font-size: 24px !important;
  letter-spacing: 7px;
}
.portal-auth [hidden] {
  display: none !important;
}
.site-header .cabinet-entry {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  font-size: 13px;
}
.site-header .cabinet-entry a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 6px 12px;
  border: 1px solid #d5dce6;
  border-radius: 6px;
  color: #29236b;
}
.site-header .cabinet-entry a:hover {
  background: #f1f3fa;
}
.site-header .cabinet-entry .cabinet-register {
  border-color: transparent;
  padding-left: 2px;
  padding-right: 2px;
}
.site-header .cabinet-link {
  display: none !important;
}
.site-header .cabinet-entry [hidden] {
  display: none !important;
}
.cabinet-entry-mobile {
  display: none;
}
.pa-dialog {
  width: min(460px, calc(100% - 24px));
  max-height: calc(100dvh - 24px);
  padding: 36px;
  margin: auto;
  border: 0;
  border-radius: 14px;
  overflow: auto;
  box-shadow: 0 20px 70px #172f4a33;
}
.pa-dialog::backdrop {
  background: #17263c66;
}
.pa-close {
  display: block;
  margin: -18px -18px 12px auto;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  color: #607381;
  background: #f3f5f8;
  font-size: 24px;
  cursor: pointer;
}
@media (max-width: 900px) {
  .site-header .header-right {
    display: flex;
    align-items: center;
    gap: 14px;
  }
  .site-header .header-inner {
    gap: 14px;
  }
  .cabinet-entry-mobile {
    display: flex;
  }
  .cabinet-entry-mobile .cabinet-register {
    display: none !important;
  }
  .site-header .cabinet-entry-mobile .cabinet-signin {
    font-size: 12px;
    margin: 0;
    padding: 6px 9px;
  }
  .site-header .brand-logo {
    width: 190px;
  }
  .site-header .brand {
    flex-basis: auto;
  }
}
@media (max-width: 600px) {
  .portal-auth h1 {
    font-size: 25px;
  }
  .pa-dialog {
    padding: 28px 22px;
  }
  .site-header .cabinet-entry {
    gap: 6px;
    flex-wrap: wrap;
  }
  .site-header .cabinet-entry a {
    font-size: 12px;
    padding: 6px 10px;
  }
}
@media (max-width: 360px) {
  .site-header .brand-logo {
    width: 165px;
  }
  .site-header .header-inner {
    width: calc(100% - 28px);
    gap: 8px;
  }
  .site-header .header-right {
    gap: 8px;
  }
  .site-header .cabinet-entry-mobile .cabinet-signin {
    font-size: 11px;
    padding: 6px;
  }
}
