/* Quiet burgundy login. Background is a small local SVG; no remote images. */
:root { --brand: #842b3b; --brand-dark: #6b2030; --ink: #342e33; --muted: #766d74; --line: #e8e0e3; --soft: #f5ecef; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; color: var(--ink); background: #f4f0ee url("../images/login-calm-background.svg") center/cover no-repeat; font: 14px/1.85 "TZ Cairo","Segoe UI",Tahoma,Arial,sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { cursor: pointer; touch-action: manipulation; }
::selection { background: #e9d5db; color: #5f2331; }
:focus-visible { outline: 2px solid #a86676; outline-offset: 3px; }
.login-page { display: flex; align-items: center; justify-content: center; min-height: 100vh; min-height: 100dvh; padding: 36px; }
.login-shell { display: grid; grid-template-columns: .95fr 1fr; width: min(1090px,100%); min-height: 760px; overflow: hidden; border: 1px solid #e5dce0; border-radius: 22px; background: #fff; box-shadow: 0 16px 60px #49353d09; }
.login-welcome { position: relative; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; padding: 35px 39px 28px; background: #f8f5f4; color: var(--ink); border-inline-end: 1px solid #ebe4e6; }
.login-welcome::after { content: ''; position: absolute; inset: 0 0 auto; height: 2px; background: #a37782; opacity: .45; }
.login-brand { display: inline-flex; width: 241px; max-width: 100%; align-self: flex-start; padding: 8px 16px; border: 1px solid #ebe4e5; border-radius: 11px; background: #fff; }
.login-brand img { display: block; width: 100%; height: auto; object-fit: contain; }
.welcome-copy { margin: 26px 0 24px; }
.welcome-eyebrow { display: inline-flex; align-items: center; gap: 9px; direction: ltr; color: #856b78; font: 650 9px/1.8 Arial,sans-serif; letter-spacing: 1.6px; }
.welcome-eyebrow > span { width: 5px; height: 5px; border-radius: 50%; background: #956371; }
.welcome-copy h1 { font-size: clamp(32px,3.1vw,40px); line-height: 1.65; font-weight: 750; letter-spacing: -.8px; margin: 17px 0; }
.welcome-copy h1 span { color: var(--brand); }
.welcome-copy > p { color: #7b6d75; font-size: 13px; line-height: 2.2; margin: 0 0 26px; }
.welcome-workspace { padding: 4px 0 0; border: 0; border-radius: 0; background: transparent; }
.welcome-workspace-heading { display: flex; justify-content: space-between; align-items: center; gap: 9px; padding: 12px 0 14px; border-bottom: 1px solid #e7dfe2; font-size: 10px; color: #76646d; }
.welcome-workspace-heading > span:first-child { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; }
.welcome-workspace-tag { font-size: 9px; color: #81737b; }
.welcome-module { display: flex; align-items: center; gap: 12px; padding: 11px 0; }
.welcome-module + .welcome-module { border-top: 1px solid #eee8ea; }
.welcome-module > .bi:first-child { display: grid; place-items: center; flex-shrink: 0; width: 35px; height: 35px; border: 1px solid #e6dbdf; border-radius: 9px; background: #fdfbfc; color: #94707c; font-size: 17px; }
.welcome-module strong { display: block; font-size: 12px; color: #67565f; font-weight: 650; }
.welcome-module small { display: block; margin-top: 2px; color: #7e6e78; font-size: 10px; }
.welcome-module > .bi:last-child { margin-inline-start: auto; color: #c1b1b9; font-size: 13px; }
.welcome-footer { display: flex; justify-content: space-between; gap: 14px; color: #a3949b; font-size: 9px; }
.welcome-footer > span:first-child { font: 650 8px/1.8 Arial,sans-serif; letter-spacing: 1px; }
.welcome-footer b { color: #956774; font-weight: 650; }
.login-form-panel { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 36px 43px 23px; background: #fff; }
.login-form-wrap { width: 100%; max-width: 360px; margin: auto 0; }
.login-symbol { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 19px; border: 1px solid #e9dce1; border-radius: 12px; background: #faf5f7; color: #936572; font-size: 20px; }
.login-eyebrow { display: block; color: #82717b; font-size: 10px; font-weight: 500; }
.login-form-wrap h2 { margin: 5px 0 8px; color: var(--ink); font-size: 27px; font-weight: 750; line-height: 1.65; letter-spacing: -.4px; }
.login-description { margin: 0 0 23px; color: #7f707a; font-size: 12px; }
.login-form label { display: block; margin: 16px 0 7px; color: #6c5d66; font-size: 12px; font-weight: 650; }
.login-form label small { margin-inline-start: 5px; color: #8a7681; font-size: 9px; font-weight: 400; }
.login-input { display: flex; align-items: center; gap: 10px; min-height: 49px; padding: 0 13px; border: 1px solid #e3dce0; border-radius: 9px; background: #fff; }
.login-input:focus-within { border-color: #b58a97; box-shadow: 0 0 0 3px #842b3b08; }
.login-input > i { color: #b09ba5; font-size: 17px; }
.login-input input { width: 100%; min-width: 0; height: 48px; padding: 9px 0; border: 0; border-radius: 0; outline: 0; background: transparent; color: var(--ink); direction: ltr; text-align: right; font-size: 13px; }
.login-input input::placeholder { font-size: 11px; color: #8f7e88; direction: rtl; }
.login-input input[readonly] { color: #82717b; }
.login-input #loginDeviceName, .login-input #loginJobTitle { direction: rtl; text-align: right; }
.password-toggle { display: grid; place-items: center; width: 31px; height: 35px; padding: 0; flex-shrink: 0; border: 0; border-radius: 5px; background: transparent; color: #ac97a1; font-size: 17px; }
.password-toggle:hover { color: var(--brand); background: var(--soft); }
.login-device-note { display: flex; align-items: flex-start; gap: 7px; margin: 10px 0; color: #7f6d78; font-size: 10px; line-height: 1.85; }
.login-device-note .bi { color: #b9a8b0; font-size: 13px; }
.login-submit { display: flex; align-items: center; justify-content: center; gap: 16px; width: 100%; min-height: 49px; margin-top: 21px; padding: 12px 15px; border: 1px solid var(--brand); border-radius: 9px; background: var(--brand); color: #fff; font-size: 12px; font-weight: 650; box-shadow: none; transition: background-color .15s; }
.login-submit:hover { background: var(--brand-dark); border-color: var(--brand-dark); }
.login-submit:disabled { opacity: .7; cursor: wait; }
.login-help { display: flex; justify-content: center; align-items: flex-start; gap: 7px; margin: 13px 0 0; color: #7f6d78; font-size: 9px; }
.login-help .bi { font-size: 12px; }
.login-error { display: flex; align-items: flex-start; gap: 9px; padding: 12px; margin-bottom: 17px; border: 1px solid #dcbec7; border-radius: 8px; background: #faf1f4; color: #7a2e40; font-size: 12px; }
/* Support occupies the former logo position, above the welcome content. */
.technical-support { width: 100%; margin: 0; padding: 19px 21px; border: 1px solid #e2cdd4; border-radius: 13px; background: #fff; }
.support-heading { display: flex; align-items: center; gap: 13px; }
.support-icon { display: grid; place-items: center; width: 46px; height: 46px; flex-shrink: 0; border-radius: 12px; background: var(--soft); color: var(--brand); font-size: 25px; }
.support-heading strong { color: var(--brand); font-size: 14px; font-weight: 700; }
.support-heading p { margin: 2px 0 0; color: var(--ink); font-size: 19px; font-weight: 750; line-height: 1.7; }
.support-contact { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; margin-top: 12px; padding-top: 10px; border-top: 1px solid #eee5e8; }
.support-contact > span { order: 2; color: #766570; font: 650 11px/1.8 Arial,sans-serif; letter-spacing: .7px; }
.support-contact a { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; color: var(--brand); font: 750 25px/1.7 "TZ Cairo",sans-serif; letter-spacing: 1px; }
.support-contact a:hover { text-decoration: underline; text-underline-offset: 5px; }
.support-contact a > .bi { font-size: 19px; }
.support-contact a > .bi:last-child { color: #a68491; font-size: 14px; }
.login-footer { margin-top: 24px; padding-top: 2px; color: #8b7480; font-size: 10px; text-align: center; }
.login-footer strong { color: #8d727f; font-weight: 650; }
@media (max-width: 1050px) and (min-width: 801px) {
    .login-page { padding: 24px; }
    .login-welcome { padding-inline: 28px; }
    .login-form-panel { padding-inline: 30px; }
    .welcome-copy h1 { font-size: 35px; }
    .welcome-workspace-tag { display: none; }
}
@media (max-width: 800px) {
    .login-page { padding: 24px 16px max(24px,env(safe-area-inset-bottom)); align-items: flex-start; }
    .login-shell { display: block; width: min(490px,100%); min-height: 0; border-radius: 18px; }
    .login-welcome { min-height: 0; padding: 22px; align-items: center; border-inline-end: 0; border-bottom: 1px solid #eae3e6; }
    .login-brand { align-self: center; width: 221px; padding: 5px 14px; border-radius: 9px; }
    .welcome-copy, .welcome-footer { display: none; }
    .login-form-panel { padding: 25px 26px 22px; }
    .login-form-wrap { max-width: none; }
    .login-symbol { display: none; }
    .login-form-wrap h2 { font-size: 25px; margin-top: 4px; }
    .login-description { font-size: 11px; margin-bottom: 20px; }
    .login-input input { font-size: 16px; }
    .login-input { min-height: 50px; }
    .password-toggle { min-height: 40px; width: 33px; }
    .login-submit { min-height: 49px; }
    .technical-support { padding: 16px 18px; }
    .support-contact a { font-size: 25px; }
    .login-footer { margin-top: 22px; }
}
@media (max-width: 380px) { .login-page { padding: 14px; } .login-form-panel { padding-inline: 21px; } .login-welcome { padding: 17px; } .technical-support { padding: 14px; } .support-heading { gap: 10px; } .support-icon { width: 38px; height: 42px; font-size: 22px; } .support-heading p { font-size: 16px; } .support-contact a { font-size: 23px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }
