.container {
  display: flex;
  flex-direction: column;
  position: relative;
  min-height: 100vh;
  padding-bottom: 400px;
  padding: 0px 10px 400px 10px;
}

@media (max-width: 768px) {
  .container {
    margin: 30px 0 0 0;
  }
}


/* фон */
.container__background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  max-height: 100vh;
  user-select: none;
}


.container__background img {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  max-height: 100vh;
  object-fit: cover;
  filter: blur(1.5px) brightness(50%);
  z-index: -1;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1), rgba(0, 0, 0, 0)),
  linear-gradient(to right, rgba(0, 0, 0, 1), rgba(0, 0, 0, 0));
}


.container__background::before {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  content: '';
  display: block;
  background: #10121f;
  background: -webkit-linear-gradient(270deg, rgba(16, 18, 31, 0) 0%, var(--color-bg-primary) 100%);
  height: 100vh;
  z-index: -1;
}

.container__background::after {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  content: '';
  display: block;
  background: #10121f;
  background: -webkit-linear-gradient(120deg, rgba(16, 18, 31, 0) 0%, var(--color-bg-primary) 100%);
  height: 100vh;
  z-index: -1;
}

/* Передний план */

/* общий стиль */
.app_content_background {
  display: flex;
  width: 100%;
  box-sizing: border-box;
  background-color: var(--color-card-bg-3);
  padding: 15px;
  border-radius: 12px;
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.05);
}


.container__content {
  position: absolute;
  top: 35%;
  left: 50%;
  transform: translateX(-50%) translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  margin: 0 auto;
  padding: 15px;
  width: 100%;
  box-sizing: border-box;
}



.container__content_form {
  position: relative;
  width: 100%;
  max-width: 650px;
}

@media (max-width: 768px) {
  .container__content_form {
    max-width: 100%;
  }
}

#emoji-right {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 1;
  width: 150px;
  height: 150px;
  user-select: none;
}


.app_content_form {
  display: flex;
  flex-direction: column;
  gap: 30px;
  flex: 1;
  padding: 50px 15px;
}


.app_content_form .title {
  padding: 15px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  user-select: none;
  /* justify-content: center; */
}

.app_content_form .title h1 {
  font-size: 1.5em;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
  padding: 0;
  font-family: var(--font-bold);
}
.app_content_form .title p {
  font-size: 1.2em;
  font-weight: 400;
  margin: 0;
  padding: 0;
  color: var(--text-muted);
}



.app_content_form form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.app_content_form input {
  color: var(--text-muted);
  font-size: 1em;
  background: rgba(40, 44, 58, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.05);
  outline: none;
  flex: 1;
  padding: 10px 15px;
  border-radius: 12px;
  width: 100%;
  box-sizing: border-box;
}

.app_content_form input:-webkit-autofill,
.app_content_form input:-webkit-autofill:hover,
.app_content_form input:-webkit-autofill:focus,
.app_content_form input:-webkit-autofill:active{
  -webkit-text-fill-color: var(--text-muted) !important;
  /* Цвет тени ДОЛЖЕН совпадать с цветом фона вашего инпута */
  -webkit-box-shadow: 0 0 0 1000px transparent inset !important; /* Или ваш цвет фона */
  transition: background-color 5000s ease-in-out 0s !important;
  /* background: transparent !important; - эту строку удалите, она не нужна */
  font-weight: 500 !important;
  /* Добавьте для надёжности */
  caret-color: var(--text-muted); /* цвет курсора */
}

.app_content_form input:autofill,
.app_content_form input:autofill:focus {
  background: transparent !important;
  color: rgba(255, 255, 255, 1) !important;
  font-weight: 500 !important;
}



.app_content_form input::placeholder{
  color: rgba(255, 255, 255, 0.65);
}

.relPassword {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: row;
  gap: 5px;
  align-items: center;
}

.relPassword svg {
  /* position: absolute;
  right: 5px;
  top: 50%;
  transform: translateY(-50%); */
  background-color: transparent;
  outline: none;
  border: 0;
  fill: rgba(96, 127, 242, 0.9);
}




