* {
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* ==== COLOR VARIABLES ==== */
:root {
  --primary-color: #ffffff;
  --second-color: #ffffff;
  --button-color: radial-gradient(circle, #ff00bf, #bf00ff);
  --buttonhover-color: radial-gradient(circle, #ff5ec7, #bf00ff);
}

/* ==== Reusable CSS ==== */
a {
  text-decoration: none;
  color: var(--second-color);
}

a:hover {
  text-decoration: underline;
}

/* ==== LOGIN WRAPPER ==== */

body {
  margin: 0;
  padding: 0;
  background-color: #000;
  color: #fff;
  font-size: 16px;
}

.wrapper {
  width: 100%;
  margin-top: 80px;
  background-color: rgb(0, 0, 0);
}

.login-container {
  display: flex;
  height: 80vh;
  margin: 130px;
  margin-bottom: 0;
  margin-top: 100px;
  box-shadow: 0 8px 30px rgba(255, 255, 255, 0.2);
  border-radius: 3%;
}

.image-container {
  flex: 1;
  overflow: hidden;

}

.image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-top-left-radius: 3%;
  border-bottom-left-radius: 3%;
}

.login_box {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 2em;
  background: #111111;
  color: #ffffff;
  border: 2px solid #303030;
  border-top-right-radius: 3%;
  border-bottom-right-radius: 3%;
}

.login-header {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  font-size: x-large;
  margin-bottom: 20px;
}

.login_header span {
  font-size: 50px;
  color: black;
}

.button-container {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 370px;
  min-width: 370px;
}

/* .button-container .input-submit {
  margin-bottom: 1em;
  padding: 0.75em;
  border: 1px solid #ddd;
  border-radius: 5px;
  background-color: #fff;
  cursor: pointer;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1em;
  transition: background-color 0.3s;
  
} */

/* .button-container .input-submit:hover {
  background-color: #f0f0f0;
} */

.input_box {
  position: relative;
  display: flex;
  flex-direction: column;
  margin-bottom: 20px;
}

.input-field {
  width: 100%;
  height: 55px;
  font-size: 16px;
  background-color: transparent;
  color: var(--second-color);
  padding-inline: 20px 50px;
  border: 2px solid #303030;
  ;
  border-radius: 15px;
  outline: none;
  box-sizing: border-box;
}

/* #user{
  margin-bottom: 10px;
} */

.label {
  position: absolute;
  top: 15px;
  left: 20px;
  transition: .2s;
}

.input-field:focus~.label,
.input-field:valid~.label {
  position: absolute;
  top: -10px;
  left: 20px;
  font-size: 14px;
  background-color: var(--primary-color);
  border-radius: 30px;
  color: black;
  padding: 0 10px;
}

.icon {
  position: absolute;
  top: 18px;
  right: 25px;
  font-size: 20px;
}

.remember-forgot {
  display: flex;
  justify-content: space-between;
  font-size: 15px;
  margin-bottom: 20px;
}

.input-submit {
  width: 100%;
  height: 60px;
  color: white;
  background: var(--button-color);
  font-size: 20px;
  font-weight: bold;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: .3s;
  margin-bottom: 20px;
}

.input-submit:hover {
  background: var(--buttonhover-color);
}

/* ===GOOGLE AUTH=== */

.gsi-material-button {
  /* -moz-user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
  -webkit-appearance: none; */
  background-color: #131314;
  background-image: none;
  border: 1px solid #747775;
  -webkit-border-radius: 20px;
  border-radius: 20px;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  color: #e3e3e3;
  cursor: pointer;
  /* font-family: 'Roboto', arial, sans-serif; */
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: 16px;
  height: 50px;
  letter-spacing: 0.25px;
  outline: none;
  overflow: hidden;
  padding: 0 12px;
  position: relative;
  text-align: center;
  -webkit-transition: background-color .218s, border-color .218s, box-shadow .218s;
  transition: background-color .218s, border-color .218s, box-shadow .218s;
  vertical-align: middle;
  white-space: nowrap;
  width: auto;
  max-width: 400px;
  min-width: min-content;
  border-color: #8e918f;
  margin-bottom: 20px;
}

.gsi-material-button .gsi-material-button-icon {
  height: 20px;
  margin-right: 12px;
  min-width: 20px;
  width: 20px;
}

.gsi-material-button .gsi-material-button-content-wrapper {
  -webkit-align-items: center;
  align-items: center;
  display: flex;
  -webkit-flex-direction: row;
  flex-direction: row;
  -webkit-flex-wrap: nowrap;
  flex-wrap: nowrap;
  height: 100%;
  justify-content: space-between;
  position: relative;
  width: 100%;
}

.gsi-material-button .gsi-material-button-contents {
  -webkit-flex-grow: 1;
  flex-grow: 1;
  /* font-family: 'Roboto', arial, sans-serif; */
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: top;
}

.gsi-material-button .gsi-material-button-state {
  -webkit-transition: opacity .218s;
  transition: opacity .218s;
  bottom: 0;
  left: 0;
  opacity: 0;
  position: absolute;
  right: 0;
  top: 0;
}

.gsi-material-button:disabled {
  cursor: default;
  background-color: #13131461;
  border-color: #8e918f1f;
}

.gsi-material-button:disabled .gsi-material-button-state {
  background-color: #e3e3e31f;
}

.gsi-material-button:disabled .gsi-material-button-contents {
  opacity: 38%;
}

.gsi-material-button:disabled .gsi-material-button-icon {
  opacity: 38%;
}

.gsi-material-button:not(:disabled):active .gsi-material-button-state,
.gsi-material-button:not(:disabled):focus .gsi-material-button-state {
  background-color: white;
  opacity: 12%;
}

.gsi-material-button:not(:disabled):hover {
  -webkit-box-shadow: 0 1px 2px 0 rgba(60, 64, 67, .30), 0 1px 3px 1px rgba(60, 64, 67, .15);
  box-shadow: 0 1px 2px 0 rgba(60, 64, 67, .30), 0 1px 3px 1px rgba(60, 64, 67, .15);
}

.gsi-material-button:not(:disabled):hover .gsi-material-button-state {
  background-color: white;
  opacity: 8%;
}


/* .input-submit,
.gsi-material-button {
  width: 100%; 
  margin-bottom: 1rem; 
}

.input-submit:last-of-type,
.gsi-material-button:last-of-type {
  margin-bottom: 0; 
}


@media (min-width: 768px) {
  .input-submit,
  .gsi-material-button {
    margin-bottom: 1.5rem; 
  }
} */

.register {
  text-align: center;
}

.register a {
  font-weight: 500;
}


/* ====== HEADER ====== */
header {
  /* padding: 0px 0px; */
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: rgba(0, 0, 0, 0.95);
  transition: background-color 0.3s;
}

header.scrolled {
  background-color: rgba(0, 0, 0, 0.5);
}

.logo img {
  height: 40px;
  padding: 15px;
  margin-left: 10%;
}

.header-left ul {
  display: flex;
  list-style-type: none;
  margin: 0;
  padding: 0;
  justify-content: center;
}

.header-left ul li a.button {
  color: #fff;
  background-color: transparent;
  border: none;
  padding: 10px 20px;
  text-decoration: none;
  transition: color 0.3s;
}

.header-left ul li:first-child {
  margin-left: -120px;
}

.header-left ul li a.button:hover {
  color: #ccc;
}

.header-right .login-button {
  background-color: transparent;
  color: #fff;
  padding: 8px 50px;
  text-decoration: none;
}

.header-right .login-button:hover {
  color: #ccc;
}

.header-right .signin-button {
  background-color: transparent;
  color: #fff;
  padding: 8px 10px;
  text-decoration: none;
}

.header-right .signin-button:hover {
  color: #ccc;
}

/* ====== BURGER MENU ======= */

.burger-menu {
  display: none;
  /* Скрываем кнопку на десктопах и планшетах */
  cursor: pointer;
  font-size: 30px;
  color: white;
  background: none;
  border: none;
  margin: 0;
}

.burger-menu:hover {
  background: none;
}

.nav-menu {
  display: none;
  /* Изначально меню скрыто */
  position: absolute;
  background-color: #000000;
  /* Черный фон */
  width: 100%;
  /* Меню занимает всю ширину экрана */
  top: 0;
  /* Расстояние от верха страницы */
  left: 0;
  z-index: 1000;
  padding-top: 30px;
  transform: translateY(-100%);
  transition: transform 0.5s ease;
  text-align: center;
}

.nav-menu ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
}

.nav-menu ul li a {
  display: block;
  padding: 10px 20px;
  color: white;
  /* Белый цвет текста */
  text-decoration: none;
  border-bottom: 1px solid #444;
  /* Граница между элементами */
}

/* =========FOOTER=========== */
.container-footer {
  max-width: 800px;
  margin: 50px auto;
  padding: 10px 20px;
  padding-top: 200px;
}

.footer-logos {
  text-align: center; 
  margin-top: 20px;
}

.footer-logos img {
  width: 50px;
  height: auto;
}

footer {
  background-color: #000000;
  color: #fff;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.footer-section {
  width: 34%;
  z-index: 1000
}

.footer-section h3 {
  color: #fff;
  font-size: 20px;
  margin-bottom: 20px;
}

.footer-section pfooter {
  line-height: 1.6;
  font-size: 16px;
}

.footer-section ul {
  list-style: none;
  /* Убираем маркеры списка */
  padding: 0;
  /* Убираем внутренние отступы у списка */
  font-size: 16px;
}

.footer-section ul li {
  margin-bottom: 10px;
  /* Отступ снизу между элементами списка */
}

.footer-section ul li a {
  color: #fff;
  /* Цвет ссылок */
  text-decoration: none;
  /* Убираем подчеркивание ссылок */
}

.footer-bottom {
  margin-top: 200px;
  text-align: center;
  font-size: 14px;
}


@media only screen and (max-width: 768px) {

  h1 {
    font-size: 22px;
    /* Уменьшаем размер заголовков для мобильных устройств */
  }

  h2 {
    font-size: 18px;
  }

  p {
    font-size: 14px;
    /* Уменьшаем размер текста для улучшения читаемости */
  }

  .container {
    padding-top: 20px;
  }

  .footer-section {
    width: 48%;
    /* Ширина каждого раздела */
  }

  button {
    padding: 15px 20px;
    /* Уменьшаем размеры кнопок и текстовых полей для лучшего управления на сенсорном экране */
    font-size: 14px;
  }

  .image-container {
    display: none;
  }

  .login-container {
    display: block;
    height: auto;
    margin: 20px;
    margin-bottom: 0;
    margin-top: 100px;
    box-shadow: 0 8px 30px rgba(255, 255, 255, 0.2);
    border-radius: 3%;
  }
  .login_box {
    padding: 20px;
    flex: none;
    border-radius: 3%;
  }

  .button-container {
    display: block;
    flex-direction: none;
    width: 100%;
    max-width: 370px;
    min-width: 100px;
    margin: 0 auto;
    text-align: center;
    
  }

}


  @media only screen and (max-width: 768px) {
    .burger-menu {
      display: block; /* Показываем кнопку на мобильных */
    }
  
    .header-left, .header-right {
      display: none; /* Скрываем десктопные элементы на мобильных */
    }
  
    .nav-menu {
      display: block; /* Изначально меню скрыто, показывается через JS */
    }
  }

/* ==== PASSWORD RESET MODAL ==== */
.password-reset-modal {
  display: none;
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
  align-items: center;
  justify-content: center;
}

.password-reset-modal-content {
  background: linear-gradient(135deg, #1a1a1a, #2a2a2a);
  border-radius: 15px;
  padding: 0;
  width: 90%;
  max-width: 450px;
  border: 2px solid rgba(191, 0, 255, 0.3);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  animation: modalSlideIn 0.3s ease-out;
}

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

.password-reset-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 25px 30px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.password-reset-header h2 {
  margin: 0;
  color: #ffffff;
  font-size: 24px;
  font-weight: bold;
}

.close-reset-modal {
  font-size: 28px;
  color: #999;
  cursor: pointer;
  line-height: 1;
  transition: color 0.3s ease;
  user-select: none;
}

.close-reset-modal:hover {
  color: #ff00bf;
}

.password-reset-body {
  padding: 20px 30px;
}

.password-reset-body p {
  color: #e0e0e0;
  margin-bottom: 25px;
  line-height: 1.5;
  font-size: 14px;
}

.password-reset-body .input_box {
  margin-bottom: 20px;
}

.reset-message {
  margin-top: 15px;
  padding: 12px;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.4;
  text-align: center;
  min-height: 20px;
}

.reset-message.success {
  background-color: rgba(34, 197, 94, 0.2);
  border: 1px solid rgba(34, 197, 94, 0.5);
  color: #22c55e;
}

.reset-message.error {
  background-color: rgba(239, 68, 68, 0.2);
  border: 1px solid rgba(239, 68, 68, 0.5);
  color: #ef4444;
}

.password-reset-footer {
  padding: 20px 30px 30px;
  display: flex;
  justify-content: center;
}

.reset-submit-btn {
  background: var(--button-color);
  border: none;
  color: white;
  padding: 15px 30px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  border-radius: 10px;
  transition: all 0.3s ease;
  width: 100%;
  max-width: 200px;
}

.reset-submit-btn:hover:not(:disabled) {
  background: var(--buttonhover-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(191, 0, 255, 0.4);
}

.reset-submit-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

/* Mobile responsive for password reset modal */
@media (max-width: 768px) {
  .password-reset-modal-content {
    width: 95%;
    margin: 20px;
  }
  
  .password-reset-header,
  .password-reset-body,
  .password-reset-footer {
    padding-left: 20px;
    padding-right: 20px;
  }
  
  .password-reset-header h2 {
    font-size: 20px;
  }
  
  .close-reset-modal {
    font-size: 24px;
  }
}