@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');
* {
  margin: 0;
  padding: 0;
  font-family: 'Inter', sans-serif;
}

/* ==== COLOR VARIABLES ==== */
:root {
  --primary-color: #202020;
  --second-color: #ffffff;
  --button-color: #516BFF;
  --buttonhover-color: #6f85ff;
}

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

a:hover {
  text-decoration: underline;
}

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

body {
  margin: 0;
  padding: 0;
  background-color: var(--second-color);
  color: var(--primary-color);
  font-size: 16px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.wrapper {
  width: 100%;
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  padding-top: 100px;
  box-sizing: border-box;
}

.login-container {
  display: flex;
  height: auto;
  min-height: 600px;
  max-width: 1000px;
  width: 100%;
  margin: 0 auto;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  background: #ffffff;
}

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

.image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.login_box {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: #ffffff;
  padding: 60px 40px;
}

.login-header {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  font-size: 32px;
  margin-bottom: 40px;
  font-weight: 700;
  color: #333333;
  position: relative;
}

.login-header::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 3px;
  background: var(--button-color);
  border-radius: 2px;
}

.login_header span {
  font-size: 32px;
}

.button-container {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 400px;
  position: relative;
  z-index: 1;
}

/* .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: 18px;
  background-color: #ffffff;
  color: #333333;
  padding-inline: 20px 50px;
  border: 2px solid #e0e0e0;
  border-radius: 15px;
  outline: none;
  box-sizing: border-box;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.input-field:focus {
  border-color: var(--button-color);
  box-shadow: 0 0 0 3px rgba(81, 107, 255, 0.1);
  transform: translateY(-1px);
}

.input-field:hover {
  border-color: rgba(81, 107, 255, 0.5);
}

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

.label {
  position: absolute;
  top: 15px;
  left: 20px;
  transition: .2s;
  color: #666666;
  pointer-events: none;
}

.input-field:focus~.label,
.input-field:valid~.label {
  position: absolute;
  top: -10px;
  left: 20px;
  font-size: 14px;
  background-color: #ffffff;
  border-radius: 30px;
  color: var(--button-color);
  padding: 0 10px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform: scale(1);
}

.label {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

.remember-me {
  display: flex;
  align-items: center;
  color: #666666;
  font-size: 14px;
}

.remember-me input[type="checkbox"] {
  margin-right: 8px;
}

.forgot a {
  color: var(--button-color);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s ease;
}

.forgot a:hover {
  color: var(--buttonhover-color);
}

.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: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(81, 107, 255, 0.3);
}

.input-submit::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
  z-index: 0;
}

.input-submit:hover::before {
  width: 300px;
  height: 300px;
}

.input-submit:hover {
  background: var(--buttonhover-color);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(81, 107, 255, 0.4);
}

.input-submit:active {
  transform: translateY(0);
  box-shadow: 0 4px 15px rgba(81, 107, 255, 0.3);
}

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

.gsi-material-button {
  /* -moz-user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
  -webkit-appearance: none; */
  background-color: var(--second-color);;
  background-image: none;
  border: 2px solid var(--primary-color);
  -webkit-border-radius: 20px;
  border-radius: 20px;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  color: var(--primary-color);
  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: var(--primary-color);
  transition: background-color 0.3s;
  border-bottom: solid 1px #494949;
}

header .header-content {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

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

.logo img {
  height: 50px;
  padding: 5px;
  /* margin-left: 1%; */
}

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

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

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

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

.header-right .login-button {
  background-color: white;
  color: #000000;
  padding: 8px 50px;
  text-decoration: none;
  font-weight: bold;
  border-radius: 10px;
}

.header-right .login-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: 100px;
}

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

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

footer {
  background-color: #1c1c1c;;
  color: #fff;
  padding-bottom: 20px;
}

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

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

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

.footer-section pfooter {
  line-height: 1.6;

}

.footer-section ul {
  list-style: none;
  padding: 0;

}

.footer-section ul li {
  margin-bottom: 10px;
}

.footer-section ul li a {
  color: #ffffff;
  text-decoration: none;
}

