/* خلفية كاملة مع أنيميشن */
body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  height: 100vh;
  background: linear-gradient(-45deg, #2850c9, #3e8ef7, #a8bfff, #5a7cff);
  background-size: 400% 400%;
  animation: gradient 10s ease infinite;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

@keyframes gradient {
  0% {background-position: 0% 50%;}
  50% {background-position: 100% 50%;}
  100% {background-position: 0% 50%;}
}

.login-container {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  text-align: center;
  animation: slideUp 1s ease-out;
  width: 90%;
  max-width: 400px;
  color: white;
}

@keyframes slideUp {
  0% {transform: translateY(50px); opacity: 0;}
  100% {transform: translateY(0); opacity: 1;}
}

.login-container h2 {
  margin-bottom: 25px;
  font-size: 24px;
  line-height: 1.4;
}

input[type="text"],
input[type="password"] {
  width: 100%;
  padding: 14px 16px;
  margin: 10px 0;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  outline: none;
  background: rgba(255, 255, 255, 0.9);
  transition: box-shadow 0.3s ease;
}

input:focus {
  box-shadow: 0 0 10px #ffffffaa;
}

button {
  width: 100%;
  padding: 14px;
  background-color: #ffffff;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  color: #2850c9;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
}

button:hover {
  background-color: #e2e8ff;
  transform: scale(1.03);
}

.error {
  background: #ff4b5c;
  padding: 10px;
  margin-bottom: 15px;
  border-radius: 8px;
  color: white;
}

.language-switch {
  margin-top: 20px;
  font-weight: bold;
}

.language-switch a {
  color: white;
  margin: 0 5px;
  text-decoration: none;
  transition: color 0.2s ease;
}

.language-switch a:hover {
  color: #000;
}
