body.login.hamza-login-shell {
    --hamza-green: #14573a;
    --hamza-heading: #104531;
    --hamza-ink: #172b20;
    --hamza-muted: #475467;
    --hamza-border: #74847b;
    --hamza-focus: #0056a8;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 12px;
    margin: 0;
    background: #eef3f0;
    color: var(--hamza-ink);
    font: 16px/1.65 Tahoma, Arial, sans-serif;
    direction: rtl;
}

.hamza-login-shell .center-container {
    position: static;
    inset: auto;
    transform: none;
    width: 100%;
    max-width: 568px;
    min-height: 0;
    padding: 0;
    margin: 0 auto;
}

.hamza-login-shell .center-container > .row,
.hamza-login-shell .center-container > .row > .col > .row { margin: 0; }
.hamza-login-shell .center-container > .row { width: 100%; }
.hamza-login-shell .center-container > .row > .col { padding: 0; }

.hamza-login-shell .login-container {
    width: 100%;
    min-width: 0;
    background: #fff;
    border: 1px solid #d6e3db;
    border-top: 4px solid var(--hamza-green);
    border-radius: 12px;
    box-shadow: 0 12px 35px rgba(16, 69, 49, .08);
}

.hamza-login-shell .logo-section {
    min-height: 0;
    padding: 16px 22px;
    background: #f6faf7;
    border-radius: 9px 9px 0 0;
}

.hamza-login-shell .logo-section .logo-container,
.hamza-login-shell .logo-section .logo {
    width: 100%;
    height: auto;
    max-width: none;
    position: static;
}
.hamza-login-shell .logo-section .logo-container { margin: 0 !important; }

.hamza-login-shell .logo-section .logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: var(--hamza-heading);
    font-size: 18px;
    font-weight: 700;
    text-align: center;
}

.hamza-login-shell .logo-section .logo img {
    flex: 0 0 44px;
    position: static;
    width: 44px;
    height: 44px;
    object-fit: contain;
    transform: none;
}

.hamza-login-shell #formux { padding: 27px 24px !important; }
.hamza-login {
    width: 100%;
    max-width: 420px;
    margin-inline: auto;
    text-align: start;
}
.hamza-login :is(h1, h2, p) { margin: 0; }
.hamza-login h1 { margin-bottom: 19px; color: var(--hamza-heading); font-size: 27px; font-weight: 700; line-height: 1.43; text-align: center; }
.hamza-login h2 { color: var(--hamza-heading); font-size: 17px; font-weight: 700; line-height: 1.55; }
.hamza-login .hamza-email-step { margin-bottom: 14px; color: var(--hamza-muted); font-size: 15px; }
.hamza-login #activeUsernameBlock { margin: 0 0 8px; text-align: start !important; }
.hamza-login #activeUsername { display: inline-block; max-width: 100%; overflow-wrap: anywhere; font-weight: 700; }
.hamza-login .hamza-login-fields .row { margin-inline: 0; }
.hamza-login .hamza-login-fields .row > :is(.col, .col-12) { padding-inline: 0; }
.hamza-login .hamza-hidden-role { display: none; }

.hamza-account-types legend { float: none; width: auto; margin: 0; color: var(--hamza-muted); font-size: 14px; font-weight: 700; }
.hamza-account-options { display: flex; flex-wrap: wrap; gap: 6px 10px; margin-top: 4px; }
.hamza-account-options label {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 5px 11px;
    border: 1px solid #d6e3db;
    border-radius: 6px;
    background: #f7faf8;
    cursor: pointer;
}
.hamza-login .hamza-account-options input[type='radio'] { margin: 0; accent-color: var(--hamza-green); }

.hamza-login :is(#usernameTextboxBlock, #passwordTextboxBlock) .d-flex {
    display: grid !important;
    gap: 5px;
    min-width: 0;
}

