*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: "Open Sans", system-ui, sans-serif;
  font-size: 16px;
  background-color: #f5f7fd;
  color: #3c4650;
}

html *,
body * {
  line-height: 1.25rem;
  font-size: 0.875rem;
}

html,
body {
  overflow-y: auto;
}

.user-auth-ui-base {
  min-height: 100vh;
  width: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-x: hidden;
}

.user-auth-ui-base.cloud-office {
  background-image: url("../assets/bg-cloud-office.svg");
}

.card-wrapper {
  flex-grow: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  inset: 0;
  padding: 1rem;
}

.card {
  width: 31rem;
  max-width: 100%;
  border-radius: 0.75rem;
  margin: auto;
  background: #fff;
  position: relative;
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
}

@media screen and (min-width: 631px) {
  .card.cloud-office {
    box-shadow: 0 55px 75px #002d3833, 0 15px 30px #002d381a;
  }
}

@media screen and (max-width: 630px) {
  .user-auth-ui-base.cloud-office {
    background-image: none;
    background-color: #fff;
  }

  .user-auth-ui-base {
    position: unset;
  }

  .card {
    top: 0;
    padding: 2rem;
    width: 100%;
    height: auto;
    border-radius: 0;
    border-bottom: 1px solid #b6bdd0;
    box-shadow: none;
  }
}

.auth-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1.5rem;
}

.auth-header .brand-logo {
  margin: 0;
  display: block;
  height: 2.375rem;
  width: auto;
  max-width: min(100%, 15.625rem);
}

@media screen and (max-width: 630px) {
  .auth-header .brand-logo {
    height: 1.875rem;
  }
}

.language-dropdown {
  min-width: 4.5rem;
}

.language-dropdown select {
  font-weight: 700;
  color: #3c4650;
  border: 1px solid transparent;
  border-radius: 0.375rem;
  padding: 0.35rem 1.75rem 0.35rem 0.5rem;
  background: #fff
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14' fill='none'%3E%3Cpath d='M7.02 10.4 1.14 4.85a.75.75 0 0 1 1.12-1L7.02 8.47l4.75-4.62a.75.75 0 1 1 1.05 1.08L7.58 10.13a1 1 0 0 1-1.56-.27z' fill='%233c4650'/%3E%3C/svg%3E")
    no-repeat right 0.35rem center;
  appearance: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.25;
}

.language-dropdown select:focus-visible {
  outline: 1px solid #218fed;
  outline-offset: 2px;
}

.toggle {
  margin: 1.5rem 0;
  align-self: center;
  width: 100%;
}

.toggle-container {
  display: flex;
  width: auto;
  position: relative;
  background: #fafafa;
  padding: 0.5rem;
  box-shadow: 0 0 7.945px #0000000f inset;
  border-radius: 50px;
  height: 3.125rem;
  overflow: hidden;
}

.toggle-container button {
  flex: 1;
  position: relative;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  font-family: "Open Sans", sans-serif;
  font-size: 0.813rem;
  font-weight: 700;
  color: gray;
  background: transparent;
  z-index: 2;
  transition: color 0.3s ease;
  padding: 0.2rem;
}

.toggle-container button.active {
  color: #fff;
}

.toggle-container .slider {
  position: absolute;
  top: 0.5rem;
  bottom: 0.5rem;
  left: 0.5rem;
  width: calc(50% - 0.5rem);
  background: #3c4650;
  border-radius: 50px;
  transition: transform 0.3s ease-in-out;
  z-index: 1;
}

.toggle-container .slider.right {
  transform: translate(100%);
}

@media screen and (max-width: 630px) {
  .toggle-container {
    height: 2.9rem;
    display: flex;
    align-items: center;
  }

  .toggle-container button {
    font-size: 0.69rem;
    font-weight: 600;
  }

  .toggle-container .slider {
    width: calc(50% - 0.5rem);
    height: calc(100% - 0.8rem);
    top: 0.4rem;
    bottom: 0.4rem;
    left: 0.5rem;
  }
}

.heading {
  font-weight: 600;
  font-size: 1.3rem;
  font-style: normal;
  line-height: 130%;
  text-align: left;
  padding-bottom: 1rem;
  margin: 1.5rem 0 0;
}

.login-group {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-top: 1.25rem;
}

