/* ============================================================================ */
/* === ГЛОБАЛЬНЫЕ СТИЛИ === */
/* ============================================================================ */

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
}

/* ============================================================================ */
/* === СБРОС: УБИРАЕМ ВСЁ ЛИШНЕЕ ПЕРЕД login.php === */
/* ============================================================================ */

.content-wrapper,
.wrapper,
main.main,
.loginreg {
  padding: 0 !important;
  margin: 0 !important;
  min-height: auto !important;
  height: auto !important;
}

/* ============================================================================ */
/* === ОТСТУПЫ: 20px СВЕРХУ, 15px ПО БОКАМ === */
/* ============================================================================ */

.content-wrapper > .wrapper > div[style] {
  padding: 20px 15px !important;
  width: 100%;
  box-sizing: border-box;
}

.loginreg {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  width: 100%;
  box-sizing: border-box;
}

/* ============================================================================ */
/* === ОТКЛЮЧЕНИЕ АВТОМАСШТАБИРОВАНИЯ НА МОБИЛЬНЫХ === */
/* ============================================================================ */

/* Отключаем автоподстройку размера текста — ПРЕДОТВРАЩАЕТ ЗУМ БЕЗ ИЗМЕНЕНИЯ ШРИФТА */
input,
input::placeholder {
  -webkit-text-size-adjust: none !important;
  -moz-text-size-adjust: none !important;
  -ms-text-size-adjust: none !important;
  text-size-adjust: none !important;
}

/* ============================================================================ */
/* === БЛОК ВХОДА / РЕГИСТРАЦИИ === */
/* ============================================================================ */

.loginreg__content {
  width: 420px;
  padding: 8px;
  background-color: #161b1f;
  border: 0.5px solid #3a3a3a95;
  border-radius: 15px;
  text-align: center;
  box-sizing: border-box;
  margin: 0 auto;
  overflow: hidden;
  max-height: 380px;
}

.loginreg__content-tittle {
  display: flex;
  width: 400px;
  height: 45px;
  margin: 0px auto 30px;
  background-color: #0A0A0A;
  border: 0.1px solid #3a3a3a95;
  border-radius: 10px;
  overflow: hidden;
  font-weight: 500;
  font-size: 16px;
  color: #fff;
  gap: 10px;
  padding: 5px;
  box-sizing: border-box;
}

.loginreg__content-tittle-login {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #161b1f;
  color: #fff;
  cursor: pointer;
  padding: 5px;
  border-radius: 7px;
  font-size: 16px;
  min-width: 0;
  box-sizing: border-box;
}

.loginreg__content-tittle-reg {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #bbbbbb;
  background-color: #0A0A0A;
  cursor: pointer;
  padding: 5px;
  border-radius: 5px;
  font-size: 16px;
  min-width: 0;
  box-sizing: border-box;
}

.loginreg__content-logacc {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 20px 15px;
  width: 380px;
  margin: 0 auto;
  box-sizing: border-box;
}

.loginreg__content-logacc-name-1,
.loginreg__content-logacc-name-2 {
  align-self: flex-start;
  margin-left: -20px;
  color: #bbbbbb;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 7px;
}

.loginreg__content-logacc-email,
.loginreg__content-logacc-password {
  width: 380px;
  height: 35px;
  margin: 0 0 12px;
  padding: 0 10px;
  background-color: #0e1113;
  border: 0.1px solid #3a3a3a95;
  border-radius: 7px;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  outline: none;
  box-sizing: border-box;
}

.loginreg__content-logacc-password-wrapper {
  position: relative;
  width: 380px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.loginreg__content-logacc-password {
  width: 100%;
  height: 35px;
  padding: 0 40px 0 10px;
  background-color: #0e1113;
  border: 0.1px solid #3a3a3a95;
  border-radius: 7px;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  outline: none;
  box-sizing: border-box;
}

.loginreg__content-logacc-password-toggle {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-80%);
  background: none;
  border: none;
  cursor: pointer;
  width: 20px;
  height: 20px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s ease;
}

.loginreg__content-logacc-login {
  width: 380px;
  height: 35px;
  margin-top: 5px;
  background-color: #249c94;
  color: #ffffff;
  font-size: 16px;
  font-weight: 500;
  border: 1px solid #114c48;
  border-radius: 7px;
  cursor: pointer;
  transition: all 0.1s ease;
  box-sizing: border-box;
}

.loginreg__content-logacc-login:hover {
  background-color: #1f7f79;
  border-color: #0b312f;
}

input::placeholder {
  color: #888;
  font-weight: 400;
}

.loginreg__content-logacc-google-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 380px;
  margin-top: 15px;
  gap: 10px;
}

.loginreg__content-logacc-google-or {
  color: #777;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 5px;
}

.loginreg__content-logacc-google-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 380px;
  height: 35px;
  background-color: #252e35;
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  border: 1px solid #2f3942;
  border-radius: 7px;
  cursor: pointer;
  transition: all 0.1s ease;
  padding: 0;
  box-sizing: border-box;
}

.loginreg__content-logacc-google-btn:hover {
  background-color: #1e252a;
  border-color: #2d2d2d95;
}

.loginreg__content-logacc-google-icon {
  width: 16px;
  height: 16px;
}

.loginreg__content-logacc-login.loading {
  background-color: #1f7f79;
  cursor: wait;
  pointer-events: none;
}

.loginreg__message.error {
  margin-bottom: 10px;
  margin-top: -15px;
  color: #e74c3c;
}

@keyframes blink {
  0%, 100% { opacity: 0; }
  50% { opacity: 1; }
}

/* ============================================================================ */
/* === АДАПТИВ: МОБИЛЬНЫЕ УСТРОЙСТВА (ширина < 450px) === */
/* ============================================================================ */

@media (max-width: 449px) {
  .content-wrapper > .wrapper > div[style] {
    padding: 20px 15px !important;
    width: 100% !important;
  }

  .loginreg__content {
    width: 100%;
    max-width: 380px;
    padding: 6px;
  }

  .loginreg__content-tittle {
    width: 100%;
    max-width: 360px;
    height: 42px;
    font-size: 15px;
    padding: 4px;
    gap: 8px;
  }

  .loginreg__content-logacc {
    width: 100%;
    max-width: 360px;
    padding: 0 18px 12px;
  }

  .loginreg__content-logacc-name-1,
  .loginreg__content-logacc-name-2 {
    margin-left: 0;
    font-size: 13px;
    margin-bottom: 6px;
  }

  .loginreg__content-logacc-email,
  .loginreg__content-logacc-password {
    width: 100%;
    max-width: 360px;
    height: 32px;
    padding: 0 10px;
    font-size: 14px;
  }

  .loginreg__content-logacc-password-wrapper {
    width: 100%;
    max-width: 360px;
  }

  .loginreg__content-logacc-password {
    padding: 0 38px 0 10px;
  }

  .loginreg__content-logacc-password-toggle {
    right: 8px;
    width: 18px;
    height: 18px;
    top: 50%;
    transform: translateY(-80%);
  }

  .loginreg__content-logacc-login {
    width: 100%;
    max-width: 360px;
    height: 32px;
    font-size: 15px;
  }

  .loginreg__content-logacc-google-container {
    width: 100%;
    max-width: 360px;
  }

  .loginreg__content-logacc-google-btn {
    width: 100%;
    max-width: 360px;
    height: 32px;
    font-size: 15px;
    gap: 6px;
  }

  .loginreg__content-logacc-google-icon {
    width: 15px;
    height: 15px;
  }

  .loginreg__message.error {
    font-size: 13px;
    margin-top: -10px;
  }
}

@media (max-width: 767px) {
  .loginreg__content {
    border: none;
  }
}