:root {
  --ink: #10201b;
  --deep: #091510;
  --paper: #f3efe5;
  --white: #fffdf8;
  --palm: #2f6752;
  --brass: #b88a45;
  --clay: #a95f47;
  --muted: #607069;
  --line: rgba(16, 32, 27, .16);
  --display: "DM Serif Display", Georgia, serif;
  --body: "Manrope", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 0%, rgba(184, 138, 69, .12), transparent 28rem),
    var(--paper);
  font-family: var(--body);
  -webkit-font-smoothing: antialiased;
}
button, a { font: inherit; }
button { color: inherit; }
[hidden] { display: none !important; }
.skip-link {
  position: fixed; top: 12px; left: 12px; z-index: 20; padding: 10px 14px;
  color: var(--white); background: var(--deep); transform: translateY(-150%);
}
.skip-link:focus { transform: none; }

.portal-header {
  width: min(calc(100% - 56px), 1440px); min-height: 88px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; }
.brand-mark {
  width: 42px; height: 42px; display: grid; place-items: center; color: var(--white);
  background: var(--ink); border-radius: 50%; font-family: "Noto Kufi Arabic", sans-serif;
  font-size: 18px; font-weight: 600;
}
.brand span:last-child { display: grid; line-height: 1.1; }
.brand strong { font-family: var(--display); font-size: 22px; font-weight: 400; letter-spacing: -.02em; }
.brand small { margin-top: 4px; color: var(--muted); font-size: 9px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.header-actions { display: flex; align-items: center; gap: 18px; }
.client-name { color: var(--muted); font-size: 12px; }
.text-button {
  border: 0; border-bottom: 1px solid currentColor; padding: 5px 0; background: transparent;
  font-size: 11px; font-weight: 700; cursor: pointer;
}

main { width: min(calc(100% - 56px), 1440px); margin: 0 auto; }
.eyebrow {
  margin: 0 0 18px; color: var(--clay); font-size: 10px; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase;
}
.eyebrow.light { color: #d9b778; }
.login-view {
  min-height: calc(100vh - 150px); display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(360px, .7fr);
  align-items: center; gap: clamp(70px, 10vw, 170px); padding: 76px 5vw 100px;
}
.login-copy h1, .dashboard-heading h1 {
  max-width: 770px; margin: 0; font-family: var(--display); font-size: clamp(62px, 7vw, 112px);
  font-weight: 400; letter-spacing: -.055em; line-height: .91;
}
.login-intro { max-width: 650px; margin: 30px 0 38px; color: var(--muted); font-size: 16px; line-height: 1.8; }
.trust-list { display: grid; gap: 14px; max-width: 650px; }
.trust-list p { display: flex; gap: 12px; align-items: flex-start; margin: 0; font-size: 12px; line-height: 1.6; }
.trust-list i {
  flex: 0 0 auto; width: 8px; height: 8px; margin-top: 6px; border: 2px solid var(--brass);
  border-radius: 50%; box-shadow: 0 0 0 4px rgba(184, 138, 69, .12);
}
.login-card {
  position: relative; padding: clamp(32px, 5vw, 58px); background: var(--white);
  border: 1px solid rgba(16, 32, 27, .1); border-radius: 22px;
  box-shadow: 0 28px 80px rgba(16, 32, 27, .1);
}
.login-card-number { position: absolute; top: 24px; right: 28px; color: rgba(16, 32, 27, .22); font-size: 11px; font-weight: 700; }
.login-card h2, .installation-copy h2, .section-heading h2, .support-card h2 {
  margin: 0; font-family: var(--display); font-size: clamp(40px, 4vw, 64px); font-weight: 400;
  letter-spacing: -.04em; line-height: 1;
}
.login-card > p:not(.eyebrow, .login-note, .status-message) { margin: 20px 0 26px; color: var(--muted); font-size: 13px; line-height: 1.7; }
.sign-in-options { display: grid; gap: 12px; }
.provider-button, .primary-button {
  min-height: 54px; display: flex; align-items: center; justify-content: center; gap: 12px; padding: 0 18px;
  border-radius: 10px; font-size: 12px; font-weight: 700; cursor: pointer; transition: transform .18s ease, border-color .18s ease;
}
.provider-button { border: 1px solid var(--line); background: #fff; }
.provider-button:hover, .primary-button:hover { transform: translateY(-2px); }
.provider-button > span { width: 20px; height: 20px; display: grid; place-items: center; font-size: 15px; }
.provider-microsoft > span { grid-template-columns: 1fr 1fr; gap: 2px; }
.provider-microsoft i { width: 8px; height: 8px; background: var(--clay); }
.provider-microsoft i:nth-child(2) { background: var(--palm); }
.provider-microsoft i:nth-child(3) { background: var(--brass); }
.provider-microsoft i:nth-child(4) { background: #527b8d; }
.primary-button { justify-content: space-between; border: 1px solid var(--ink); color: var(--white); background: var(--ink); }
.primary-button i { font-style: normal; font-size: 16px; }
.or-rule { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 9px; text-transform: uppercase; }
.or-rule::before, .or-rule::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.login-note { margin: 22px 0 0; color: var(--muted); font-size: 9px; line-height: 1.6; }
.status-message { min-height: 18px; margin: 12px 0 0; color: var(--clay); font-size: 10px; }

.client-dashboard { padding: 76px 0 90px; }
.dashboard-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; margin-bottom: 64px; }
.dashboard-heading h1 { max-width: 900px; font-size: clamp(58px, 7vw, 104px); }
.service-pill {
  flex: 0 0 auto; display: flex; align-items: center; gap: 9px; padding: 11px 14px;
  border: 1px solid var(--line); border-radius: 999px; font-size: 10px; font-weight: 700;
}
.service-pill i { width: 7px; height: 7px; background: #4f8b69; border-radius: 50%; box-shadow: 0 0 0 4px rgba(79, 139, 105, .13); }
.installation-card {
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(360px, .75fr); overflow: hidden;
  background: var(--white); border: 1px solid rgba(16, 32, 27, .1); border-radius: 24px;
}
.installation-visual { position: relative; min-height: 520px; overflow: hidden; background: #e9e2d3; }
.installation-visual img { width: 100%; height: 100%; display: block; object-fit: cover; }
.visual-badge {
  position: absolute; left: 24px; bottom: 24px; display: flex; align-items: center; gap: 9px;
  padding: 11px 14px; color: var(--white); background: rgba(9, 21, 16, .88);
  border: 1px solid rgba(255, 255, 255, .2); border-radius: 999px; backdrop-filter: blur(12px);
  font-size: 10px;
}
.visual-badge i { width: 7px; height: 7px; background: #d9b778; border-radius: 50%; }
.installation-copy { display: flex; flex-direction: column; justify-content: center; padding: clamp(38px, 5vw, 72px); }
.installation-copy > p:not(.eyebrow) { margin: 25px 0 34px; color: var(--muted); font-size: 13px; line-height: 1.8; }
.installation-facts { margin: 0; border-top: 1px solid var(--line); }
.installation-facts div { display: flex; justify-content: space-between; gap: 20px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.installation-facts dt { color: var(--muted); font-size: 10px; }
.installation-facts dd { margin: 0; font-size: 10px; font-weight: 700; text-align: end; }

.progress-section { padding: 110px 3vw; }
.section-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; margin-bottom: 48px; }
.section-heading h2 { max-width: 700px; }
.dashboard-status { max-width: 310px; margin: 0; color: var(--muted); font-size: 10px; text-align: end; }
.progress-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.progress-list li {
  display: grid; grid-template-columns: 56px 1fr 20px; align-items: center; gap: 22px;
  min-height: 102px; border-bottom: 1px solid var(--line); opacity: .5;
}
.progress-list li > span { color: var(--muted); font-size: 10px; }
.progress-list li div { display: grid; gap: 6px; }
.progress-list b { font-family: var(--display); font-size: 24px; font-weight: 400; }
.progress-list small { color: var(--muted); font-size: 10px; line-height: 1.5; }
.progress-list li > i { width: 12px; height: 12px; border: 1px solid var(--muted); border-radius: 50%; }
.progress-list li.complete, .progress-list li.current { opacity: 1; }
.progress-list li.complete > i { border-color: var(--palm); background: var(--palm); box-shadow: inset 0 0 0 3px var(--paper); }
.progress-list li.current > i { border-color: var(--brass); box-shadow: 0 0 0 5px rgba(184, 138, 69, .16); }
.progress-list li.current b { color: var(--clay); }
.support-card {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; padding: clamp(38px, 6vw, 80px);
  color: var(--white); background: var(--deep); border-radius: 24px;
}
.support-card h2 { max-width: 780px; }
.support-card p:not(.eyebrow) { max-width: 680px; margin: 20px 0 0; color: rgba(255, 253, 248, .66); font-size: 12px; line-height: 1.7; }
.support-card a {
  flex: 0 0 auto; padding: 15px 18px; color: var(--deep); background: var(--white);
  border-radius: 10px; font-size: 11px; font-weight: 700; text-decoration: none;
}
footer {
  width: min(calc(100% - 56px), 1440px); min-height: 80px; margin: 0 auto; display: flex;
  align-items: center; gap: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: 9px;
}
footer span:nth-child(2) { margin-right: auto; }
footer a { color: inherit; }

html[dir="rtl"] body { font-family: "Noto Kufi Arabic", var(--body); }
html[dir="rtl"] .login-copy h1,
html[dir="rtl"] .dashboard-heading h1,
html[dir="rtl"] .login-card h2,
html[dir="rtl"] .installation-copy h2,
html[dir="rtl"] .section-heading h2,
html[dir="rtl"] .support-card h2,
html[dir="rtl"] .progress-list b { font-family: "Noto Kufi Arabic", sans-serif; letter-spacing: -.035em; }
html[dir="rtl"] .eyebrow, html[dir="rtl"] .brand small { letter-spacing: 0; }
html[dir="rtl"] .login-card-number { right: auto; left: 28px; }
html[dir="rtl"] .visual-badge { left: auto; right: 24px; }
html[dir="rtl"] footer span:nth-child(2) { margin-right: 0; margin-left: auto; }

@media (max-width: 980px) {
  .login-view { grid-template-columns: 1fr; gap: 50px; padding-inline: 0; }
  .login-copy { padding-top: 34px; }
  .installation-card { grid-template-columns: 1fr; }
  .installation-visual { min-height: 420px; }
  .dashboard-heading, .section-heading, .support-card { align-items: flex-start; flex-direction: column; }
  .dashboard-status { text-align: start; }
}
@media (max-width: 620px) {
  .portal-header, main, footer { width: min(calc(100% - 32px), 1440px); }
  .portal-header { min-height: 76px; }
  .brand small, .client-name { display: none; }
  .header-actions { gap: 12px; }
  .login-view { padding: 50px 0 72px; }
  .login-copy h1, .dashboard-heading h1 { font-size: clamp(52px, 15vw, 72px); }
  .login-card { padding: 34px 24px; }
  .client-dashboard { padding-top: 50px; }
  .dashboard-heading { margin-bottom: 42px; }
  .installation-visual { min-height: 270px; }
  .installation-copy { padding: 36px 24px; }
  .progress-section { padding: 80px 0; }
  .progress-list li { grid-template-columns: 34px 1fr 14px; gap: 12px; min-height: 112px; }
  .progress-list b { font-size: 20px; }
  .support-card { padding: 38px 26px; }
  footer { flex-wrap: wrap; padding: 22px 0; }
  footer span:nth-child(2) { order: 3; width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
