html:has(body.auth-page) {
  overflow-x: clip;
}

body.auth-page {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  justify-items: center;
  align-content: center;
  padding: clamp(20px, 3.2svh, 32px) 16px;
  overflow-x: clip;
}
body.auth-page .saas__hp__header--auth {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  background: transparent;
  border-bottom: 0;
  box-shadow: none;
  backdrop-filter: none;
  pointer-events: none;
}
body.auth-page .saas__hp__header--auth .saas__hp__nav {
  justify-content: flex-end;
  min-height: 82px;
  pointer-events: none;
}
body.auth-page .saas__hp__header--auth .saas__hp__navActions {
  display: flex;
  pointer-events: auto;
}
body.auth-page .saas__hp__header--auth .saas__hp__langTrigger,
body.auth-page .saas__hp__header--auth .cookie-preferences-trigger {
  background: var(--surface-92);
  border-color: var(--text-10);
  box-shadow: 0 14px 34px var(--shadow-08), inset 0 1px 0 var(--surface-95);
  backdrop-filter: blur(14px) saturate(1.15);
}
body.auth-page .saas__hp__header--auth .saas__hp__langTriggerIcon {
  background: linear-gradient(135deg, var(--primary), var(--sky));
  color: var(--on-dark);
}

.auth-wrapper {
  position: relative;
  width: min(100%, 500px);
  margin-inline: auto;
  z-index: 1;
}
.auth-wrapper::before, .auth-wrapper::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: -1;
}
.auth-wrapper::before {
  top: -70px;
  right: -90px;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, var(--secondary-22), transparent 72%);
}
.auth-wrapper::after {
  left: -110px;
  bottom: -90px;
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, var(--primary-18), transparent 72%);
}

.auth-card {
  overflow: hidden;
  border: 1px solid var(--text-08);
  border-radius: 34px;
  background: linear-gradient(135deg, var(--surface-70), var(--surface-84));
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.auth-header {
  position: relative;
  padding: 30px 30px 24px;
  text-align: center;
  color: var(--text);
  background: radial-gradient(circle at top right, var(--secondary-18), transparent 34%), linear-gradient(135deg, var(--surface-62), var(--surface-86));
  border-bottom: 1px solid var(--text-08);
}
.auth-header::after {
  content: "";
  position: absolute;
  inset: auto 30px 0;
  height: 1px;
  background: linear-gradient(90deg, var(--primary-0), var(--primary-16), var(--secondary-0));
}
.auth-header img {
  width: 100%;
  max-width: 200px;
  height: auto;
  margin: 0 auto 10px;
  opacity: 0.82;
}
.auth-header .auth-logo-link {
  display: inline-block;
  line-height: 0;
  text-decoration: none;
  transition: opacity 0.2s ease;
}
.auth-header .auth-logo-link:hover img, .auth-header .auth-logo-link:focus-visible img {
  opacity: 1;
}
.auth-header h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 2.65rem;
  line-height: 0.95;
  letter-spacing: -0.05em;
}
.auth-header p {
  margin: 10px auto 0;
  max-width: 28ch;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.6;
}

.auth-body {
  padding: 26px 30px 30px;
}

.flash-messages {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
}

.message {
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid transparent;
  font-size: 0.92rem;
  line-height: 1.45;
}
.message.error {
  background: var(--danger-08);
  color: var(--danger-dark);
  border-color: var(--danger-14);
}
.message.success {
  background: var(--primary-08);
  color: var(--primary-dark);
  border-color: var(--primary-14);
}

.form-group {
  margin-bottom: 14px;
}
.form-group label {
  display: block;
  margin-bottom: 7px;
  color: var(--text);
  font-size: 0.74rem;
  font-weight: 700;
}

