@font-face {
    font-family: 'Montserrat-Regular';
    src: url('/static/fonts/Montserrat-Regular.woff2');
    font-weight: 400;
}

@font-face {
    font-family: 'Montserrat-Bold';
    src: url('/static/fonts/Montserrat-Bold.woff2');
    font-weight: 800;
}

@font-face {
    font-family: 'Montserrat-Light';
    src: url('/static/fonts/Montserrat-Light.woff2');
    font-weight: 200;
}

body {
    font-family: 'Montserrat-Regular', sans-serif;
    background-color: #f4f4f4;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 84vh;
    flex-direction: column;
}

.main-title-login {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 20px;
}

.login_form {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 50px 20px 30px 20px;
    width: 300px;
    max-width: 100%;
    margin-bottom: 20px;
    transition: transform 0.3s;
}

.label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    padding: 0 0 0 14px
}

input {
    font-family: 'Montserrat-Regular', sans-serif;
    font-size: 16px;
    width: 100%;
    padding: 14px;
    /*margin-bottom: 16px;*/
    border: 1px solid #ccc;
    border-radius: 100px;
    box-sizing: border-box;
    color: #333333;
}

input[type="password"] {
    -webkit-text-security: disc;
    text-security: disc;
}

input[type="submit"] {
    background-color: orange;
    color: #333333;
    cursor: pointer;
}

input[type="submit"]:hover {
    background-color: #333333;
    color: orange;
}

.popup {
    font-family: 'Montserrat-Regular', sans-serif;
    font-size: 16px;
    text-align: center;
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    width: 200px;
}

.close {
    position: absolute;
    top: 10px;
    right: 10px;
    cursor: pointer;
}

.back-to-home {
    margin-top: 20px;
    text-align: center;
}

.back-to-home a {
    color: #333;
    text-decoration: none;
    font-weight: bold;
    font-size: 16px;
}

.back-to-home a:hover {
    color: orange;
}

.title-login-no-registration {
    font-family: 'Montserrat-Regular', sans-serif;
    font-size: 16px;
    text-decoration: none;
    margin-bottom: 20px;
    text-align: center;
}

@media only screen and (max-width: 600px) {
    form {
        margin-bottom: 0;
    }
}

.logo-container {
    text-align: center;
    padding: 40px;
}

.logo {
    width: 100px;
    height: auto;
}

.alert-block {
    background: orange;
    border-radius: 12px;
    max-width: 400px;
    margin: 10px 10px 0 10px;
    padding: 10px 10px 10px 10px;
}

.alert-title {
    font-family: 'Montserrat-Bold', sans-serif;
    font-size: 20px;
    text-align: center;
    color: #333333;
    margin: 20px auto;
}

.alert-description {
    font-family: 'Montserrat-Regular', sans-serif;
    font-size: 16px;
    text-align: center;
    color: #333333;
    margin: 20px auto;
}

.input-group {
    position: relative;
    margin-bottom: 20px;
}

.form-input-login {
    width: 100%;
    padding: 0 10px 0 20px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 100px;
    outline: none;
    background: white;
    height: 50px;
    /*transition: 0.4s ease-in-out;*/
    /*box-shadow: inset 1px 1px 10px rgb(235, 235, 235);*/
}

.form-input-password {
    width: 100%;
    padding: 0 10px 0 20px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 100px;
    outline: none;
    background: white;
    height: 50px;
    /*transition: 0.4s ease-in-out;*/
    /*box-shadow: inset 1px 1px 10px rgb(235, 235, 235);*/
}

.input-group label {
    position: absolute;
    top: 1rem;
    left: 20px;
    padding: 0 0.25rem;
    background: white;
    color: #999;
    font-size: 1rem;
    pointer-events: none;
    transition: 0.2s ease all;
}

.form-input-login:focus + label,
.form-input-login.not-empty + label,
.form-input-password:focus + label,
.form-input-password.not-empty + label {
    top: -10px;
    left: 6px;
    font-family: 'Montserrat-Regular', sans-serif;
    font-size: 12px;
    color: #333333;
}

.main-title-login {
    text-align: center;
    font-size: 24px;
    margin-bottom: 16px;
}

.button-container {
  margin-top: 1rem;
}

.login_form_modal_button {
    font-family: 'Montserrat-Bold', sans-serif;
    font-size: 16px;
    width: 100%;
    padding: 0.75rem;
    background-color: orange;
    color: white;
    border: none;
    border-radius: 100px;
    cursor: pointer;
    transition: background 0.3s;
    height: 50px;
    margin: 0 0 16px 0;
}

.login_form_modal_button:hover {
  background-color: #333333;
}

/*Языки*/
.lang_switcher {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 10px 0 0 0;
}

.lang_switcher button {
    font-family: 'Montserrat-Regular', sans-serif;
    font-weight: bold;
    font-size: 14px;
    padding: 6px 12px;
    background: white;
    color: #333333;
    cursor: pointer;
    border-radius: 4px;
    border: 1px solid #ddd;
}

.lang_switcher button.active {
    background: orange;
    color: #333333;
}

.lang_switcher button:hover {
    background: orange;
    color: #333333;
}


    /* POPUP FLASH */
.flash-popup {
  font-family: 'Montserrat-Regular', sans-serif;
  font-weight: bold;
  position: fixed;
  top: 36%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 10px 20px;
  border-radius: 30px;
  font-size: 12px;
  color: #333333;
  z-index: 1000;
  text-align: center;

  white-space: nowrap;        /* ❗ Запрещаем перенос текста */
  max-width: 90vw;            /* Чтобы не вылезало за экран */
  overflow: hidden;           /* Обрезаем лишнее */
  text-overflow: ellipsis;    /* Добавляем "..." если текст не помещается */
}

    .flash-popup.success {
      background: transparent;
    }

    .flash-popup.error {
      background: transparent;
    }

    @keyframes fadeIn {
      from { opacity: 0; transform: translate(-50%, -60%); }
      to { opacity: 1; transform: translate(-50%, -50%); }
    }

    @keyframes fadeOut {
      from { opacity: 1; transform: translate(-50%, -50%); }
      to { opacity: 0; transform: translate(-50%, -40%); }
    }



.topnav {
  position: relative;
  margin: 0 auto;
  max-width: 400px;
  overflow: hidden;
}

.topnav a.active {
  display: inline-block;
}

.languages {
  position: absolute;
  left: 50%;
  top: 46%;
  transform: translate(-50%, -50%);
  display: flex;
  gap: 0px;
  z-index: 10;
}

.languages button {
  font-family: 'Montserrat-Bold', sans-serif;
  font-size: 14px;
  border: none;
  background: orange;
  color: white;
  padding: 10px 10px;
  border-radius: 0;
  cursor: pointer;
  transition: background 0.3s ease;
}

.languages button.active {
    border-radius: 0;
    color: #333333;
    background: #f8cc7f;
}

.topnav a.icon {
  position: absolute;
  right: 0;
  top: 1px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.topnav a.icon svg {
  display: block;
  vertical-align: middle;
}

.topnav #myLinks {
  display: none;
  font-family: 'Montserrat-Bold', sans-serif;
}