/* ============================================
   LULU WORK - Страница авторизации
   ============================================ */

/* ----------------------------------------
   1. Переменные и базовые настройки
   ---------------------------------------- */
:root {
  --color-neutral-800: #454545;
  --color-neutral-500: #737373;
  --color-neutral-300: #b0b0b0;
  --color-brown: #a38881;
  --color-blue: #43acff;
  --color-dark: #323130;
  --color-black: #373737;
  --color-white: #ffffff;
  --color-yandex-red: #fc3f1d;
  
  --font-primary: 'Raleway', sans-serif;
  --font-secondary: 'Plus Jakarta Sans', sans-serif;
  
  --border-radius-sm: 12px;
  --border-radius-lg: 100px;
  
  --transition-fast: 0.2s ease;
  --transition-normal: 0.5s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ----------------------------------------
   2. Анимации
   ---------------------------------------- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

input {
    background: transparent;
    border: none;           
    outline: none;          
    width: 100%;            
    height: 100%;           
    padding: 0;             
    appearance: none;       
    box-shadow: none;       
}

/* ----------------------------------------
   3. Основная структура страницы
   ---------------------------------------- */
.page-wrapper {
  background-color: var(--color-white);
  min-height: 100vh;
  display: grid;
  place-items: center;
}

.page-container {
  background-color: var(--color-white);
  width: 100%;
  min-width: 100%;
  max-width: 100%;
  min-height: 100%;
  max-height: 100%;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}

/* ----------------------------------------
   4. Правая панель (коричневый фон)
   ---------------------------------------- */
.right-panel {
  background-color: var(--color-brown);
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 50vw;
  height: 100%;
  position: absolute;
  top: 0;
  left: 50vw;
}

.lulu-work-title {
  position: relative;
  color: #b8e3ef;
  font-family: var(--font-primary);
  font-size: 100px;
  font-weight: 700;
  line-height: 24px;
  top: 45%;
  animation: slideInRight 1s var(--transition-normal) 0.5s both;
}

/* ----------------------------------------
   5. Логотип (левый верхний угол)
   ---------------------------------------- */
.logo-container {
  display: flex;
  align-items: center;
  gap: 10px;
  position: absolute;
  top: 10px;
  left: 20px;
  animation: slideInLeft 0.8s var(--transition-normal) 0.3s both;
}

.logo-icon-wrapper {
  background-color: #303030;
  border-radius: var(--border-radius-lg);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  padding: 5px 0 5px 5px;
}

.logo-icon {
  border-radius: 20px;
  width: 22px;
  height: 22px;
  overflow: hidden;
}

.logo-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.logo-text-container {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.logo-title {
  color: #303030;
  font-family: var(--font-primary);
  font-size: 10px;
  font-weight: 700;
  line-height: 10px;
}

.logo-subtitle {
  color: #303030;
  font-family: var(--font-primary);
  font-size: 10px;
  font-weight: 500;
  line-height: 10px;
}

.main-div {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 50vw;
  gap: 15px;
  margin-top: 20px;
  padding-top: 9vw;
}

/* ----------------------------------------
   6. Заголовок страницы
   ---------------------------------------- */
.page-title {
  text-align: left;
  color: #000;
  font-family: var(--font-primary);
  font-size: 28px;
  font-weight: 600;
  line-height: 24px;
}

/* ----------------------------------------
   7. Кнопка Google
   ---------------------------------------- */
.google-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background-color: var(--color-white);
  border: 1px solid var(--color-black);
  border-radius: var(--border-radius-sm);
  width: 100%;
  max-width: 392px;
  height: 45.2px;
  cursor: pointer;
  position: relative;
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.google-btn:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 12px 30px rgba(63, 62, 62, 0.5);
}

.google-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
}

.google-btn-text {
  color: var(--color-dark);
  font-family: var(--font-primary);
  font-size: 14px;
  font-weight: 700;
  line-height: 150%;
}

/* ----------------------------------------
   8. Кнопка Яндекс
   ---------------------------------------- */
.yandex-btn-container {
  width: 100%;
  max-width: 392px;
  height: 45.2px;
  animation: fadeInUp 0.8s var(--transition-normal) 0.2s both;
}

.yandex-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #000;
  border: 1px solid var(--color-black);
  border-radius: var(--border-radius-sm);
  width: 100%;
  max-width: 392px;
  height: 45.2px;
  cursor: pointer;
  position: relative;
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.yandex-btn:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 12px 30px rgba(43, 40, 40, 0.5);
}