.input-wrap {
  position: relative;
}
.input-wrap svg {
  position: absolute;
  top: 50%;
  left: 15px;
  width: 17px;
  height: 17px;
  transform: translateY(-50%);
  color: var(--muted-82);
  pointer-events: none;
}
.input-wrap input {
  width: 100%;
  min-height: 54px;
  padding: 0 15px 0 46px;
  border: 1px solid var(--text-12);
  border-radius: 17px;
  background: var(--surface-88);
  color: var(--text);
  font: inherit;
  font-size: 0.95rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  outline: none;
}
.input-wrap input::placeholder {
  color: var(--muted-78);
}
.input-wrap input:focus {
  border-color: var(--primary-30);
  background: var(--surface-96);
  box-shadow: 0 0 0 4px var(--primary-08);
}

.error-msg {
  margin-top: 8px;
  color: var(--danger);
  font-size: 0.84rem;
  line-height: 1.4;
}

.auth-options {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  margin: 2px 0 14px;
  font-size: 0.86rem;
  line-height: 1.4;
}
.auth-options .auth-remember {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--text);
  font-weight: 500;
  cursor: pointer;
}
.auth-options .auth-remember input[type=checkbox] {
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
  margin: 0;
  accent-color: var(--primary);
  cursor: pointer;
}
.auth-options .auth-forgot {
  margin-left: auto;
  color: var(--primary-dark);
  font-weight: 600;
  text-decoration: none;
}
.auth-options .auth-forgot:hover {
  color: var(--secondary);
}

.btn-auth {
  min-height: 54px;
  margin-top: 6px;
  font-size: 0.98rem;
  font-weight: 700;
}

.auth-footer {
  margin-top: 16px;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
}
.auth-footer a {
  color: var(--primary-dark);
  font-weight: 700;
}
.auth-footer a:hover {
  color: var(--secondary);
}
.auth-footer__legal {
  margin-top: 8px;
  font-size: 0.82rem;
}
.auth-notice {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: fit-content;
  max-width: 100%;
  margin: 12px auto 0;
  padding: 5px 14px;
  border: 1px solid var(--primary-14);
  border-radius: 999px;
  background: var(--primary-08);
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.4;
}
.auth-notice a {
  color: var(--primary-dark);
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s ease;
}
.auth-notice a::after {
  content: "\2192";
  margin-left: 4px;
  transition: transform 0.2s ease;
  display: inline-block;
}
.auth-notice a:hover {
  color: var(--secondary);
}
.auth-notice a:hover::after {
  transform: translateX(2px);
}
.auth-notice a:focus-visible {
  outline: 2px solid var(--primary-dark);
  outline-offset: 3px;
  border-radius: 6px;
}

