/* ===== LangExchange — стили страницы регистрации (и входа) ===== */

/* ---------- Корневой контейнер ---------- */
.screen {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  align-items: flex-start;
  position: relative;
  background-color: #f9fafb;
  font-family: "Inter", "Inter-Regular", system-ui, -apple-system, sans-serif;
}

/* ---------- Шапка ---------- */
.screen .view {
  display: flex;
  height: 80px;
  align-items: center;
  justify-content: space-between;
  padding: 0 56px;
  align-self: stretch;
  width: 100%;
  box-sizing: border-box;
  background-color: #ffffff;
  border-bottom: 1px solid #e5e7eb;
}

.screen .div {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  position: relative;
}
.screen .logo-link {
  text-decoration: none;
  color: inherit;
}

.screen .div-wrapper {
  display: flex;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  background-color: #2563eb;
  border-radius: 12px;
}

.screen .text-wrapper {
  font-family: "Inter", sans-serif;
  font-weight: 400;
  color: #ffffff;
  font-size: 18px;
}

.screen .text-wrapper-2 {
  font-family: "Inter", sans-serif;
  font-weight: 400;
  color: #111827;
  font-size: 20px;
  white-space: nowrap;
}

.screen .text-wrapper-3 {
  font-family: "Inter", sans-serif;
  font-weight: 600;
  color: #2563eb;
  font-size: 14px;
  text-decoration: none;
}
.screen .text-wrapper-3:hover {
  text-decoration: underline;
}

/* ---------- Область с карточкой ---------- */
.screen .view-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 64px 16px 80px;
  align-self: stretch;
  width: 100%;
  box-sizing: border-box;
}

.screen .view-2 {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 480px;
  align-items: flex-start;
  gap: 24px;
  padding: 48px 40px;
  background-color: #ffffff;
  border-radius: 20px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 16px 40px -8px rgba(17, 24, 39, 0.08);
  box-sizing: border-box;
}

.screen .view-3 {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  align-self: stretch;
  width: 100%;
}

.screen .text-wrapper-4 {
  align-self: stretch;
  margin: 0;
  font-family: "Inter", sans-serif;
  font-weight: 400;
  color: #111827;
  font-size: 32px;
  text-align: center;
  line-height: 1.2;
}

.screen .p {
  align-self: stretch;
  margin: 0;
  font-family: "Inter", sans-serif;
  font-weight: 400;
  color: #4b5563;
  font-size: 16px;
  text-align: center;
  line-height: 1.5;
}

/* ---------- Форма ---------- */
.screen .view-4 {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  align-self: stretch;
  width: 100%;
}

/* Строка Имя + Фамилия */
.screen .view-5 {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  align-self: stretch;
  width: 100%;
}

.screen .div-2 {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  position: relative;
  flex: 1;
  min-width: 0;
}

.screen .div-3 {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  align-self: stretch;
  width: 100%;
}

.screen .text-wrapper-5 {
  font-family: "Inter", sans-serif;
  font-weight: 400;
  color: #111827;
  font-size: 14px;
}

/* ---------- Поля ввода ---------- */
.screen .field {
  width: 100%;
  height: 52px;
  padding: 0 16px;
  font-family: "Inter", sans-serif;
  font-size: 16px;
  color: #111827;
  background-color: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  outline: none;
  box-sizing: border-box;
  transition: border-color .15s, box-shadow .15s;
}
.screen .field::placeholder {
  color: #6b7280;
}
.screen .field:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}
.screen .field.is-error {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.12);
}

/* Select */
.screen .field-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 44px;
  cursor: pointer;
}

/* Сообщение об ошибке поля */
.screen .field-error {
  display: none;
  font-family: "Inter", sans-serif;
  font-size: 13px;
  color: #ef4444;
  line-height: 1.35;
}
.screen .field-error.is-visible {
  display: block;
}

/* ---------- Чекбокс "Запомнить меня" / согласие ---------- */
.screen .view-6 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  align-self: stretch;
  width: 100%;
}

.screen .view-7 {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
}

.screen .view-16 {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-self: stretch;
  width: 100%;
}

.screen .view-16 .checkbox-label,
.screen .checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
}

.screen .checkbox-input {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: #2563eb;
  flex-shrink: 0;
  cursor: pointer;
}

.screen .text-wrapper-7 {
  font-family: "Inter", sans-serif;
  font-weight: 400;
  color: #4b5563;
  font-size: 14px;
  line-height: 1.45;
}

.screen .text-wrapper-8 {
  font-family: "Inter", sans-serif;
  font-weight: 400;
  color: #2563eb;
  font-size: 14px;
  text-decoration: none;
  white-space: nowrap;
}
.screen .text-wrapper-8:hover {
  text-decoration: underline;
}

.screen .text-wrapper-10 {
  font-family: "Inter", sans-serif;
  font-weight: 400;
  color: #4b5563;
  font-size: 14px;
  line-height: 1.45;
}

