@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background: #0a0a0f; /* Тёмный, почти чёрный фон */
  font-family: "Inter", sans-serif;
  color: #d4d4e2;
  margin: 0;
  padding: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.login-container {
  background: #1a1a22; /* Тёмно-серый фон */
  padding: 24px;
  border-radius: 12px;
  border: 1px solid #f65cc54f; /* Фиолетовая рамка */
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
  width: 100%;
  max-width: 360px;
}

h1 {
  text-align: center;
  margin-bottom: 20px;
  color: #e0e0e0; /* Светло-серый заголовок */
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.error {
  color: #f87171; /* Мягкий красный для ошибки */
  text-align: center;
  margin-bottom: 12px;
  font-size: 13px;
  font-weight: 400;
  background: rgba(248, 113, 113, 0.1);
  padding: 8px;
  border-radius: 6px;
}

form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

label {
  font-size: 13px;
  font-weight: 500;
  color: #e0e0e0;
  text-align: left;
}

input[type="text"],
input[type="password"] {
  width: 100%;
  padding: 10px;
  border: none;
  border-radius: 6px;
  background: #2a2a33; /* Тёмный фон инпутов */
  color: #d4d4e2;
  font-size: 14px;
  font-family: "Inter", sans-serif;
  outline: none;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

input[type="text"]:focus,
input[type="password"]:focus {
  background: #32323d;
  box-shadow: 0 0 6px rgba(139, 92, 246, 0.3); /* Фиолетовый фокус */
}

button {
  width: 100%;
  padding: 10px;
  background: #f65cc54f; /* Фиолетовый акцент */
  color: #ffffff;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  font-family: "Inter", sans-serif;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
}

button:hover {
  background: #a78bfa85; /* Светлее фиолетовый */
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(139, 92, 246, 0.2);
}

button:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(139, 92, 246, 0.1);
}

@media (max-width: 600px) {
  .login-container {
    padding: 20px;
    max-width: 320px;
  }

  h1 {
    font-size: 20px;
    margin-bottom: 16px;
  }

  .error {
    font-size: 12px;
    padding: 6px;
  }

  input[type="text"],
  input[type="password"] {
    padding: 8px;
    font-size: 13px;
  }

  button {
    padding: 8px;
    font-size: 13px;
  }
}