.hamza-login :is(#usernameTextboxBlock, #passwordTextboxBlock) label { padding: 0; font-weight: 700; }
.hamza-login .hamza-required { color: var(--hamza-muted); font-size: 13px; font-weight: 400; }
.hamza-login :is(#usernameTextboxBlock, #passwordTextboxBlock) .k-input { width: 100%; min-width: 0; max-width: none; }
.hamza-login :is(#usernameTextboxBlock, #passwordTextboxBlock) .d-flex > div.k-input {
    border: 0;
    background: transparent;
    box-shadow: none;
    margin-inline: 0;
    justify-self: stretch;
}

.hamza-login :is(#userName, #password) {
    box-sizing: border-box;
    min-height: 48px;
    width: 100%;
    max-width: none;
    padding: 8px 12px;
    border: 1px solid var(--hamza-border) !important;
    border-radius: 6px;
    background: #fff;
    color: var(--hamza-ink);
    text-align: left;
    font: inherit;
}

.hamza-login #userName::placeholder { color: var(--hamza-muted); opacity: 1; }

.hamza-login :is(a, button, input, [role='button']):focus-visible {
    outline: 3px solid var(--hamza-focus);
    outline-offset: 2px;
}

.hamza-login #msgArea { white-space: normal; overflow-wrap: anywhere; color: #922b17 !important; }
.hamza-login #msgArea:empty { margin: 0 !important; }

.hamza-login :is(#btnLogin, #newAccount, #EntraIDButton) {
    box-sizing: border-box;
    display: block;
    width: 100%;
    min-height: 48px;
    min-width: 0;
    max-width: none;
    margin: 7px 0 0 !important;
    padding: 8px 20px;
    border: 1px solid var(--hamza-green);
    border-radius: 6px;
    background: var(--hamza-green);
    color: #fff;
    font: inherit;
    font-weight: 700;
    white-space: normal;
}

.hamza-login :is(#btnLogin, #newAccount, #EntraIDButton):hover:not(:disabled) { background: var(--hamza-heading); }
.hamza-login #EntraIDButton { background: #fff; color: var(--hamza-heading); }
.hamza-login #EntraIDButton:hover:not(:disabled) { background: #f6faf7; }
.hamza-login #btnLogin:disabled { opacity: .7; }
.hamza-login #passwordReset { margin-top: 4px; padding: 0 !important; }
.hamza-login .hamza-signup {
    display: grid;
    justify-items: center;
    gap: 6px;
    margin-block: 10px 18px;
    text-align: center;
}
.hamza-login #signUp { color: var(--hamza-muted); font-size: 15px; }
.hamza-login .hamza-signup #newAccount {
    width: auto;
    max-width: 100%;
    min-height: 44px;
    margin: 0 !important;
    padding-inline: 24px;
    color: var(--hamza-heading);
    background: white;
}
.hamza-login .hamza-signup #newAccount:hover:not(:disabled) { background: #f0f8f3; }

.hamza-login :is(#passwordReset a, #change-user, #VisualizerBtn, .hamza-guide-link, .hamza-app-links a) {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    color: var(--hamza-heading);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.hamza-login .hamza-open-files {
    margin-top: 15px;
    padding: 15px 16px 7px;
    border: 1px solid #d6e3db;
    border-radius: 8px;
    background: #f6faf7;
}

.hamza-login .hamza-open-files p { margin-top: 4px; color: var(--hamza-muted); font-size: 14px; text-wrap: pretty; }
.hamza-login .hamza-file-actions { display: grid; justify-items: start; margin-top: 2px; }
.hamza-login .hamza-guide-link {
    margin-block: 4px 6px;
    padding-inline: 14px;
    border: 1px solid currentColor;
    border-radius: 6px;
    font-size: 14px;
}
.hamza-login .hamza-login-downloads { margin-top: 20px; padding-top: 16px; border-top: 1px solid #d6e3db; }
.hamza-login .hamza-download-title { margin-bottom: 8px; }
.hamza-login .hamza-app-links { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.hamza-login #downloadArea .hamza-app-link {
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr) 10px;
    align-items: center;
    gap: 12px;
    min-height: 56px;
    padding: 8px 12px;
    border: 1px solid #c8d9cf;
    border-radius: 8px;
    background: #fff;
    color: var(--hamza-heading);
    text-align: start;
    text-decoration: none;
}
.hamza-login #downloadArea .hamza-app-link:hover { background: #f0f8f3; border-color: #427958; }
.hamza-login #downloadArea .hamza-app-link:is(:hover, :focus-visible) .hamza-app-name { text-decoration: underline; text-underline-offset: 3px; }
.hamza-login .hamza-app-link img { display: block; width: 32px; height: 32px; background: #14573a; border-radius: 6px; }
.hamza-login .hamza-app-link::after {
    content: ""; width: 8px; height: 8px; margin: auto; border-block-end: 2px solid currentColor;
    border-inline-end: 2px solid currentColor; transform: rotate(45deg);
}
.hamza-login .hamza-app-copy { display: grid; gap: 1px; }
.hamza-login .hamza-app-name { font-size: 15px; line-height: 1.5; font-weight: 700; }
.hamza-login .hamza-app-detail { color: var(--hamza-muted); font-size: 13px; line-height: 1.6; font-weight: 400; }
.hamza-login #captchaArea { text-align: center; }
.hamza-login #captchaArea .newCaptcha {
    display: inline-flex; align-items: center; justify-content: center; min-height: 44px;
    color: var(--hamza-heading); text-decoration: underline; text-underline-offset: 3px;
}
.hamza-login #captchaArea #captcha {
    box-sizing: border-box; width: 9rem; max-width: 100%; min-height: 44px; margin: 0 auto 8px;
    border: 1px solid var(--hamza-border); border-radius: 6px; background: #fff;
    color: var(--hamza-ink); font: inherit; direction: ltr; text-align: center;
}
.hamza-login #msgArea { text-align: center; }
.hamza-login-shell .loginFooter { padding-top: 13px; text-align: center; text-transform: none; }
.hamza-login-shell .loginFooter p { margin: 0; color: var(--hamza-muted); font-size: 12px; text-align: center; }

@media (max-width: 480px) {
    body.login.hamza-login-shell { padding-block: 12px; }
    .hamza-login-shell .logo-section { padding: 12px 9px; }
    .hamza-login-shell #formux { padding: 18px 17px !important; }
    .hamza-login h1 { font-size: 23px; }
}
