/* ============================================================
   login.css  –  صفحة تسجيل الدخول
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;500;600;700;800&display=swap');

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --lp-brand:   #ef4444;
  --lp-brand2:  #dc2626;
  --lp-bg:      #f8fafc;
  --lp-surface: #ffffff;
  --lp-text:    #1e293b;
  --lp-muted:   #64748b;
  --lp-border:  #e2e8f0;
  --lp-success: #22c55e;
  --lp-warn:    #f59e0b;
  --lp-shadow:  0 4px 24px rgba(0,0,0,.08);
}

body {
  font-family: 'Cairo', sans-serif;
  background: var(--lp-bg);
  color: var(--lp-text);
  min-height: 100vh;
}

/* ══════════════════════════════════════
   LAYOUT
══════════════════════════════════════ */
.login-page {
  display: flex;
  min-height: 100vh;
}

/* ══════════════════════════════════════
   VISUAL PANEL  (يسار)
══════════════════════════════════════ */
.login-visual {
  flex: 1;
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 48px;
  position: relative;
  overflow: hidden;
  min-height: 100vh;
}
.lv-content {
  position: relative;
  z-index: 2;
  max-width: 380px;
  width: 100%;
}

/* Logo */
.lv-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 24px;
  font-weight: 800;
  color: #fff;
  text-decoration: none;
  margin-bottom: 52px;
}
.lv-logo i {
  width: 46px; height: 46px;
  background: var(--lp-brand);
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}
.lv-logo strong { color: #fca5a5; }

.lv-content h2 {
  font-size: 34px;
  font-weight: 800;
  margin-bottom: 12px;
  line-height: 1.25;
}
.lv-content p {
  font-size: 15px;
  color: rgba(255,255,255,.68);
  margin-bottom: 44px;
  line-height: 1.75;
}

/* Feature items */
.lv-features {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.lv-feat {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 12px;
  padding: 14px 18px;
  transition: background .2s;
}
.lv-feat:hover { background: rgba(255,255,255,.1); }
.lv-feat i {
  color: var(--lp-brand);
  font-size: 18px;
  width: 22px;
  text-align: center;
  flex-shrink: 0;
}
.lv-feat span { font-size: 14px; font-weight: 600; }

/* Decorative circles */
.lv-circles { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.lv-c1, .lv-c2 {
  position: absolute;
  border-radius: 50%;
  background: rgba(239,68,68,.08);
}
.lv-c1 { width: 420px; height: 420px; bottom: -160px; left: -120px; }
.lv-c2 { width: 260px; height: 260px; top:  -90px;  right: -70px;  }

/* ══════════════════════════════════════
   FORM PANEL  (يمين)
══════════════════════════════════════ */
.login-form-panel {
  width: 500px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 36px;
  background: var(--lp-surface);
  min-height: 100vh;
}
.lf-box {
  width: 100%;
  max-width: 400px;
}

/* Header */
.lf-header { margin-bottom: 32px; }
.lf-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--lp-muted);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  margin-bottom: 20px;
  transition: color .2s;
}
.lf-back:hover { color: var(--lp-brand); }
.lf-header h1 {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 6px;
}
.lf-header p {
  color: var(--lp-muted);
  font-size: 14px;
}

/* Alerts */
.lf-alert {
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 14px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 9px;
  line-height: 1.5;
}
.lf-alert-err  { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }
.lf-alert-ok   { background: #f0fdf4; color: #15803d; border: 1px solid #bbf7d0; }
.lf-alert-warn { background: #fffbeb; color: #92400e; border: 1px solid #fde68a; }

/* Form */
.lf-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.lf-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.lf-group label {
  font-size: 14px;
  font-weight: 600;
  color: var(--lp-text);
}

/* Input wrap */
.lf-input-wrap { position: relative; }
.lf-input-icon {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  right: 14px;
  color: var(--lp-muted);
  font-size: 15px;
  pointer-events: none;
}
.lf-input-wrap input {
  width: 100%;
  padding: 12px 44px 12px 46px;
  border: 1.5px solid var(--lp-border);
  border-radius: 10px;
  font-family: 'Cairo', sans-serif;
  font-size: 14px;
  background: var(--lp-bg);
  color: var(--lp-text);
  outline: none;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.lf-input-wrap input:focus {
  border-color: var(--lp-brand);
  box-shadow: 0 0 0 3px rgba(239,68,68,.12);
  background: #fff;
}

/* Eye toggle */
.lf-eye {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  left: 13px;
  background: none; border: none;
  cursor: pointer;
  color: var(--lp-muted);
  font-size: 15px;
  padding: 4px;
  transition: color .2s;
}
.lf-eye:hover { color: var(--lp-brand); }

/* Submit button */
.lf-submit {
  width: 100%;
  padding: 14px;
  background: var(--lp-brand);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-family: 'Cairo', sans-serif;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s, transform .1s, box-shadow .2s;
  margin-top: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
}
.lf-submit:hover {
  background: var(--lp-brand2);
  box-shadow: 0 4px 16px rgba(239,68,68,.35);
}
.lf-submit:active  { transform: scale(.98); }
.lf-submit:disabled { opacity: .6; cursor: not-allowed; }

/* Footer */
.lf-footer {
  text-align: center;
  margin-top: 24px;
  font-size: 14px;
  color: var(--lp-muted);
}
.lf-footer a {
  color: var(--lp-brand);
  text-decoration: none;
  font-weight: 700;
  margin-right: 4px;
}
.lf-footer a:hover { text-decoration: underline; }

/* ══════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════ */
@media (max-width: 900px) {
  .login-form-panel { width: 100%; }
}

@media (max-width: 700px) {
  .login-visual { display: none; }
  .login-form-panel {
    width: 100%;
    padding: 40px 24px;
    align-items: flex-start;
    padding-top: 60px;
  }
}

@media (max-width: 400px) {
  .lf-box { max-width: 100%; }
  .lf-header h1 { font-size: 24px; }
}