@media (min-width: 641px) and (max-height: 820px) {
  body.auth-page {
    padding-top: 18px;
    padding-bottom: 18px;
  }
  body.auth-page .saas__hp__header--auth .saas__hp__nav {
    min-height: 66px;
  }
  .auth-wrapper {
    width: min(100%, 480px);
  }
  .auth-wrapper::before {
    top: -46px;
    right: -64px;
    width: 180px;
    height: 180px;
  }
  .auth-wrapper::after {
    left: -78px;
    bottom: -66px;
    width: 210px;
    height: 210px;
  }
  .auth-card {
    border-radius: 30px;
  }
  .auth-header {
    padding: 22px 26px 20px;
  }
  .auth-header::after {
    inset: auto 26px 0;
  }
  .auth-header img {
    margin-bottom: 8px;
  }
  .auth-header h1 {
    font-size: 2.35rem;
    line-height: 0.98;
  }
  .auth-header p {
    margin-top: 8px;
    font-size: 0.88rem;
    line-height: 1.45;
  }
  .auth-body {
    padding: 22px 26px 26px;
  }
  .form-group {
    margin-bottom: 12px;
  }
  .form-group label {
    margin-bottom: 6px;
    font-size: 0.68rem;
  }
  .input-wrap svg {
    left: 14px;
    width: 16px;
    height: 16px;
  }
  .input-wrap input {
    min-height: 48px;
    padding-left: 42px;
    border-radius: 15px;
    font-size: 0.9rem;
  }
  .btn-auth {
    min-height: 50px;
    margin-top: 4px;
    font-size: 0.94rem;
  }
  .auth-footer {
    margin-top: 12px;
    font-size: 0.85rem;
  }
  .auth-notice {
    margin-top: 9px;
    font-size: 0.82rem;
  }
}
@media (min-width: 641px) and (max-height: 720px) {
  body.auth-page {
    padding-top: 14px;
    padding-bottom: 14px;
  }
  body.auth-page .saas__hp__header--auth .saas__hp__nav {
    min-height: 58px;
  }
  .auth-wrapper {
    width: min(100%, 460px);
  }
  .auth-card {
    border-radius: 28px;
  }
  .auth-header {
    padding: 18px 24px 16px;
  }
  .auth-header img {
    margin-bottom: 6px;
  }
  .auth-header h1 {
    font-size: 2.15rem;
  }
  .auth-header p {
    margin-top: 6px;
    font-size: 0.84rem;
    line-height: 1.35;
  }
  .auth-body {
    padding: 18px 24px 22px;
  }
  .form-group {
    margin-bottom: 9px;
  }
  .form-group label {
    margin-bottom: 5px;
    font-size: 0.64rem;
  }
  .input-wrap input {
    min-height: 44px;
    font-size: 0.86rem;
  }
  .btn-auth {
    min-height: 46px;
    margin-top: 2px;
    font-size: 0.9rem;
  }
  .auth-footer {
    margin-top: 8px;
    font-size: 0.82rem;
  }
  .auth-notice {
    margin-top: 7px;
    padding: 4px 12px;
    font-size: 0.8rem;
  }
}
@media (max-width: 640px) {
  body.auth-page {
    padding: 92px 12px 20px;
    justify-items: center;
    align-content: start;
  }
  .auth-card {
    border-radius: 28px;
  }
  .auth-header,
  .auth-body {
    padding-left: 22px;
    padding-right: 22px;
  }
  .auth-header {
    padding-top: 26px;
    padding-bottom: 22px;
  }
  .auth-header h1 {
    font-size: 2.15rem;
  }
  .auth-body {
    padding-top: 22px;
    padding-bottom: 24px;
  }
  .input-wrap input,
  .btn-auth {
    min-height: 54px;
  }
}
@media (max-width: 900px) {
  .auth-wrapper::before {
    top: -52px;
    right: 50%;
    transform: translateX(50%);
    width: 190px;
    height: 190px;
  }
  .auth-wrapper::after {
    left: 50%;
    bottom: -72px;
    transform: translateX(-50%);
    width: 220px;
    height: 220px;
  }
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.input-wrap input.is-invalid {
  border-color: var(--danger-14);
  background: var(--danger-08);
}
.input-wrap input.is-invalid:focus {
  border-color: var(--danger);
  box-shadow: 0 0 0 4px var(--danger-08);
}

.input-wrap:has(.password-toggle) input {
  padding-right: 48px;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 11px;
  background: transparent;
  color: var(--muted-82);
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease;
}
.password-toggle:hover {
  color: var(--text);
  background: var(--text-08);
}
.password-toggle:focus-visible {
  outline: 2px solid var(--primary-30);
  outline-offset: 1px;
}
.password-toggle svg {
  position: static;
  width: 18px;
  height: 18px;
  transform: none;
}
.password-toggle .password-toggle__eye-off {
  display: none;
}
.password-toggle.is-revealed .password-toggle__eye {
  display: none;
}
.password-toggle.is-revealed .password-toggle__eye-off {
  display: block;
}

.password-strength {
  margin-top: 11px;
}
.password-strength__bars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}
.password-strength__bars span {
  height: 5px;
  border-radius: 999px;
  background: var(--text-12);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}