.yandex-btn-content {
  display: flex;
  align-items: center;
  gap: 6px;
  position: absolute;
  top: 11.1px;
  left: calc(50% - 77.6px);
}

.yandex-icon {
  background-color: var(--color-yandex-red);
  border-radius: 1000px;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.yandex-icon svg {
  width: 37.5%;
  height: 54.2%;
}

.yandex-btn-text {
  color: var(--color-white);
  font-family: var(--font-primary);
  font-size: 14px;
  font-weight: 600;
  line-height: 150%;
}

/* ----------------------------------------
   9. Разделитель "Или"
   ---------------------------------------- */
.separator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  max-width: 392px;
  height: 16px;
  position: relative;
  animation: fadeInUp 0.8s var(--transition-normal) 0.2s both;
}

.separator-line {
  border: 0 solid var(--color-brown);
  border-top-width: 0.5px;
  flex-grow: 1;
  flex-basis: 0;
  width: 100%;
  height: 0.5px;
  margin: -0.5px 0 0;
}

.separator-text {
  color: var(--color-dark);
  font-family: var(--font-primary);
  font-size: 12px;
  font-weight: 600;
  line-height: 140%;
  flex-shrink: 0;
}

/* ----------------------------------------
   10. Форма входа
   ---------------------------------------- */
.login-form {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  width: 100%;
  max-width: 390px;
  padding: 0;
  position: relative;
  animation: fadeInUp 0.8s var(--transition-normal) 0.3s both;
}

/* Группа поля ввода */
.input-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
}

.input-label-container {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
}

.input-label-info {
  display: flex;
  align-items: flex-start;
  gap: 4px;
}

.input-label {
  color: var(--color-dark);
  font-family: var(--font-primary);
  font-size: 14px;
  font-weight: 700;
  line-height: 150%;
}

.input-field {
  display: flex;
  align-items: center;
  gap: 4px;
  background-color: var(--color-white);
  border: 1px solid var(--color-black);
  border-radius: var(--border-radius-sm);
  width: 100%;
  height: 52px;
  padding: 15px;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.input-field:hover {
  border-color: var(--color-brown);
  box-shadow: 0 0 8px rgba(163, 136, 129, 0.3);
}

@keyframes shake-horizontal {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-6px); }
  40% { transform: translateX(6px); }
  60% { transform: translateX(-6px); }
  80% { transform: translateX(6px); }
}

/* Создаем класс, который будем «вешать» на div через JS */
.error-shake {
  border-color: red !important; /* Принудительно красим в красный */
  animation: shake-horizontal 0.4s ease-in-out;
}

.input-field-content {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-grow: 1;
  flex-basis: 0;
  width: 100%;
}

.input-field-text {
  flex-grow: 1;
  flex-basis: 0;
  width: 100%;
  color: var(--color-neutral-800);
  font-family: var(--font-primary);
  font-size: 14px;
  font-weight: 700;
  line-height: 150%;
}

.input-field-text.placeholder {
  color: var(--color-neutral-500);
  font-weight: 400;
}

.input-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
}

.input-icon svg {
  width: 100%;
  height: 100%;
}

.input-icon svg path {
  stroke: var(--color-neutral-300);
  stroke-width: 2px;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.eye-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
}

.eye-icon svg path {
  stroke: var(--color-neutral-300);
  stroke-width: 2px;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ----------------------------------------
   11. Кнопки действий (CTA)
   ---------------------------------------- */
.cta-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: 100%;
  max-width: 390px;
  padding: 0;
  position: relative;
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.submit-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-brown);
  border: none;
  border-radius: var(--border-radius-sm);
  width: 100%;
  padding: 12px 24px;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.submit-btn:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 12px 30px rgba(63, 62, 62, 0.5);
}

.submit-btn-text {
  color: var(--color-white);
  font-family: var(--font-primary);
  font-size: 16px;
  font-weight: 700;
  line-height: 150%;
}

.register-btn {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  text-align: center;
}

.register-btn-text {
  color: var(--color-dark);
  font-family: var(--font-secondary);
  font-size: 14px;
  font-weight: 400;
  line-height: 150%;
}

.register-btn-text .highlight {
  color: var(--color-blue);
  font-weight: 700;
}

/* ----------------------------------------
   12. Утилиты
   ---------------------------------------- */
.pointer-events-none {
  pointer-events: none;
}

.text {
  white-space: pre-wrap;
  overflow-wrap: break-word;
}