.form-input-field {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.p-inputgroup {
  display: flex;
  align-items: stretch;
  width: 100%;
}

.p-inputgroupaddon {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  background: #fff;
  color: #636b73;
  border: 1px solid #e2e8f2;
  border-inline-end: 0;
  min-width: 2.5rem;
  border-radius: 0.375rem 0 0 0.375rem;
}

.p-inputgroupaddon .icon-btn {
  background: none;
  border: none;
  padding: 0;
  cursor: default;
  width: 1.1875rem;
  height: 1.1875rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.p-inputgroupaddon .icon-btn svg {
  width: 100%;
  height: 100%;
}

.float-wrap {
  position: relative;
  flex: 1;
  min-width: 0;
}

.float-wrap input {
  width: 100%;
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.25;
  color: #616161;
  background: #fff;
  padding: 0.75rem 0.75rem;
  min-height: 2.75rem;
  border: 1px solid #e2e8f2;
  border-radius: 0 0.375rem 0.375rem 0;
  box-shadow: 0 1px 2px 0 rgba(18, 18, 23, 0.05);
  outline: none;
  transition: border-color 0.2s, padding 0.2s ease;
}

.float-wrap:focus-within input,
.float-wrap input:not(:placeholder-shown) {
  padding: 1.25rem 0.75rem 0.5rem;
}

.float-wrap input:hover {
  border-color: #bbc3cf;
}

.float-wrap input:focus {
  border-color: #218fed;
  outline: 1px solid #218fed;
  outline-offset: 0;
}

.float-wrap label {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  z-index: 1;
  transform: translateY(-50%);
  font-size: 1rem;
  font-weight: 400;
  color: #828c9c;
  pointer-events: none;
  line-height: 1.25;
  transition: top 0.2s ease, transform 0.2s ease, font-size 0.2s ease, color 0.2s ease, background-color 0.2s ease;
  transform-origin: left center;
}

.float-wrap:focus-within label,
.float-wrap input:not(:placeholder-shown) + label {
  top: 0;
  transform: translateY(-50%);
  font-size: 0.75rem;
  background-color: #fff;
  padding: 0 0.125rem;
}

.float-wrap input:not(:placeholder-shown) + label {
  color: #828c9c;
}

.float-wrap:focus-within label {
  color: #218fed;
}

.password-field .input-wrapper {
  position: relative;
}

.float-wrap--password input {
  padding-right: 2.5rem;
  border-radius: 0 0.375rem 0.375rem 0;
}

.float-wrap--password .visible-btn {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  z-index: 2;
  transform: translateY(-50%);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  width: 1.1875rem;
  height: 1.1875rem;
  z-index: 2;
}

.float-wrap--password .visible-btn img,
.float-wrap--password .visible-btn svg {
  width: 100%;
  height: 100%;
  display: block;
}

.checkbox {
  align-self: start;
  display: flex;
  gap: 0.75rem;
  padding-bottom: 0.375rem;
  align-items: center;
}

.checkbox input[type="checkbox"] {
  width: 1rem;
  height: 1rem;
  accent-color: #218fed;
  cursor: pointer;
}

.checkbox label {
  cursor: pointer;
  user-select: none;
}

.button-wrap {
  padding-bottom: 3rem;
}

.btn-login {
  width: 100%;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 500;
  padding: 0.625rem 0.875rem;
  border-radius: 0.375rem;
  border: 1px solid #218fed;
  background: #218fed;
  color: #fff;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, opacity 0.2s;
}

.btn-login:hover:not(:disabled) {
  background: #137cd7;
  border-color: #137cd7;
}

.btn-login:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.links {
  display: flex;
  flex-direction: column;
  width: auto;
  gap: 0.5rem;
  text-align: center;
}

.links a {
  text-decoration: none;
  color: #218fed;
  font-size: 0.75rem;
  letter-spacing: 0.008rem;
}

.links a:hover {
  text-decoration: underline;
}

.footer {
  display: grid;
  z-index: 1000;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-top: auto;
}

.footer.padding-big {
  padding: 2rem 1rem;
}

.footer .base {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  column-gap: 2.5rem;
  row-gap: 1rem;
}

@media screen and (min-width: 900px) {
  .footer .base {
    flex-direction: row;
  }
}

.footer .address {
  font-size: 0.75rem;
  text-align: center;
}

.footer .links-row {
  text-align: center;
  font-size: 0.75rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.footer.cloud-office,
.footer.cloud-office a {
  color: #fff;
}

.footer.cloud-office a {
  text-decoration: none;
}

.footer.cloud-office a:hover {
  text-decoration: underline;
}

@media screen and (max-width: 630px) {
  .footer.padding-big {
    padding: 2rem;
  }

  .footer.cloud-office,
  .footer.cloud-office a {
    color: #3c4650;
  }
}