.password-strength__label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 7px;
  color: var(--muted);
  font-size: 0.76rem;
  letter-spacing: 0.04em;
}
.password-strength__text {
  font-weight: 700;
  transition: color 0.3s ease;
}
.password-strength[data-level="1"] .password-strength__bars span:nth-child(-n+1) {
  background: #ef4444;
  box-shadow: 0 1px 6px rgba(239, 68, 68, 0.45);
}
.password-strength[data-level="1"] .password-strength__text {
  color: #ef4444;
}
.password-strength[data-level="2"] .password-strength__bars span:nth-child(-n+2) {
  background: #f59e0b;
  box-shadow: 0 1px 6px rgba(245, 158, 11, 0.45);
}
.password-strength[data-level="2"] .password-strength__text {
  color: #f59e0b;
}
.password-strength[data-level="3"] .password-strength__bars span:nth-child(-n+3) {
  background: #3ca1f9;
  box-shadow: 0 1px 6px rgba(60, 161, 249, 0.45);
}
.password-strength[data-level="3"] .password-strength__text {
  color: #3ca1f9;
}
.password-strength[data-level="4"] .password-strength__bars span:nth-child(-n+4) {
  background: #16a34a;
  box-shadow: 0 1px 6px rgba(22, 163, 74, 0.45);
}
.password-strength[data-level="4"] .password-strength__text {
  color: #16a34a;
}

.password-requirements {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 14px;
  margin: 11px 0 0;
  padding: 0;
  list-style: none;
}
.password-requirements li {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted-78);
  font-size: 0.78rem;
  line-height: 1.3;
  transition: color 0.2s ease;
}
.password-requirements li svg {
  flex: 0 0 auto;
  width: 15px;
  height: 15px;
  padding: 2px;
  border-radius: 50%;
  color: var(--muted-78);
  background: var(--text-08);
  transition: color 0.2s ease, background 0.2s ease;
}
.password-requirements li.is-met {
  color: var(--text);
}
.password-requirements li.is-met svg {
  color: #fff;
  background: #16a34a;
}

.form-consents {
  display: grid;
  gap: 10px;
}
.form-consents .consent-check {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin: 0;
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1.4;
  cursor: pointer;
}
.form-consents .consent-check input[type=checkbox] {
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
  margin-top: 1px;
  accent-color: var(--primary);
  cursor: pointer;
}
.form-consents .consent-check input.is-invalid {
  outline: 2px solid var(--danger);
  outline-offset: 1px;
  border-radius: 4px;
}
.form-consents .consent-check a {
  color: var(--primary);
  text-decoration: underline;
}

@media (max-width: 420px) {
  .password-requirements {
    grid-template-columns: 1fr;
  }
}
@media (min-width: 641px) and (max-height: 820px) {
  .form-row {
    gap: 10px;
  }
}
@media (min-width: 641px) and (max-height: 720px) {
  .form-row {
    gap: 8px;
  }
}
@media (max-width: 640px) {
  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
}
.account-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

a.account-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.account-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 1rem;
  border: 1.5px solid var(--text-12);
  border-radius: var(--radius-md, 18px);
  background: var(--surface-88);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  cursor: pointer;
}
.account-card:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 18px var(--primary-12);
  background: var(--surface-96);
}
.account-card:hover .account-card__arrow {
  color: var(--primary-dark);
}
.account-card__icon {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--navy), var(--primary-dark));
  color: var(--on-dark);
}
.account-card__icon svg {
  width: 20px;
  height: 20px;
}
.account-card__info {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.account-card__name {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
}
.account-card__meta {
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 0.15rem;
}
.account-card__arrow {
  flex-shrink: 0;
  color: var(--muted);
  transition: color 0.2s ease;
}
.account-card__arrow svg {
  width: 18px;
  height: 18px;
}

@media (max-width: 640px) {
  .account-card {
    padding: 0.75rem 0.9rem;
    gap: 0.75rem;
  }
  .account-card__icon {
    width: 34px;
    height: 34px;
  }
}

/*# sourceMappingURL=auth.css.map */
