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

body {
  font-family: 'Nunito', sans-serif;
  min-height: 100vh;
  background: #1a1428;
  background: url('../assets/images/background.jpg') no-repeat center center fixed;
  background-size: cover;
  padding: 20px;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(26, 20, 40, 0.6);
  backdrop-filter: blur(4px);
  z-index: 0;
}

.login-container {
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.login-card {
  background: rgba(40, 34, 58, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(180, 150, 255, 0.12);
  border-radius: 16px;
  padding: 45px 40px 35px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.login-header {
  text-align: center;
  margin-bottom: 30px;
}

.login-header h1 {
  font-size: 1.8rem;
  font-weight: 700;
  color: #f0ecf8;
  margin-bottom: 10px;
  letter-spacing: 0.5px;
}

.login-header p {
  color: rgba(220, 215, 235, 0.5);
  font-size: 1.05rem;
  font-weight: 400;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

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

.form-label {
  font-size: 0.9rem;
  font-weight: 700;
  color: rgba(220, 215, 235, 0.7);
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.form-input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid rgba(180, 150, 255, 0.08);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  font-size: 1rem;
  font-family: 'Nunito', sans-serif;
  color: #f0ecf8;
  transition: all 0.3s ease;
  outline: none;
}

.form-input::placeholder {
  color: rgba(220, 215, 235, 0.3);
}

.form-input:focus {
  border-color: rgba(180, 150, 255, 0.25);
  background: rgba(255, 255, 255, 0.07);
  box-shadow: 0 0 0 4px rgba(180, 150, 255, 0.05);
}

.form-input.error {
  border-color: #f59898 !important;
  background: rgba(255, 140, 140, 0.06) !important;
  box-shadow: 0 0 0 4px rgba(255, 140, 140, 0.08) !important;
}

.password-wrapper {
  position: relative;
  width: 100%;
}

.login-btn {
  padding: 14px 28px;
  background: rgba(180, 150, 255, 0.12);
  color: #baa5cb;
  border: 1px solid rgba(180, 150, 255, 0.1);
  border-radius: 10px;
  font-size: 1.1rem;
  font-weight: 700;
  font-family: 'Nunito', sans-serif;
  cursor: pointer;
  transition: all 0.25s ease;
  margin-top: 10px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.login-btn:hover:not(:disabled) {
  background: rgba(180, 150, 255, 0.2);
  transform: scale(1.02);
  box-shadow: 0 4px 20px rgba(180, 150, 255, 0.15);
}

.login-btn:active:not(:disabled) {
  transform: scale(0.98);
}

.login-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.login-footer {
  text-align: center;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid rgba(180, 150, 255, 0.05);
}

.login-footer p {
  color: rgba(200, 190, 220, 0.4);
  font-size: 0.85rem;
  letter-spacing: 0.5px;
  font-weight: 400;
}

.message {
  padding: 12px 16px;
  margin-bottom: 20px;
  border-radius: 10px;
  font-size: 0.95rem;
  text-align: center;
  font-weight: 600;
  border: 1px solid transparent;
}

.message.warning {
  background: rgba(255, 140, 140, 0.08);
  border-color: rgba(255, 140, 140, 0.15);
  color: #f59898;
}

.message.success {
  background: rgba(100, 200, 140, 0.08);
  border-color: rgba(100, 200, 140, 0.15);
  color: #7ccfa0;
}

/* Адаптив */
@media (max-width: 480px) {
  .login-card {
    padding: 30px 20px 25px;
  }
  .login-header h1 {
    font-size: 1.5rem;
  }
  .login-btn {
    padding: 12px 20px;
    font-size: 0.95rem;
  }
}