/* ---------- Индикатор надёжности пароля ---------- */
.screen .pw-strength {
  display: flex;
  gap: 6px;
  align-self: stretch;
  width: 100%;
  margin-top: 2px;
}
.screen .pw-strength span {
  flex: 1;
  height: 4px;
  background-color: #e5e7eb;
  border-radius: 2px;
  transition: background-color .2s;
}
.screen .pw-strength[data-level="1"] span:nth-child(1) {
  background-color: #ef4444;
}
.screen .pw-strength[data-level="2"] span:nth-child(-n+2) {
  background-color: #f59e0b;
}
.screen .pw-strength[data-level="3"] span:nth-child(-n+3) {
  background-color: #eab308;
}
.screen .pw-strength[data-level="4"] span {
  background-color: #10b981;
}

.screen .pw-strength-text {
  font-family: "Inter", sans-serif;
  font-size: 12px;
  color: #4b5563;
  margin-top: -2px;
}

/* ---------- Основная кнопка ---------- */
.screen .div-wrapper-2 {
  display: flex;
  height: 52px;
  align-items: center;
  justify-content: center;
  align-self: stretch;
  width: 100%;
  background-color: #2563eb;
  border: 0;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.18);
  cursor: pointer;
  font: inherit;
  transition: background-color .15s, transform .05s;
}
.screen .div-wrapper-2:hover {
  background-color: #1d4ed8;
}
.screen .div-wrapper-2:active {
  transform: translateY(1px);
}
.screen .div-wrapper-2:disabled {
  background-color: #93b4f7;
  cursor: not-allowed;
  box-shadow: none;
}

.screen .text-wrapper-9,
.screen .text-wrapper-11 {
  font-family: "Inter", sans-serif;
  font-weight: 700;
  color: #ffffff;
  font-size: 16px;
}

/* ---------- Разделитель ---------- */
.screen .view-9,
.screen .view-18 {
  display: flex;
  align-items: center;
  gap: 12px;
  align-self: stretch;
  width: 100%;
}
.screen .view-10,
.screen .view-19 {
  flex: 1;
  height: 1px;
  background-color: #e5e7eb;
}
.screen .text-wrapper-12 {
  font-family: "Inter", sans-serif;
  font-weight: 400;
  color: #6b7280;
  font-size: 14px;
}

/* ---------- Соц-кнопки ---------- */
.screen .view-11,
.screen .view-20 {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-self: stretch;
  width: 100%;
}

.screen .div-3 .div-3 {
  gap: 8px;
}

.screen .div-4 {
  display: flex;
  height: 52px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  align-self: stretch;
  width: 100%;
  background-color: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  cursor: pointer;
  font: inherit;
  transition: background-color .15s, border-color .15s;
}
.screen .div-4:hover {
  background-color: #f9fafb;
  border-color: #d1d5db;
}

.screen .google-icon {
  position: relative;
  width: 20px;
  height: 20px;
  background-color: #4285f4;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
}
.screen .google-icon .o {
  position: absolute;
  top: 6px;
  left: 6px;
  width: 8px;
  height: 8px;
  background: #ea4335;
  border-radius: 4px;
}
.screen .google-icon .o-2 {
  position: absolute;
  top: 12px;
  left: 6px;
  width: 8px;
  height: 8px;
  background: #fbbc05;
  border-radius: 4px;
}
.screen .google-icon .g {
  position: absolute;
  top: 6px;
  left: 12px;
  width: 8px;
  height: 8px;
  background: #34a853;
  border-radius: 4px;
}

.screen .github {
  position: relative;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}
.screen .github .vector,
.screen .github .img {
  position: absolute;
  width: 94.17%;
  height: 94.17%;
  top: 5.83%;
  left: 5.83%;
}

.screen .text-wrapper-7 {
  font-family: "Inter", sans-serif;
  font-weight: 400;
  color: #111827;
  font-size: 16px;
  white-space: nowrap;
}

/* ---------- Нижняя ссылка ---------- */
.screen .div-4 + .div-4 {
  margin-top: 0;
}

.screen .div-5 {
  align-self: stretch;
  margin: 0;
  font-family: "Inter", sans-serif;
  font-weight: 400;
  font-size: 14px;
  text-align: center;
}
.screen .span {
  color: #4b5563;
}
.screen .text-wrapper-13 {
  color: #2563eb;
  text-decoration: none;
}
.screen .text-wrapper-13:hover {
  text-decoration: underline;
}

/* ---------- Уведомление ---------- */
.lx-toast {
  position: fixed;
  left: 50%;
  bottom: 32px;
  transform: translate(-50%, 20px);
  background: #111827;
  color: #fff;
  padding: 12px 20px;
  border-radius: 12px;
  font-family: "Inter", sans-serif;
  font-weight: 600;
  font-size: 14px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s, transform .2s;
  z-index: 9999;
}
.lx-toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}
.lx-toast.is-success {
  background: #10b981;
}

/* ---------- Адаптив ---------- */
@media (max-width: 640px) {
  .screen .view {
    padding: 0 20px;
    height: 68px;
  }
  .screen .text-wrapper-2 {
    font-size: 18px;
  }
  .screen .view-wrapper {
    padding: 32px 16px 48px;
  }
  .screen .view-2 {
    padding: 32px 22px;
    border-radius: 16px;
    gap: 20px;
  }
  .screen .text-wrapper-4 {
    font-size: 26px;
  }
  .screen .p {
    font-size: 15px;
  }
  .screen .view-5 {
    flex-direction: column;
    gap: 18px;
  }
  .screen .text-wrapper-7 {
    font-size: 15px;
  }
  .screen .div-4 {
    height: 48px;
  }
}
