/* Основное */
body {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Логотип */
.logo-container {
    margin-bottom: 40px;
    text-align: center;
}

.logo {
    max-width: 400px;
    width: 100%;
    height: auto;
}

@media (max-width: 600px) {
    .logo {
        max-width: 100%; /* Занимает всю доступную ширину */
        width: 100%;
    }
}

/* Форма входа */
.login-form {
  width: 100%;
  max-width: 400px;
  margin: 0 auto 24px;
}

/* Группа поля ввода */
.input-group {
  margin-bottom: 16px;
  width: 100%;
}

/* Лейбл над полем */
.input-label {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-size: 32px;
  font-weight: 500;
  color: #2b2828;
  margin-bottom: 12px;
  margin-left: 4px;
}

/* Само поле ввода */
.login-input {
  width: 100%;
  height: 75px;
  border-radius: 30px;
  background-color: #FFFFFF;
  border: none;
  box-shadow: inset 2px 6px 1px rgba(0, 0, 0, 0.15);
  font-family: 'Montserrat', sans-serif;
  font-size: 32px;
  font-weight: 400;
  color: #1F2937;
  padding: 0 24px;
  outline: none;
  box-sizing: border-box;
  transition: all 0.2s ease;
}

/* Placeholder */
.login-input::placeholder {
  color: #9CA3AF;
  font-weight: 400;
  font-size: 32px;
}

/* Фокус */
.login-input:focus {
  box-shadow: inset 2px 6px 1px rgba(107, 159, 243, 0.589);
  background-color: #f3f5fa;
}

/* Ошибка */
.login-input.error {
    box-shadow: inset 2px 6px 1px rgba(243, 107, 118, 0.589);
    background-color: #f9bbbb;
}

/* Контейнер для поля пароля с кнопкой */
.password-wrapper {
    position: relative;
    width: 100%;
}

/* Поле ввода пароля (наследует .login-input) */
.password-input {
    width: 100%;
    padding-right: 60px; /* Оставляем место для кнопки */
}

/* Кнопка показа/скрытия пароля */
.password-toggle {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.5;
    transform-origin: center center;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.password-toggle:hover {
    opacity: 1;
    filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.2));
    transform: translateY(-50%) scale(1.1);
}

/* Иконка глаза */
.eye-icon {
    width: 46px;
    height: 46px;
    display: block;
}

/* Адаптивность */
@media (max-width: 500px) {
  .input-label {
    font-size: 20px;
  }
    .login-form {
    max-width: 100%;
    padding: 0 15px;
  }
  
  .login-input {
    height: 64px;
    border-radius: 24px;
  }
}

/* Кнопка входа*/
.button-container {
    width: 100%;
    text-align: center;
}

.login-button {
    width: 100%;
    max-width: 200px;
    height: auto;
    aspect-ratio: 2 / 0.75;
    background-color: #FF0000;
    border: none;
    border-radius: 20px;
    outline: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 2px 6px 1px rgba(0, 0, 0, 0.2);
    display: block;
    margin-left: auto;
    margin-right: auto;
    transition: background-color 0.2s cubic-bezier(0.25, 0.1, 0.25, 1),
                box-shadow 0.2s cubic-bezier(0.25, 0.1, 0.25, 1);
}

/* Текст внутри кнопки */
.button-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 48px;
    font-weight: 400;
    color: white;
    line-height: 1;
    transition: transform 0.2s cubic-bezier(0.25, 0.1, 0.25, 1);
    display: inline-block;
}

/* Состояние при наведении */
.login-button:hover {
    background-color: #B30303;
}

/* Состояние при нажатии - двигаем текст */
.login-button:active .button-text {
    transform: translateY(4px);
}

/* Состояние при нажатии - двигаем тень */
.login-button:active {
    box-shadow: inset 2px 10px 1px rgba(0, 0, 0, 0.2);
}

.login-button.loading {
    opacity: 0.7;
    cursor: wait;
}

/* Анимация ошибки - трясём текст */
@keyframes shake-text {
    0% { transform: translateX(0); }
    20% { transform: translateX(-4px); }
    40% { transform: translateX(4px); }
    60% { transform: translateX(-2px); }
    80% { transform: translateX(1px); }
    100% { transform: translateX(0); }
}

.login-button.error .button-text {
    animation: shake-text 0.5s cubic-bezier(0.25, 0.1, 0.25, 1);
}

/* Адаптивность */
@media (max-width: 768px) {
    .login-button {
        max-width: 160px;
        border-radius: 16px;
    }
    .button-text {
        font-size: 36px;
    }
}

@media (max-width: 480px) {
    .login-button {
        max-width: 140px;
        border-radius: 14px;
    }
    .button-text {
        font-size: 28px;
    }
}
/* Адаптация под бренд Tropinky из предоставленных изображений */
.container {
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(255,255,255,0.9);
    border-radius: 32px;
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.14);
    min-height: auto;
    margin-top: 6vh;
    margin-bottom: 6vh;
}

.logo {
    max-width: 460px;
    filter: drop-shadow(0 10px 14px rgba(0,0,0,0.12));
    border-radius: 18px;
}

.input-label {
    font-size: 18px;
    color: #333;
}

.login-input {
    height: 56px;
    border-radius: 12px;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.12), inset 0 1px 2px rgba(0,0,0,0.08);
    font-size: 18px;
}

.login-input::placeholder {
    font-size: 18px;
}

.login-button {
    max-width: 100%;
    height: 58px;
    aspect-ratio: auto;
    border-radius: 12px;
    background: linear-gradient(180deg, #ff2b2b 0%, #d90416 100%);
}

.button-text {
    font-size: 24px;
    font-weight: 600;
}


.demo-hint {
    margin: 6px 0 18px;
    padding: 12px 14px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.7);
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    color: #374151;
    text-align: center;
}

.demo-fill-button {
    margin-left: 8px;
    border: 0;
    border-radius: 999px;
    padding: 6px 10px;
    cursor: pointer;
    background: #1F2937;
    color: #fff;
}

.demo-fill-button:hover {
    opacity: 0.85;
}