.footer-section ul li a:hover {
  color: #ccc;
}

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


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

  h1 {
    font-size: 30px;
  }

  h2 {
    font-size: 20px;
  }

  p {
    font-size: 18px;
  }

  .container {
    padding-top: 20px;
  }

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

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

/* ==== FOOTER ABOUT US SPACING ==== */
.footer-section.about {
  margin-right: 40px;
}

  .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 */
    }
  }

/* Enhanced Mobile Styles for Login/SignIn */
@media (max-width: 768px) {
  .wrapper {
    padding: 10px;
    padding-top: 90px;
  }
  
  .login-container {
    flex-direction: column;
    height: auto;
    min-height: auto;
    border-radius: 15px;
    max-width: 100%;
  }

  .image-container {
    height: 200px;
    order: 1;
  }
  
  .image-container img {
    border-radius: 0;
  }

  .login_box {
    padding: 40px 30px;
    order: 2;
  }
  
  .button-container {
    max-width: 100%;
  }
  
  .login-header {
    font-size: 28px;
    margin-bottom: 30px;
  }
}

/* ====== FOOTER ====== */
footer {
  background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 50%, #16213e 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 50%, rgba(120, 119, 198, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 40% 80%, rgba(120, 219, 255, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.container-footer {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 40px 40px;
  position: relative;
  z-index: 1;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 60px;
}

.footer-section {
  position: relative;
}

.footer-section::before {
  content: '';
  position: absolute;
  top: -10px;
  left: 0;
  width: 40px;
  height: 3px;
  background: linear-gradient(90deg, #7c77c6, #ff77c6);
  border-radius: 2px;
}

.footer-section h3 {
  color: #fff;
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 25px;
  margin-top: 15px;
  letter-spacing: 0.5px;
}

.footer-section pfooter {
  line-height: 1.8;
  color: #b8b8d1;
  font-size: 15px;
  display: block;
}

.footer-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-section ul li {
  margin-bottom: 12px;
  position: relative;
  padding-left: 0;
  transition: all 0.3s ease;
}

.footer-section ul li::before {
  content: '→';
  position: absolute;
  left: -20px;
  color: #7c77c6;
  opacity: 0;
  transition: all 0.3s ease;
}

.footer-section ul li:hover::before {
  opacity: 1;
  left: -15px;
}

.footer-section ul li a {
  color: #b8b8d1;
  text-decoration: none;
  font-size: 15px;
  transition: all 0.3s ease;
  position: relative;
}

.footer-section ul li a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #7c77c6, #ff77c6);
  transition: width 0.3s ease;
}

.footer-section ul li a:hover {
  color: #fff;
  transform: translateX(5px);
}

.footer-section ul li a:hover::after {
  width: 100%;
}

.footer-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(184, 184, 209, 0.3), transparent);
  margin: 40px 0;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 30px;
  border-top: 1px solid rgba(184, 184, 209, 0.2);
}

.footer-copyright {
  color: #8a8aa8;
  font-size: 14px;
}

.footer-logos {
  display: flex;
  gap: 15px;
  align-items: center;
}

.footer-logos img {
  width: 45px;
  height: auto;
  opacity: 0.8;
  transition: all 0.3s ease;
  filter: brightness(0.9);
}

.footer-logos img:hover {
  opacity: 1;
  transform: translateY(-3px);
  filter: brightness(1.1);
}

/* Footer responsive styles */
@media (max-width: 768px) {
  .footer-content {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
  
  .footer-section::before {
    width: 30px;
  }
  
  .footer-section h3 {
    font-size: 20px;
  }
}

@media (max-width: 480px) {
  .container-footer {
    padding: 40px 15px 20px;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: 25px;
    text-align: center;
  }
  
  .footer-section h3 {
    font-size: 18px;
    margin-bottom: 15px;
  }
  
  .footer-section pfooter {
    font-size: 14px;
    line-height: 1.6;
  }
  
  .footer-section ul li a {
    font-size: 14px;
  }
  
  .footer-section::before {
    left: 50%;
    transform: translateX(-50%);
    width: 25px;
    height: 2px;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }
  
  .footer-logos img {
    width: 35px;
  }
  
  .footer-copyright {
    font-size: 12px;
  }
}