/* Duhaa ERP UI v4 - admin login page (auth_login.html). */
:root {
  --lg-font: "Noto Sans Arabic", "Segoe UI", Tahoma, Arial, sans-serif;
  --lg-primary: #0a5bd6;
  --lg-primary-700: #0046ad;
  --lg-navy: #001f3f;
  --lg-text: #1e293b;
  --lg-muted: #64748b;
  --lg-faint: #94a3b8;
  --lg-border: #e2e8f0;
  --lg-field: #f8fafc;
}

* { box-sizing: border-box; }

html, body { margin: 0; min-height: 100%; }

body.login-page {
  font-family: var(--lg-font);
  color: var(--lg-text);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

.login-shell { min-height: 100vh; display: flex; }

/* Blue panel (right side in RTL) */
.login-hero {
  position: relative;
  overflow: hidden;
  width: 40%;
  max-width: 620px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  padding: 56px 58px;
  background:
    radial-gradient(circle at 15% 8%, rgba(255, 255, 255, .14), transparent 32%),
    linear-gradient(160deg, #0a55c8 0%, #0046ad 45%, #0b3a8a 100%);
  color: #fff;
}

.login-hero-mark {
  position: absolute;
  inset-inline-end: -70px;
  bottom: -90px;
  font-size: 420px;
  line-height: 1;
  color: rgba(255, 255, 255, .06);
  pointer-events: none;
}

.login-hero-content { position: relative; z-index: 1; width: 100%; }

.login-logo {
  width: 76px;
  height: 76px;
  margin-bottom: 26px;
  padding: 6px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 14px 30px rgba(0, 20, 60, .30);
}

.login-logo img { width: 100%; height: 100%; object-fit: contain; border-radius: 12px; display: block; }

.login-hero-title { margin: 0 0 14px; font-size: 36px; font-weight: 800; line-height: 1.35; }

.login-hero-text { margin: 0 0 30px; color: rgba(255, 255, 255, .85); font-size: 14.5px; line-height: 1.9; max-width: 460px; }

.login-features { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 14px; }

.login-features li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 18px;
  border: 1px solid rgba(255, 255, 255, .20);
  border-radius: 12px;
  background: rgba(255, 255, 255, .10);
  font-size: 14px;
  font-weight: 600;
  backdrop-filter: blur(4px);
}

.login-features i { color: #4ade80; font-size: 16px; }

/* Form side */
.login-main { flex: 1; min-width: 0; display: flex; flex-direction: column; padding: 28px 40px; }

.login-topbar { display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }

.login-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px;
  border: 1px solid var(--lg-border);
  border-radius: 999px;
  color: var(--lg-muted);
  font-size: 12.5px;
  font-weight: 600;
}

.login-chip i { color: var(--lg-primary); }

.login-form-wrap { width: 100%; max-width: 440px; margin: auto; padding: 36px 0 20px; }

.login-brand-mobile { display: none; }

.login-title { margin: 0 0 6px; color: var(--lg-navy); font-size: 30px; font-weight: 800; }

.login-subtitle { margin: 0 0 28px; color: var(--lg-muted); font-size: 14px; }

.login-alert {
  margin-bottom: 16px;
  padding: 12px 14px;
  border: 1px solid;
  border-radius: 12px;
  font-size: 13.5px;
  line-height: 1.7;
}

.login-alert-danger { background: #fef2f2; border-color: #fecaca; color: #991b1b; }
.login-alert-success { background: #f0fdf4; border-color: #bbf7d0; color: #166534; }
.login-alert-warning { background: #fffbeb; border-color: #fde68a; color: #92400e; }
.login-alert-info { background: #eff6ff; border-color: #bfdbfe; color: #1e40af; }

.login-field { margin-bottom: 20px; }

.login-field label { display: block; margin-bottom: 8px; color: var(--lg-text); font-size: 14px; font-weight: 700; }

.login-input { position: relative; display: flex; align-items: center; }

.login-input > i {
  position: absolute;
  inset-inline-start: 16px;
  color: var(--lg-faint);
  font-size: 16px;
  pointer-events: none;
}

.login-input input {
  width: 100%;
  height: 52px;
  padding: 0 44px;
  border: 1px solid var(--lg-border);
  border-radius: 12px;
  background: var(--lg-field);
  color: var(--lg-text);
  font: 500 15px var(--lg-font);
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}

.login-input input::placeholder { color: var(--lg-faint); }
.login-input input:focus { border-color: var(--lg-primary); background: #fff; box-shadow: 0 0 0 3px rgba(10, 91, 214, .12); }

.login-eye {
  position: absolute;
  inset-inline-end: 8px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--lg-faint);
  font-size: 16px;
  cursor: pointer;
}

.login-eye:hover { background: #eef2f7; color: var(--lg-text); }

.login-options { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 4px 0 26px; font-size: 13.5px; }

.login-check { display: inline-flex; align-items: center; gap: 8px; color: var(--lg-text); cursor: pointer; }
.login-check input { width: 17px; height: 17px; accent-color: var(--lg-primary); }

.login-link { color: var(--lg-primary-700); font-weight: 600; cursor: help; }

.login-btn {
  width: 100%;
  height: 54px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, #0a5bd6, #0046ad);
  color: #fff;
  font: 700 15.5px var(--lg-font);
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(0, 70, 173, .28);
  transition: filter .15s ease, box-shadow .15s ease;
}

.login-btn:hover { filter: brightness(1.06); box-shadow: 0 12px 28px rgba(0, 70, 173, .34); }
.login-btn:focus-visible { outline: 3px solid rgba(10, 91, 214, .35); outline-offset: 2px; }

.login-copy { margin: 22px 0 0; color: var(--lg-faint); font-size: 12px; text-align: center; }

.login-app-card {
  margin-top: 22px;
  padding: 16px;
  border: 1px solid #eef2f7;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(15, 23, 42, .07);
  text-align: center;
}

.login-app-card > span { display: block; margin-bottom: 10px; color: var(--lg-muted); font-size: 12.5px; }

.login-app-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 46px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #fff;
  color: var(--lg-primary-700);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(15, 23, 42, .06);
}

.login-app-btn:hover { background: #f5f9ff; border-color: #bfd4f6; }

@media (max-width: 991.98px) {
  .login-shell { flex-direction: column; }
  .login-hero { display: none; }
  .login-main { padding: 18px 18px 28px; }
  .login-form-wrap { padding-top: 18px; }
  .login-brand-mobile {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 26px;
    padding: 14px;
    border-radius: 16px;
    background: linear-gradient(135deg, #0a55c8, #0046ad);
    color: #fff;
    font-weight: 700;
    font-size: 14px;
  }
  .login-brand-mobile img { width: 46px; height: 46px; border-radius: 12px; background: #fff; padding: 3px; object-fit: contain; }
  .login-title { font-size: 26px; }
}
