@font-face {
  font-family: 'NimbusSanLBoldCond';
  src: url('fonts/nimbussanl_boldcond.ttf') format('truetype');
  font-weight: bold;
  font-style: normal;
}

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

* {
  margin: 0;
  padding: 0;
}

body {
  margin: 0;
  font-family: 'NimbusSanLBoldCond', sans-serif;
  font-size: 1rem;
  background-color: white;
  -webkit-user-select: none; /* Safari */
  -moz-user-select: none; /* Firefox */
  -ms-user-select: none; /* Internet Explorer/Edge */
  user-select: none; /* Standard */
}

.header {
  width: 80%;
  max-width: 600px;
  margin: 50px auto 0;
  color: white;
  background: #D67940;;
  text-align: center;
 
  border-bottom: none;
  border-radius: 10px 10px 0 0;
  padding: 20px;
  box-shadow: 0 0 10px rgb(0 0 0 / 50%);
}

form, .content {
  width: 80%;
  max-width: 600px;
  margin: 0 auto;
  padding: 20px;
 
  background: white;
  border-radius: 0 0 10px 10px;
  box-shadow: 0 0 10px rgb(0 0 0 / 50%);
}

.input-group {
  margin: 10px 0;
}

.input-group label {
  display: block;
  text-align: left;
  margin: 3px;
}

.input-group input {
  height: 30px;
  width: 100%;
  padding: 5px 10px;
  font-size: 1rem;
  border-radius: 5px;
  border: 1px solid gray;
}

.btn {
  padding: 10px;
  font-size: 1rem;
  color: white;
  background: #0077cc;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.error {
  width: 100%; 
  margin: 0 auto; 
  padding: 10px; 
  border: 1px solid #a94442; 
  color: #a94442; 
  background: #f2dede; 
  border-radius: 5px; 
  text-align: left;
}

.success {
  color: #2d5437; 
  background: #dff0d8; 
  border: 1px solid #2d5437;
  margin-bottom: 20px;
}

.tooltip {
  position: relative;
  display: inline-block;
  border-bottom: 1px dotted black;
}

.tooltip .tooltiptext {
  visibility: hidden;
  width: 120px;
  background-color: #bdf0d1;
  color: #fff;
  text-align: center;
  padding: 5px 0;
  border-radius: 6px;
  position: absolute;
  z-index: 1;
  bottom: 125%;
  left: 50%;
  margin-left: -60px;
  opacity: 0;
  transition: opacity 0.3s;
}

.tooltip .tooltiptext::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: #7ca783 transparent transparent transparent;
}

.tooltip:hover .tooltiptext {
  visibility: visible;
  opacity: 1;
}

.password-container {
  position: relative;
  display: inline-block;
}

.password-input {
  width: 100%;
  max-width: 200px;
  padding: 10px;
  border: 1px solid #ccc;
}

.password-eye {
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  cursor: pointer;
}

.password-eye::before {
  content: '\f06e'; /* FontAwesome icon for eye */
  font-family: FontAwesome;
  font-size: 16px;
}

.password-input:focus + .password-eye {
  color: #007bff; /* Change eye color on focus */
}

.password-input:active + .password-eye {
  color: #0056b3; /* Change eye color on active */
}

/* Media queries for smaller screens */
@media (max-width: 768px) {
  .header, form, .content {
    width: 90%;
  }

  .password-input {
    width: 100%;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 0.9rem;
  }

  .header, form, .content {
    width: 95%;
    padding: 15px;
  }

  .input-group input {
    height: 25px;
    font-size: 0.9rem;
  }

  .btn {
    padding: 8px;
    font-size: 0.9rem;
  }

  .tooltip .tooltiptext {
    width: 100px;
    left: 30%;
    margin-left: -50px;
  }
}
.header {
  text-align: center;
}
.tooltip {
  display: none;
  position: absolute;
  background-color: rgba(0, 0, 0, 0.8);
  color: #fff;
  padding: 10px;
  border-radius: 5px;
  width: 250px;
  font-size: 14px;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  top: 300px; /* можно настроить, чтобы всплывашка была там, где нужно */
  left: 650px;
}

#info-icon {
  cursor: pointer;
  margin-left: 5px;
  color: #000;
}

#info-icon:hover + .tooltip {
  display: block;
}

#info-icon:hover {
  color: cornflowerblue; /* изменение цвета иконки при наведении */
}

.input-group {
  margin: 10px 0;
}
.input-group .input-group-text {
  cursor: pointer;
}
.btn {
  display: block;
  width: 100%;
  margin: 10px 0;
}
.divider {
  border-bottom: 1px solid #ccc;
  width: 100%;
  margin: 20px 0;
}
.social-login {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
}
.social-login button {
  width: 100%;
  padding: 10px;
  font-size: 16px;
  border-radius: 5px;
  border: none;
}
.social-login img {
  width: 20px;
  margin-right: 10px;
}
.google-btn {
  background-color: #666666;
  color: white;
}
.google-btn:hover {
  background-color: #cecece;
  color: white;
}
.facebook-btn {
  background-color: #3b5998;
  color: white;
}
.facebook-btn:hover {
  background-color: #517ad3;
  color: white;
}
.text-center {
  text-align: center;
}
.remember-me label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  user-select: none;
}

.remember-me input[type="checkbox"] {
  transform: scale(1.4);
  accent-color: #0066ff; /* цвет галочки */
}