* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: #003366; /* Цвет фона */
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  overflow: hidden;
}

.logo-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100px;
  margin: 0 auto;
}

.logo {
  max-width: 150px;
  height: auto;
}

.login-box {
  background: linear-gradient(145deg, #ffffff, #f9f9f9);
  padding: 20px 40px;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 370px;
  max-height: 370px;
  transform: translateY(-100%);
  opacity: 0;
  transition: all 0.6s ease;
  position: relative;
}

.login-box.show {
  animation: fadeInUp 0.6s ease forwards;
}

@keyframes fadeInUp {
  from { transform: translateY(-100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.login-box h2 {
  text-align: center;
  font-size: 22px;
  color: #333;
  margin-bottom: 30px;
  font-weight: 600;
}

.input-group {
  position: relative;
  margin-bottom: 8px;
}

.input-group i {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #aaa;
  transition: color 0.3s ease;
}

.input-group input {
  width: 100%;
  padding: 12px 45px 12px 35px;
  border: 1px solid #ccc;
  border-radius: 10px;
  outline: none;
  font-size: 14px;
  transition: all 0.3s ease;
  background-color: #efefef;
  font-family: 'Inter', sans-serif;
  color: #333;
}

.input-group input:focus {
  border-color: #007bff;
  background-color: #fff;
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.2);
}

.input-group input:focus + i {
  color: #007bff;
}

.input-group input::selection {
  color: #333;
  background-color: transparent;
}

.input-group input:-webkit-autofill,
.input-group input:-webkit-autofill:focus,
.input-group input:-webkit-autofill:hover,
.input-group input:-webkit-autofill:active {
  color: #333;
  -webkit-text-fill-color: #333;
  transition: all 9999s ease-in-out;
}

.password-toggle {
  position: absolute;
  right: 40px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  color: #aaa;
  transition: color 0.3s ease;
}

.password-toggle:hover {
  color: #007bff;
}

button {
  width: 100%;
  padding: 12px;
  margin-top: 5px;
  font-size: 16px;
  font-weight: 600;
  color: white;
  background: linear-gradient(135deg, #007bff, #0056b3);
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 123, 255, 0.3);
}

button:hover {
  box-shadow: 0 6px 15px rgba(0, 123, 255, 0.4);
  background: linear-gradient(135deg, #0056b3, #007bff);
}

.error-message {
  color: #e13222;
  font-size: 15px;
  text-align: center;
  margin-top: 9px;
  opacity: 0;
  transform: translateY(5px);
  visibility: hidden;
  transition: all 0.3s ease;
}

.error-message.show {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}