.app_content_form button#sendFormAuth {
  padding: 12px;
  background: rgba(96, 127, 242, 0.1);
  border: 1px solid rgba(96, 127, 242, 0.3);
  border-radius: 12px;
  color: rgba(96, 127, 242, 0.9);
  font-size: 1em;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 10px;
  text-align: center;
  user-select: none;
}


@media (hover:hover) {
  .app_content_form button#sendFormAuth:hover {
    background: rgba(96, 127, 242, 0.2);
    border-color: rgba(96, 127, 242, 0.5);
    color: rgba(96, 127, 242, 1);
  }
}


/* Блок сброса пароля */
.reset_password {
  display: flex;
  flex-direction: column;
  gap: 10px;
}


.reset_password button {
  background: transparent;
  outline: 0;
  border: 0;
  color: var(--text-muted);
  border-radius: 12px;
  border: solid 1px transparent;
  font-size: 1em;
  font-weight: 500;
  cursor: pointer;
  padding: 12px;
  user-select: none;
  transition: all 0.3s ease;
}


@media (hover:hover) {
  .reset_password button:hover {
    /* border-color: rgba(96, 127, 242, 0.5); */
    color: rgba(96, 127, 242, 1);
  }
}


.login_or_register_page {
  display: flex;
  flex-direction: column;
}
.login_or_register_page button {
  background: transparent;
  outline: 0;
  border: 0;
  border-radius: 12px;
  border: dashed 2px rgba(96, 127, 242, 0.15);
  font-size: 1.1em;
  font-weight: 500;
  cursor: pointer;
  padding: 10px;
  user-select: none;
  transition: all 0.3s ease;
  width: 100%;
}


.login_or_register_page button p {
  font-size: 1em;
  font-weight: 500;
  margin: 0;
  padding: 0;
  color: var(--text-primary);
  text-decoration: none;
}

@media (hover:hover) {
  .login_or_register_page button:hover {
    background: rgba(96, 127, 242, 0.2);
    border-color: rgba(96, 127, 242, 0.5);
  }
}



/* обработчик ошибок */
.error-message {
  color: #fa6f6f;
  font-size: 1em;
  padding: 3px 4px;
  margin: 0;
  display: none;
}











/* Стили для модального окна */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0, 0.85);
}

.modal-content {
    position: relative;
    background: var(--color-card-bg-3);
    border-radius: 20px;
    padding: 2em;
    width: 90%;
    max-width: 400px;
    z-index: 1001;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.modal-close {
    position: absolute;
    top: 1em;
    right: 1em;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    font-size: 1.5em;
    cursor: pointer;
    padding: 0;
    width: 1.5em;
    height: 1.5em;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
}

.modal-close:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

.modal-step h3 {
    color: #fff;
    font-size: 1.5em;
    margin: 0 0 0.5em 0;
}

.modal-subtitle {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9em;
    margin-bottom: 1.5em;
}

.modal-form {
    display: flex;
    flex-direction: column;
    gap: 1em;
}


.modal-btn {
  padding: 12px;
  background: rgba(96, 127, 242, 0.1);
  border: 1px solid rgba(96, 127, 242, 0.3);
  border-radius: 12px;
  color: rgba(96, 127, 242, 0.9);
  font-size: 1em;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 10px;
  text-align: center;
  user-select: none;
}


@media (hover:hover) {
  .modal-btn:hover {
    background: rgba(96, 127, 242, 0.2);
    border-color: rgba(96, 127, 242, 0.5);
    color: rgba(96, 127, 242, 1);
  }
}



/* Стили для input */
.modal input {
    color: var(--text-muted);
    font-size: 1em;
    background: rgba(40, 44, 58, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.05);
    outline: none;
    flex: 1;
    padding: 10px 15px;
    border-radius: 12px;
    width: 100%;
    box-sizing: border-box;
}

.modal input::placeholder {
    color: rgba(255, 255, 255, 0.65);
}

