/* 🌐 تنسيقات صفحة تسجيل الدخول المعتمدة لـ Veltrix+ مع الخلفية المتحركة */

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

body,
input,
button,
select,
textarea,
a {
  font-family: 'Tajawal', sans-serif !important;
}

body {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  margin: 0;
  background: #ffffff;
  position: relative;
  overflow: hidden;
  color: #000;
  direction: rtl;
  padding: 20px;
}

body::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("img-header-bg.svg") no-repeat center center;
  background-size: cover;
  z-index: 0;
  animation: movebg 20s linear infinite;
  opacity: 0.35;
}

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

.container {
  width: 100%;
  max-width: 480px;
  background: #ffffff;
  border-radius: 16px;
  padding: 35px 28px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  border: 1px solid #eef2f7;
  position: relative;
  z-index: 1;
}

/* الهيدر */
.login-header {
  text-align: center;
  margin-bottom: 25px;
}

.login-header img {
  display: block;
  margin: 0 auto 12px auto;
  height: 45px;
  opacity: 1 !important;
  visibility: visible !important;
  object-fit: contain;
}

.login-header h2 {
  font-size: 24px;
  font-weight: 700;
  color: #0f172a;
}

.input-box {
  display: flex;
  align-items: center;
  border: 1px solid #ddd;
  border-radius: 12px;
  margin-bottom: 15px;
  padding: 0 12px;
  height: 50px;
  background: linear-gradient(135deg, #ffffff, #f9f9f9);
  position: relative;
  gap: 10px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
  transition: all 0.25s ease;
  direction: rtl;
}

.input-box:focus-within {
  border-color: #00AEEF;
  box-shadow: 0 0 0 3px rgba(0, 174, 239, 0.2);
  background: #fff;
}

.input-box i {
  margin-right: 4px;
  color: #00AEEF;
  font-size: 20px;
}

.input-box input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 14px;
  font-weight: 600;
  background: transparent;
  direction: rtl;
  height: 100%;
  color: #1e293b;
}

.input-box input::placeholder {
  color: #aaa;
  font-size: 14px;
  font-weight: 400;
}

.input-box span {
  cursor: pointer;
  font-size: 20px;
  color: #555;
  margin-left: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* الخيارات */
.options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  margin: 10px 0 20px 0;
  font-weight: 600;
  color: #475569;
}

.options label {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.options a {
  color: #00AEEF;
  text-decoration: none;
}

.options a:hover {
  text-decoration: underline;
}

/* زر تسجيل الدخول */
.btn {
  width: 100%;
  padding: 13px;
  border-radius: 10px;
  border: none;
  background: #00AEEF;
  color: #fff;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
  box-shadow: 0 4px 12px rgba(0, 174, 239, 0.25);
}

.btn:hover {
  background: #0095cc;
  transform: translateY(-1px);
}

.error_box {
  background: #ffe5e5;
  color: #ff0000;
  border: 1px solid #ff9d9d;
  padding: 12px 15px;
  border-radius: 10px;
  font-size: 14px;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  animation: fadeIn 0.4s ease-in-out;
}

.span_error {
  font-size: 14px;
  font-weight: bold;
  color: #ff0000;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: translateY(0); }
}
