/* ===== 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, 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;
}
.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 .div-2 {
  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);
}

.screen .field-error {
  display: none;
  font-family: "Inter", sans-serif;
  font-size: 13px;
  color: #ef4444;
}
.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 .checkbox-label { cursor: pointer; }

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

.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 .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;
  transition: background-color .15s, transform .05s;
  font: inherit;
}
.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 {
  font-family: "Inter", sans-serif;
  font-weight: 700;
  color: #ffffff;
  font-size: 16px;
}

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

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

.screen .div-3 {
  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;
  transition: background-color .15s, border-color .15s;
  font: inherit;
}
.screen .div-3: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 {
  width: 20px;
  height: 20px;
  position: relative;
  flex-shrink: 0;
}
.screen .github .vector {
  position: absolute;
  width: 94.17%;
  height: 94.17%;
  top: 5.83%;
  left: 5.83%;
}

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

/* ---------- Нижняя ссылка ---------- */
.screen .div-4 {
  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-12 {
  color: #2563eb;
  text-decoration: none;
}
.screen .text-wrapper-12: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; }
}
