.wrapper {
  width: 100%;
  height: 100%;

  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.locale-dropdown {
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
}

.locale-dropdown-control {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;

  width: 100%;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 4px;
  border: 1px solid transparent;
  color: var(--color-text);
  background: var(--color-surface-light);
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.locale-dropdown-control:hover {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 2px rgba(var(--color-primary-rgb), 0.2);
}

.locale-dropdown ul {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  max-height: 0;
  overflow-y: auto;
  padding: 6px 0;
  border-radius: 4px;
  background: #ffffff;
  box-shadow: 0px 9px 28px 8px rgba(0, 0, 0, .05);
  z-index: 10;

  opacity: 0;
  transform: translateY(-10px);
  transition:
          max-height 0.3s ease,
          opacity 0.3s ease,
          transform 0.3s ease;
}

.locale-dropdown ul li a {
  display: block;
  padding: 8px 12px;
  white-space: nowrap;
  color: inherit;
}

.locale-dropdown ul li a:hover {
  background-color: var(--color-surface-light);
}

.locale-dropdown.open ul {
  max-height: 260px;
  opacity: 1;
  transform: translateY(0);
}

.arrow {
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid var(--color-text);
  transition: transform 0.3s ease;
}

.phoneBlock {
  display: flex;
  flex-direction: column;

  padding: 4px 20px;
  border-radius: 8px;
  text-decoration: none;
  color: initial;
}

.phoneBlock:hover {
  text-decoration: none;
  color: initial;
}

.phone {
  text-wrap: nowrap;
  color: rgba(0, 0, 0, 0.85);
  font-family: Roboto, sans-serif;
  font-weight: 500;
  font-size: 30px;
  line-height: 40px;
  text-decoration: none;
}

.header {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 16px 48px;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.06)
}

.header-content {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
}

.container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.main-wrapper {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 64px;
}

/* footer */
.footer {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: 100px;

  width: 100%;
  padding: 16px 48px;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.06)
}

.policies {
  color: #00000073;
  max-width: 700px;
}

.policies-link {
  color: #000000D9;
}

.copyright {
  text-wrap: nowrap;
}

.form-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;

  width: 460px;
  padding: 32px;

  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 16px;

  background: var(--color-surface);
}

.form-title {
  font-family: Roboto, sans-serif;
  font-weight: 500;
  font-size: 20px;
  line-height: 28px;
  text-align: center;
}

.form-fields {
  display: flex;
  flex-direction: column;

  gap: 16px;
}

.login-utils {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;

  margin: 24px 0 24px;
}

.buttons-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.register-btns {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 24px;
  justify-content: center;
  align-items: center;
}

.haveAccount {
  text-align: center;
}

.alert-wrapper {
  position: fixed;
  top: 128px;
  left: 32px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.alert {
  padding: 12px 18px;
  border-radius: 8px;
  font-size: 1rem;
  color: var(--color-text);
  background: var(--color-surface);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.5rem;
}

.alert svg {
  width: 16px;
  height: 16px;
}

@media (max-width: 1330px) {
  .main-wrapper {
    max-width: 100%;
    overflow-x: hidden;
    flex-direction: column-reverse;
    gap: 32px;

  }

  .main-wrapper > img {
    width: 100%;
  }

  .policies {
    font-size: 12px;
    color: #00000073;
  }

  .form-wrapper {
    width: 100%;
    padding: 24px;
  }

  .footer {
    gap: 32px;
    padding: 24px;
  }

  .header {
    flex-direction: row;
    align-items: center;
    gap: 16px;
    padding: 24px;
  }

  .locales {
    justify-content: flex-start;
    gap: 12px;
  }

  .locale {
    padding: 6px 12px;
    font-size: 13px;
  }

  .alert {
    right: 16px;
    left: 16px;
    top: 80px;
  }

  .phone {
    font-size: 24px;
    line-height: 32px;
  }

  .custom-showpasswd {
    right: 16px;
  }

  .btn {
    font-size: 14px;
    padding: 10px 16px;
  }
}


@media screen and (max-width: 768px) {
  .wrapper {
    background: #ffffff;
    justify-content: flex-start;
  }

  .header {
    flex-direction: row;
    align-items: center;
    gap: 16px;
    padding: 8px 16px;
  }

  .phoneWrapper {
    display: flex;
    flex-direction: column;
  }

  .phoneBlock {
    display: flex;
    align-items: center;
    flex-direction: row;
    padding: 4px 16px;
    gap: 8px;

    background: #daf2ed;
  }

  .phone {
    font-size: 16px;
    line-height: 24px;
  }

  .phoneText {
    font-size: 10px;
    text-decoration: none;
  }

  .mobile-logo {
    width: 40px;
  }

  .container {
    align-self: center;
    max-width: 400px;
    margin-top: 24px;
  }

  .main-wrapper {
    padding: 16px;
    gap: 16px;
    width: 100%;
  }

  .form-wrapper {
    padding: 16px;
    min-width: unset;
    border: none;
  }

  .footer {
    padding: 8px 16px;
  }

  .mobile-policies {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 4px;

    font-weight: 400;
    font-size: 12px;
    line-height: 20px;
    text-decoration: underline;
    color: #00000073;
  }

  .mobile-footer {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;

    padding: 0 16px 0;
  }

  .locale-dropdown ul {
    top: unset;
    bottom: 100%;
    transform: translateY(10px);
  }

  .alert-wrapper {
    top: 72px;
    left: 12px;
    right: 12px;
  }

  .alert {
    font-size: 0.75rem;
    padding: 6px 8px;
  }
}