/*
  ملف الأنماط (CSS) لصفحة تسجيل الدخول (تصميم كامل مستقل)
  الألوان مأخوذة من هوية موقع positive.ps مع درجات أغمق للخلفيات.
*/

@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;600&display=swap');

:root {
  --primary-color: #013024;          /* أخضر داكن للخلفية */
  --primary-color-soft: #024733;     /* درجة متوسطة */
  --primary-color-dark: #011b13;     /* أغمق للنافبار والفوتر */
  --accent-color: #00b45a;           /* أخضر فاتح للأزرار (مثل الموقع) */
  --accent-color-hover: #00934a;
  --accent-soft: rgba(0, 180, 90, 0.08);
  --background-card: #ffffff;        /* بطاقة تسجيل الدخول */
  --text-dark: #111827;
  --text-muted: #6b7280;
  --border-radius: 14px;
  --shadow: 0 14px 30px rgba(0, 0, 0, 0.22);
}

/* إعدادات عامة للجسم */
body {
  font-family: 'Cairo', sans-serif;
  margin: 0;
  padding: 0;
  color: var(--text-dark);
  background:
    radial-gradient(circle at 10% 0%, #06864c 0, transparent 40%),
    radial-gradient(circle at 90% 0%, #0a7d42 0, transparent 45%),
    linear-gradient(180deg, var(--primary-color-soft), var(--primary-color));
}

/* ================= NAVBAR الجديدة ================= */

.positive-navbar {
  width: 100%;
  box-sizing: border-box;
  padding: 0.75rem 2.5rem;
  background: linear-gradient(90deg, var(--primary-color-dark), var(--primary-color-soft));
  color: #f9fafb;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 2px 10px rgba(0,0,0,0.25);
  position: relative;
  z-index: 10;
}

.positive-navbar-brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  gap: 0.6rem;
}

.positive-navbar-brand img {
  height: 46px;
  display: block;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.25);
  background: #ffffff;
}

.positive-navbar-brand span {
  font-weight: 600;
  letter-spacing: 0.04em;
  font-size: 1rem;
}

.positive-navbar-links {
  list-style: none;
  display: flex;
  gap: 1.75rem;
  margin: 0;
  padding: 0;
}

.positive-navbar-links a {
  color: #f9fafb;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
}

.positive-navbar-links a:hover {
  color: #a7f3d0;
}

/* للموبايل نخفّي الروابط (ممكن منيو لاحقاً) */
@media (max-width: 768px) {
  .positive-navbar {
    padding: 0.75rem 1.25rem;
  }
  .positive-navbar-links {
    display: none;
  }
}

/* ================= LOGIN CARD ================= */

.login-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 210px); /* مساحة للنافبار + الفوتر */
  padding: 2.5rem 1rem;
  box-sizing: border-box;
}

.login-card {
  width: 100%;
  max-width: 430px;
  background-color: var(--background-card);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  text-align: center;
  padding: 2.25rem 2.25rem 1.75rem;
  border: 1px solid rgba(15, 118, 110, 0.06);
}

.login-logo {
  width: 96px;
  height: 96px;
  margin: 0 auto 1.25rem;
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ecfdf5;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.09);
}

.login-heading {
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--primary-color-soft);
  margin-bottom: 0.4rem;
}

.login-subheading {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 1.6rem;
}

/* نموذج إدخال المعلومات */
.login-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-group {
  text-align: right;
}

.form-group label {
  display: block;
  margin-bottom: 0.25rem;
  font-weight: 600;
  color: #374151;
  font-size: 0.9rem;
}

.form-group input {
  width: 100%;
  padding: 0.6rem 0.75rem;
  font-size: 0.95rem;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  box-sizing: border-box;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
  background-color: #f9fafb;
}

.form-group input::placeholder {
  color: #9ca3af;
}

.form-group input:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 2px var(--accent-soft);
  background-color: #ffffff;
}

.actions {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  align-items: stretch;
  margin-top: 0.3rem;
}

.btn-primary {
  background-color: var(--accent-color);
  color: #ffffff;
  padding: 0.75rem;
  font-size: 0.98rem;
  font-weight: 600;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: background-color 0.12s ease, transform 0.08s ease, box-shadow 0.12s ease;
  box-shadow: 0 6px 14px rgba(0, 180, 90, 0.35);
}

.btn-primary:hover {
  background-color: var(--accent-color-hover);
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(0, 180, 90, 0.4);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 4px 10px rgba(0, 180, 90, 0.28);
}

.forgot-link {
  font-size: 0.82rem;
  color: var(--primary-color-soft);
  text-decoration: none;
  align-self: flex-end;
}

.forgot-link:hover {
  text-decoration: underline;
}

.separator {
  border: none;
  border-top: 1px solid #e5e7eb;
  margin: 2rem 0 1.5rem;
}

.login-footer {
  font-size: 0.9rem;
  color: var(--text-muted);
  display: flex;
  justify-content: center;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.signup-link {
  color: var(--accent-color);
  text-decoration: none;
  font-weight: 600;
}

.signup-link:hover {
  text-decoration: underline;
}

/* استجابة للأجهزة الصغيرة */
@media (max-width: 480px) {
  .login-card {
    padding: 1.7rem 1.5rem 1.4rem;
  }
}

/* ================= FOOTER الجديدة ================= */

.positive-footer {
  background: linear-gradient(180deg, var(--primary-color-dark), #020f0b);
  color: #f9fafb;
  padding: 1.7rem 1rem 1.1rem;
  font-size: 0.88rem;
}

.positive-footer-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.positive-footer-top {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255,255,255,0.12);
  padding-bottom: 1rem;
}

.footer-column {
  flex: 1 1 260px;
}

.footer-title {
  font-weight: 600;
  margin-bottom: 0.5rem;
  font-size: 0.98rem;
}

.footer-column p,
.footer-column a {
  margin: 0.18rem 0;
  color: #e5e7eb;
}

.footer-column a {
  text-decoration: none;
}

.footer-column a:hover {
  color: #bbf7d0;
}

.newsletter-form {
  display: flex;
  margin-top: 0.5rem;
}

.newsletter-form input {
  flex: 1;
  padding: 0.4rem 0.6rem;
  border-radius: 6px 0 0 6px;
  border: none;
  font-size: 0.85rem;
  background-color: #f9fafb;
  color: #111827;
}

.newsletter-form button {
  padding: 0.4rem 0.9rem;
  border-radius: 0 6px 6px 0;
  border: none;
  background-color: var(--accent-color);
  color: #ffffff;
  font-size: 0.85rem;
  cursor: pointer;
  font-weight: 500;
}

.newsletter-form button:hover {
  background-color: var(--accent-color-hover);
}

.positive-footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  padding-top: 0.75rem;
}

.positive-footer-bottom a {
  color: #6ee7b7;
  text-decoration: none;
}

.positive-footer-bottom a:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  .positive-footer-top {
    flex-direction: column;
  }
  .positive-footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}
