/* ========== Glowria Unified Layout - Creative Premium Edition ========== */

/* الأساسيات */
* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

body {
  background: linear-gradient(to bottom, #ffffff, #f5f5f5);
  font-family: 'Cairo', 'Segoe UI', Tahoma, sans-serif;
  margin: 0;
  padding: 0;
  direction: rtl;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  color: #222;
  scroll-behavior: smooth;
  line-height: 1.7;
}

/* ====== الهيدر الجديد (مُدمج) ====== */
header {
  background: #fff;
  padding: 16px 30px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
  animation: fadeInDown 0.7s ease-in-out;
  direction: rtl;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

header .logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

header .logo img {
  width: 46px;
  border-radius: 10px;
  object-fit: contain;
}

header .logo strong,
header .logo span {
  font-size: 1.4rem;
  color: #000;
  font-weight: 900;
}

header nav ul {
  list-style: none;
  display: flex;
  gap: 22px;
  margin: 0;
  padding: 0;
  font-size: 15px;
}

header nav ul li a {
  text-decoration: none;
  color: #333;
  font-weight: 700;
  font-size: 1rem;
  position: relative;
  transition: all 0.3s ease;
  padding: 4px 6px;
}

header nav ul li a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  right: 0;
  left: 0;
  height: 2px;
  background: #5e5e5e;
  border-radius: 1px;
  width: 0;
  transition: width 0.3s ease;
}

header nav ul li a:hover::after {
  width: 100%;
}

header nav ul li a:hover,
header nav ul li a.active {
  color: #5e5e5e;
}

/* ====== زر CTA أعلى يسار ====== */
.cta-top-left {
  margin: 20px;
  display: flex;
  justify-content: flex-start;
}

.cta-btn {
  display: inline-block;
  background: linear-gradient(to left, #ffffff, #f4f4f4);
  color: #1a1a1a;
  padding: 16px 40px;
  border-radius: 22px;
  font-weight: 600;
  font-size: 17px;
  letter-spacing: 0.35px;
  transition: all 0.35s ease;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.04);
  border: 1px solid #e0e0e0;
  text-decoration: none;
}

.cta-btn:hover {
  background: linear-gradient(to right, #f8f8f8, #e6e6e6);
  transform: translateY(-3px) scale(1.035);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.07);
}

/* ====== Login Box ====== */
main {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding-top: 100px;
  padding-bottom: 60px;
  animation: fadeInUp 0.6s ease-in-out;
}

.login-box {
  background: #fff;
  max-width: 420px;
  width: 100%;
  padding: 40px 30px;
  border-radius: 20px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.06);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.login-box h2 {
  font-size: 26px;
  margin-bottom: 12px;
  color: #000;
  font-weight: 800;
}

.login-box p {
  font-size: 15px;
  color: #666;
  margin-bottom: 24px;
}

.login-box input[type="password"] {
  width: 100%;
  padding: 14px;
  border: 1px solid #ccc;
  border-radius: 14px;
  font-size: 15px;
  margin-bottom: 20px;
  transition: all 0.3s ease;
}

.login-box input[type="password"]:focus {
  border-color: #000;
  box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.06);
  outline: none;
}

.login-box button {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 16px;
  background: linear-gradient(to right, #000, #444);
  color: #fff;
  font-weight: bold;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.login-box button:hover {
  background: linear-gradient(to left, #000, #444);
  transform: translateY(-2px);
}

.login-box button:active {
  transform: scale(0.98);
}

.login-box .error {
  color: red;
  margin-top: 15px;
  background: #ffe5e5;
  padding: 10px;
  border-radius: 10px;
  font-size: 14px;
  width: 100%;
}

/* ====== Glowria Footer - Creative Luxury Edition ====== */
/* === Glowria Footer - Light Luxury === */
.glowria-footer {
  background: linear-gradient(to bottom, #fafafa, #f0f0f0);
  padding: 50px 20px;
  text-align: center;
  font-family: 'Cairo', 'Segoe UI', sans-serif;
  border-top: 1px solid #e6e6e6;
  color: #333;
  font-size: 15px;
}

.glowria-footer .footer-top {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 25px;
  color: #111;
}

.footer-links,
.footer-policy,
.footer-social {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 18px;
}

.footer-links a,
.footer-policy a {
  color: #333;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.footer-links a:hover,
.footer-policy a:hover {
  color: #000;
  text-decoration: underline;
}

.footer-social a {
  color: #444;
  font-size: 18px;
  transition: color 0.3s ease, transform 0.2s ease;
}

.footer-social a:hover {
  color: #000;
  transform: scale(1.1);
}

.footer-copy {
  margin-top: 20px;
  font-size: 14px;
  color: #888;
}



/* ====== Animations ====== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ====== Responsive Adjustments ====== */
@media (max-width: 768px) {
  header nav ul {
    flex-direction: column;
    background: #fff;
    position: absolute;
    top: 70px;
    right: 20px;
    padding: 20px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    display: none;
  }

  header nav ul.show {
    display: flex;
  }

  header {
    flex-direction: column;
    align-items: flex-start;
  }

  .login-box {
    padding: 28px 20px;
    border-radius: 14px;
  }
}
