@font-face {
    font-family: "Cairo HMS";
    src: url("../../shared/fonts/cairo-arabic-variable.woff2") format("woff2");
    font-style: normal;
    font-weight: 200 1000;
    font-display: swap;
}
@font-face {
    font-family: "Inter HMS";
    src: url("../../shared/fonts/inter-latin-variable.woff2") format("woff2");
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
}
:root {
    --login-ink: #10213b;
    --login-muted: #68758a;
    --login-line: #dfe6ef;
    --login-soft: #f4f7fb;
    --login-navy: #07172d;
    --login-navy-light: #112d50;
    --login-cyan: #16b8c6;
    --login-gold: #e5b75d;
    --login-danger: #b9364d;
    --login-success: #087b58;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }
body.login-page {
    margin: 0;
    color: var(--login-ink);
    background: #fff;
    font-family: "Inter HMS", "Segoe UI", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}
[dir="rtl"] body.login-page { font-family: "Cairo HMS", Tahoma, Arial, sans-serif; }
button, input, select { font: inherit; }
button, select { cursor: pointer; }
svg { display: block; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.login-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(430px, 42%) minmax(0, 58%);
}
.login-access {
    position: relative;
    z-index: 2;
    min-height: 100vh;
    background:
        radial-gradient(circle at 0 100%, rgba(22,184,198,.06), transparent 30%),
        #fff;
}
.login-access-inner {
    width: min(100%, 610px);
    min-height: 100vh;
    margin-inline: auto;
    padding: 34px clamp(34px, 6vw, 78px) 24px;
    display: flex;
    flex-direction: column;
}
.login-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.login-brand { min-width: 0; display: flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; }
.login-brand-mark {
    flex: 0 0 45px;
    width: 45px;
    height: 45px;
    display: grid;
    place-items: center;
    color: #fff;
    border-radius: 15px;
    background: linear-gradient(145deg, #173b65, var(--login-navy));
    box-shadow: 0 12px 28px rgba(7,23,45,.2);
}
.login-brand-mark svg { width: 29px; height: 29px; stroke-width: 2; }
.login-brand strong, .login-brand small { display: block; }
.login-brand strong { max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.login-brand small { margin-top: 4px; color: var(--login-muted); font-size: 10px; letter-spacing: .06em; }
.login-language {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 7px 9px;
    border: 1px solid var(--login-line);
    border-radius: 12px;
    background: #fff;
}
.login-language span, .login-language svg { width: 17px; height: 17px; color: var(--login-muted); }
.login-language select {
    max-width: 88px;
    padding: 0;
    color: var(--login-ink);
    border: 0;
    outline: 0;
    background: transparent;
    font-size: 11px;
}

.login-form-wrap { width: 100%; margin: auto 0; padding: 54px 0 34px; }
.login-heading { margin-bottom: 28px; }
.login-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 14px;
    color: #257481;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .04em;
}
.login-eyebrow i { width: 7px; height: 7px; border-radius: 50%; background: var(--login-cyan); box-shadow: 0 0 0 5px rgba(22,184,198,.1); }
.login-heading h1 { margin: 0; color: var(--login-ink); font-size: clamp(28px, 3vw, 38px); line-height: 1.22; letter-spacing: -.035em; }
.login-heading p { max-width: 410px; margin: 10px 0 0; color: var(--login-muted); font-size: 13px; line-height: 1.8; }

.login-alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 18px;
    padding: 12px 14px;
    border: 1px solid;
    border-radius: 14px;
    font-size: 12px;
}
.login-alert span { flex: 0 0 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; font-weight: 900; }
.login-alert p { margin: 2px 0 0; line-height: 1.55; }
.login-alert.is-error { color: var(--login-danger); border-color: #f0c9d1; background: #fff6f7; }
.login-alert.is-error span { color: #fff; background: var(--login-danger); }
.login-alert.is-success { color: var(--login-success); border-color: #bee6d7; background: #f2fbf7; }
.login-alert.is-success span { color: #fff; background: var(--login-success); }

.login-form { display: grid; gap: 17px; }
.login-field { display: grid; gap: 8px; }
.login-field > span:first-child { color: var(--login-ink); font-size: 11px; font-weight: 700; }
.login-control { position: relative; display: block; }
.login-control > svg {
    position: absolute;
    inset-inline-start: 15px;
    top: 50%;
    width: 19px;
    height: 19px;
    color: #8b98aa;
    transform: translateY(-50%);
    pointer-events: none;
}
.login-control input {
    width: 100%;
    height: 51px;
    padding: 0 46px;
    color: var(--login-ink);
    border: 1px solid var(--login-line);
    border-radius: 15px;
    outline: 0;
    background: var(--login-soft);
    font-size: 13px;
    transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}
.login-control input::placeholder { color: #a3adbb; }
.login-control input:hover { border-color: #cbd5e2; background: #fff; }
.login-control input:focus { border-color: var(--login-cyan); background: #fff; box-shadow: 0 0 0 4px rgba(22,184,198,.1); }
.password-toggle {
    position: absolute;
    inset-inline-end: 9px;
    top: 50%;
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    padding: 0;
    color: #8491a4;
    border: 0;
    border-radius: 10px;
    background: transparent;
    transform: translateY(-50%);
}
.password-toggle:hover { color: var(--login-ink); background: #e9eef5; }
.password-toggle svg { width: 19px; height: 19px; }
.password-toggle .eye-closed { display: none; }
.password-toggle[aria-pressed="true"] .eye-open { display: none; }
.password-toggle[aria-pressed="true"] .eye-closed { display: block; }

.mfa-disclosure {
    margin-top: -4px;
    border: 1px dashed #d8e0eb;
    border-radius: 14px;
    background: #fbfcfe;
}
.mfa-disclosure summary {
    min-height: 42px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 13px;
    color: var(--login-muted);
    list-style: none;
    font-size: 11px;
    font-weight: 700;
}
.mfa-disclosure summary::-webkit-details-marker { display: none; }
.mfa-disclosure summary small { margin-inline-start: auto; padding: 3px 7px; color: #768499; border-radius: 7px; background: #edf1f6; font-size: 9px; }
.mfa-disclosure summary svg { width: 16px; height: 16px; transition: transform .18s ease; }
.mfa-disclosure[open] summary svg { transform: rotate(180deg); }
.mfa-disclosure .login-field { padding: 2px 10px 10px; }
.mfa-disclosure .login-control input { height: 44px; background: #fff; }

.login-submit {
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 2px;
    padding: 0 18px;
    color: #fff;
    border: 0;
    border-radius: 15px;
    background: linear-gradient(135deg, #173b65, var(--login-navy));
    box-shadow: 0 14px 30px rgba(7,23,45,.2);
    font-size: 13px;
    font-weight: 800;
    transition: transform .16s ease, box-shadow .16s ease, filter .16s ease;
}
.login-submit svg { width: 18px; height: 18px; }
[dir="rtl"] .login-submit svg { transform: scaleX(-1); }
.login-submit:hover { filter: brightness(1.08); transform: translateY(-1px); box-shadow: 0 17px 34px rgba(7,23,45,.25); }
.login-submit:active { transform: translateY(1px); }
.login-submit.is-loading { opacity: .8; pointer-events: none; }
.login-recovery-link { display: block; text-align: center; color: #0b8790; text-decoration: none; font-size: 11px; font-weight: 800; }
.login-recovery-link:hover { text-decoration: underline; }

.login-assurance {
    display: flex;
    align-items: center;
    gap: 11px;
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid #edf0f4;
}
.login-assurance-icon { flex: 0 0 35px; width: 35px; height: 35px; display: grid; place-items: center; color: var(--login-success); border-radius: 11px; background: #eaf8f2; }
.login-assurance-icon svg { width: 19px; height: 19px; }
.login-assurance p, .login-assurance strong, .login-assurance small { display: block; margin: 0; }
.login-assurance strong { color: var(--login-ink); font-size: 10px; }
.login-assurance small { margin-top: 3px; color: var(--login-muted); font-size: 9px; line-height: 1.5; }
.login-footer { display: flex; justify-content: space-between; gap: 16px; color: #98a2b1; font-size: 9px; }

.login-showcase {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    color: #fff;
    background:
        radial-gradient(circle at 90% 8%, rgba(22,184,198,.25), transparent 27%),
        radial-gradient(circle at 5% 96%, rgba(229,183,93,.14), transparent 29%),
        linear-gradient(145deg, #0b203c 0%, #07172d 57%, #050f20 100%);
}
.login-showcase::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: .22;
    background-image:
        linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: linear-gradient(to bottom, black, transparent 92%);
}
.showcase-orb { position: absolute; border-radius: 50%; filter: blur(2px); }
.orb-one { width: 220px; height: 220px; top: -100px; right: -70px; border: 1px solid rgba(255,255,255,.14); box-shadow: inset 0 0 70px rgba(22,184,198,.08); }
.orb-two { width: 360px; height: 360px; bottom: -230px; left: -150px; border: 1px solid rgba(229,183,93,.12); }
.showcase-content {
    position: relative;
    z-index: 1;
    width: min(88%, 830px);
    min-height: 100vh;
    margin: auto;
    padding: clamp(45px, 7vh, 82px) 0 36px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.showcase-copy { max-width: 660px; }
.showcase-badge { display: inline-flex; align-items: center; gap: 8px; padding: 7px 10px; color: #8fe7ed; border: 1px solid rgba(143,231,237,.17); border-radius: 999px; background: rgba(22,184,198,.08); font-size: 9px; font-weight: 800; letter-spacing: .05em; }
.showcase-badge i { width: 6px; height: 6px; border-radius: 50%; background: #38d4df; box-shadow: 0 0 0 5px rgba(56,212,223,.1); }
.showcase-copy h2 { max-width: 720px; margin: 17px 0 10px; font-size: clamp(26px, 3.1vw, 43px); line-height: 1.28; letter-spacing: -.035em; }
.showcase-copy p { max-width: 650px; margin: 0; color: rgba(222,234,249,.66); font-size: 12px; line-height: 1.8; }

.product-preview {
    position: relative;
    width: min(100%, 760px);
    aspect-ratio: 1.82;
    display: flex;
    margin: clamp(28px, 5vh, 48px) 0 27px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 21px;
    background: #f2f6fb;
    box-shadow: 0 32px 70px rgba(0,0,0,.34), 0 0 0 8px rgba(255,255,255,.025);
    transform: perspective(1400px) rotateY(-2deg) rotateX(1deg);
    transform-origin: center;
}
[dir="rtl"] .product-preview { transform: perspective(1400px) rotateY(2deg) rotateX(1deg); }
.preview-sidebar { flex: 0 0 15%; padding: 6% 3%; background: linear-gradient(180deg, #112e50, #08192f); }
.preview-logo { width: 28px; height: 28px; display: block; margin: 0 auto 45%; border-radius: 9px; background: linear-gradient(145deg, var(--login-gold), #fff0bd); }
.preview-sidebar i { width: 78%; height: 8px; display: block; margin: 0 auto 30%; border-radius: 5px; background: rgba(255,255,255,.14); }
.preview-sidebar i.is-active { height: 25px; border-radius: 7px; background: rgba(22,184,198,.75); box-shadow: 0 8px 18px rgba(22,184,198,.22); }
.preview-workspace { flex: 1; min-width: 0; color: var(--login-ink); }
.preview-topbar { height: 13%; display: flex; align-items: center; justify-content: space-between; padding: 0 4%; border-bottom: 1px solid #e5eaf2; background: #fff; }
.preview-topbar > span { width: 25%; height: 8px; border-radius: 4px; background: #ecf0f5; }
.preview-topbar > div { display: flex; align-items: center; gap: 8px; }
.preview-topbar i { width: 13px; height: 13px; border-radius: 50%; background: #edf1f6; }
.preview-topbar b { width: 25px; height: 25px; border-radius: 8px; background: #12345b; }
.preview-title { display: flex; align-items: center; justify-content: space-between; padding: 3% 4% 2%; }
.preview-title strong, .preview-title small { display: block; border-radius: 4px; background: #cfd8e3; }
.preview-title strong { width: 90px; height: 9px; }
.preview-title small { width: 60px; height: 5px; margin-top: 6px; background: #e0e6ee; }
.preview-title button { width: 55px; height: 20px; border: 0; border-radius: 6px; background: #12aebc; }
.preview-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2%; padding: 0 4% 3%; }
.preview-stats > div { display: flex; align-items: center; gap: 9%; padding: 9%; border: 1px solid #e8edf3; border-radius: 10px; background: #fff; box-shadow: 0 7px 16px rgba(16,33,59,.05); }
.preview-stats i { flex: 0 0 24%; aspect-ratio: 1; border-radius: 7px; background: #dce5ef; }
.preview-stats i.cyan { background: #bdeef1; }
.preview-stats i.gold { background: #f7e4b7; }
.preview-stats i.green { background: #bfe8d9; }
.preview-stats span { flex: 1; }
.preview-stats b, .preview-stats small { display: block; border-radius: 4px; background: #cbd5e1; }
.preview-stats b { width: 52%; height: 8px; }
.preview-stats small { width: 80%; height: 5px; margin-top: 5px; background: #e5eaf0; }
.preview-body { display: grid; grid-template-columns: 1.5fr 1fr; gap: 2%; padding: 0 4%; }
.preview-chart, .preview-rooms { min-width: 0; padding: 5%; border: 1px solid #e8edf3; border-radius: 11px; background: #fff; }
.preview-chart header, .preview-rooms header { display: flex; align-items: center; justify-content: space-between; }
.preview-chart header strong, .preview-rooms header strong { width: 35%; height: 7px; border-radius: 4px; background: #ccd6e2; }
.preview-chart header small, .preview-rooms header small { width: 20%; height: 5px; border-radius: 4px; background: #e4e9ef; }
.chart-grid { height: 95px; display: flex; align-items: flex-end; gap: 6%; margin-top: 10%; border-bottom: 1px solid #e9edf3; background: repeating-linear-gradient(to bottom, transparent 0, transparent 23px, #f0f3f7 24px); }
.chart-grid i { flex: 1; height: var(--h); border-radius: 4px 4px 0 0; background: linear-gradient(to top, #14aebb, #50d2da); }
.preview-rooms > div { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8%; margin-top: 12%; }
.preview-rooms i { aspect-ratio: 1.45; display: block; border: 1px solid; border-radius: 7px; background: #f4f7fb; }
.preview-rooms i.ready { border-color: #85d5bc; background: #eaf8f2; }
.preview-rooms i.busy { border-color: #f0a8b4; background: #fff0f3; }
.preview-rooms i.clean { border-color: #f0d18a; background: #fff8e9; }

.showcase-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 13px; }
.showcase-features > div { min-width: 0; display: flex; align-items: center; gap: 10px; padding: 11px; border: 1px solid rgba(255,255,255,.09); border-radius: 13px; background: rgba(255,255,255,.045); backdrop-filter: blur(8px); }
.showcase-features > div > span { flex: 0 0 35px; height: 35px; display: grid; place-items: center; color: #84e3e9; border-radius: 10px; background: rgba(22,184,198,.1); }
.feature-icon { width: 18px; height: 18px; }
.showcase-features p, .showcase-features strong, .showcase-features small { display: block; min-width: 0; margin: 0; }
.showcase-features strong { font-size: 9px; }
.showcase-features small { margin-top: 3px; overflow: hidden; color: rgba(222,234,249,.5); font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }

@media (max-width: 1050px) {
    .login-shell { grid-template-columns: minmax(400px, 47%) minmax(0, 53%); }
    .showcase-features { grid-template-columns: 1fr; }
    .showcase-features > div { padding: 8px 10px; }
    .showcase-features > div > span { width: 30px; height: 30px; flex-basis: 30px; }
}
@media (max-width: 800px) {
    .login-shell { display: block; min-height: 100vh; background: linear-gradient(145deg, #eef7f8, #f6f8fb 45%, #fff); }
    .login-access { background: transparent; }
    .login-access-inner { width: min(100%, 560px); padding: 24px clamp(20px, 7vw, 45px); }
    .login-showcase { display: none; }
    .login-form-wrap { margin: auto 0; padding: 45px 0 30px; }
}
@media (max-width: 460px) {
    .login-access-inner { padding: 19px 18px; }
    .login-brand-mark { width: 40px; height: 40px; flex-basis: 40px; border-radius: 13px; }
    .login-brand-mark svg { width: 25px; height: 25px; }
    .login-brand strong { max-width: 178px; font-size: 12px; }
    .login-brand small { font-size: 8px; }
    .login-language { padding: 6px 7px; }
    .login-language span { display: none; }
    .login-language select { max-width: 68px; font-size: 10px; }
    .login-heading { margin-bottom: 23px; }
    .login-heading h1 { font-size: 29px; }
    .login-footer { flex-direction: column; align-items: center; gap: 5px; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
