@import url("/css/login.css");

.register-page {
  height: 100vh;
  min-height: 0;
  overflow: hidden;
}

.register-page .login-visual {
  position: relative;
}

.register-panel {
  height: 100vh;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  padding-top: 18px;
  padding-bottom: 18px;
}

.register-container {
  max-width: 560px;
}

.register-brand {
  margin-bottom: 14px;
}

.register-brand .login-brand__logo {
  width: 140px;
  margin-bottom: 6px;
}

.register-brand h2 {
  font-size: 20px;
  line-height: 26px;
}

.register-card {
  min-height: 0;
  gap: 4px;
  padding: 20px 24px 22px;
}

.register-card .login-card__header h3 {
  font-size: 17px;
  line-height: 22px;
}

.register-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 14px;
}

.register-form .form-field {
  gap: 6px;
}

.register-form .form-field > span:first-child,
.register-password-field__head label,
.register-password-field__head label span {
  font-size: 11px;
  line-height: 14px;
  font-weight: 600;
  letter-spacing: 0.6px;
  color: #41484c;
}

.register-status:not(.is-error) {
  border-color: #bbf7d0;
  background: #f0fdf4;
  color: #15803d;
}

.register-form .input-shell,
.register-form .input-shell input,
.custom-select__button {
  height: 42px;
}

.register-form .input-shell input,
.custom-select__button {
  padding-top: 11px;
  padding-bottom: 11px;
}

.register-form .form-field:first-child,
.register-password-field,
.register-submit,
.register-form-footer {
  grid-column: 1 / -1;
}

.register-password-field > label {
  display: block;
}

.register-password-field__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.register-password-field__head label {
  display: block;
}

.register-password-generate {
  border: 0;
  background: transparent;
  color: #306177;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  padding: 0;
  margin: 0;
  text-decoration: none;
}

.register-password-generate:hover {
  color: #244a5a;
  text-decoration: none;
}

.register-password-rules {
  list-style: none;
  margin: 6px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px 12px;
}

.register-password-rules li {
  position: relative;
  padding-left: 18px;
  font-size: 11px;
  line-height: 1.35;
  color: #667085;
}

.register-password-rules li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.35em;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1.5px solid #d0d5dd;
  background: transparent;
  box-sizing: border-box;
}

.register-password-rules li.is-ok {
  color: #15803d;
}

.register-password-rules li.is-ok::before {
  content: '✓';
  border: 0;
  border-radius: 0;
  width: auto;
  height: auto;
  top: 0;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
  color: #22c55e;
  background: transparent;
}

.register-password-rules li.is-fail {
  color: #b42318;
}

.register-password-rules li.is-fail::before {
  border-color: #f04438;
  background: #f04438;
}

.register-password-hint {
  margin: 6px 0 0;
  font-size: 12px;
  line-height: 1.35;
  color: #b42318;
}

.register-form .input-shell input {
  padding-right: 16px;
  padding-left: 16px;
}

.register-form .input-shell--icon input {
  padding-left: 48px;
}


.register-form .custom-select--icon .custom-select__button {
  padding-left: 48px;
}

.register-form .custom-select--icon .input-icon {
  position: absolute;
  top: 50%;
  left: 16px;
  z-index: 1;
  width: 17px;
  height: 18px;
  transform: translateY(-50%);
  pointer-events: none;
}

.register-submit {
  height: 46px;
  margin-top: 2px;
}

.register-form-footer {
  margin-top: 0;
  gap: 10px;
  padding-top: 14px;
}

.register-form-footer .forgot-password-link {
  padding-top: 4px;
  padding-bottom: 4px;
}

.register-footer {
  margin-top: 10px;
}

@media (max-width: 1100px) {
  .register-page {
    height: auto;
    min-height: 100svh;
    overflow: visible;
  }

  .register-page .login-visual {
    position: static;
  }

  .register-panel {
    height: auto;
    min-height: 100svh;
    overflow: visible;
    padding-top: 28px;
    padding-bottom: 24px;
  }
}

@media (max-width: 560px) {
  .register-page {
    height: 100svh;
    min-height: 0;
    overflow: hidden;
  }

  .register-panel {
    height: 100svh;
    min-height: 0;
    overflow: hidden;
    padding: 12px 14px;
  }

  .register-container {
    max-width: 440px;
  }

  .register-brand {
    margin-bottom: 8px;
  }

  .register-brand .login-brand__logo {
    width: 112px;
    margin-bottom: 4px;
  }

  .register-brand h2 {
    font-size: 17px;
    line-height: 22px;
  }

  .register-card {
    gap: 8px;
    padding: 12px 14px;
  }

  .register-card .login-card__header h3 {
    font-size: 15px;
    line-height: 20px;
  }

  .register-form {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .register-form .form-field {
    gap: 3px;
  }

  .register-form .form-field > span:first-child {
    font-size: 10px;
    line-height: 12px;
  }

  .register-form .input-shell,
  .register-form .input-shell input,
  .custom-select__button {
    height: 34px;
  }

  .register-form .input-shell input,
  .custom-select__button {
    padding-top: 8px;
    padding-bottom: 8px;
    font-size: 12px;
    line-height: 16px;
  }

  .register-form .input-shell input {
    padding-right: 12px;
    padding-left: 12px;
  }

  .register-form .input-shell--icon input {
    padding-left: 40px;
  }

  .register-form .custom-select--icon .custom-select__button {
    padding-left: 40px;
  }

  .register-form .input-icon {
    left: 14px;
    width: 14px;
    height: 15px;
  }

  .register-form .custom-select--icon .input-icon {
    left: 14px;
    width: 14px;
    height: 15px;
  }

  .register-form .password-toggle {
    right: 14px;
    width: 16px;
    height: 16px;
  }

  .register-form .password-toggle__icon {
    width: 16px;
    height: 16px;
  }

  .register-submit {
    height: 36px;
    font-size: 12px;
    line-height: 16px;
  }

  .register-submit svg {
    width: 10px;
    height: 10px;
  }

  .register-form-footer {
    gap: 5px;
    padding-top: 8px;
  }

  .register-form-footer .forgot-password-link {
    padding: 0 8px;
    font-size: 11px;
    line-height: 16px;
  }

  .register-form-footer .signup-prompt {
    font-size: 11px;
    line-height: 16px;
  }

  .register-footer {
    margin-top: 6px;
    font-size: 10px;
    line-height: 12px;
  }

  .register-page .auth-floating-actions,
  .register-page .support-popover {
    display: none;
  }
}
