/* ============================================================
   St. Mary Visual Identity
   كنيسة السيدة العذراء مريم بالعاشر من رمضان
   أسرة داود النبي
   ============================================================ */

:root {
    --stm-primary: #0b6fa4;
    --stm-primary-dark: #07547d;
    --stm-primary-soft: #eaf4fb;
    --stm-accent: #7c3aed;
    --stm-accent-dark: #6425cf;
    --stm-accent-soft: #f3edff;
    --stm-danger: #c61d24;
    --stm-danger-soft: #fff1f2;
    --stm-success: #16815d;
    --stm-success-soft: #eaf8f2;
    --stm-warning: #b97309;
    --stm-warning-soft: #fff8e8;
    --stm-page-bg: #f4f5f9;
    --stm-surface: #ffffff;
    --stm-surface-soft: #f8fafc;
    --stm-text: #101828;
    --stm-text-soft: #475467;
    --stm-muted: #667085;
    --stm-border: #d7dbe3;
    --stm-border-strong: #c4cad4;
    --stm-radius-sm: 10px;
    --stm-radius-md: 16px;
    --stm-radius-lg: 22px;
    --stm-radius-pill: 999px;
    --stm-shadow-sm: 0 3px 10px rgba(16, 24, 40, 0.05);
    --stm-shadow-md: 0 8px 24px rgba(16, 24, 40, 0.07);
    --stm-shadow-lg: 0 16px 42px rgba(16, 24, 40, 0.11);
    --stm-transition: 160ms ease;
}

/* ============================================================
   Global Reset
   ============================================================ */

html {
    width: 100%;
    min-width: 0;
    min-height: 100%;
    direction: rtl;
    background-color: var(--stm-page-bg);
}

body {
    width: 100%;
    min-width: 0;
    min-height: 100vh;
    margin: 0;
    direction: rtl;
    overflow-x: hidden;
    background-color: var(--stm-page-bg);
    color: var(--stm-text);
    font-family: "Segoe UI", Tahoma, Arial, sans-serif;
    line-height: 1.5;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

button,
input,
select,
textarea {
    font-family: inherit;
}

a {
    color: var(--stm-primary);
}

/* ============================================================
   Main Application Layout
   ============================================================ */

.app-layout {
    width: 100%;
    min-width: 0;
    min-height: 100vh;
    background: radial-gradient( circle at 95% 0%, rgba(11, 111, 164, 0.06), transparent 24% ), var(--stm-page-bg);
}

.app-layout-content {
    width: 100%;
    min-width: 0;
    min-height: 100vh;
}

/* ============================================================
   Shared Page Container
   ============================================================ */

.stm-page,
.system-admin-page,
.launchpad-page,
.son-form-page,
.servant-form-page,
.servant-attendance-page,
.servant-report-page,
.sons-class-page,
.sons-class-browse-page,
.sons-qr-page {
    width: 100%;
    min-width: 0;
    min-height: 100vh;
    padding: clamp(12px, 2vw, 28px);
    background-color: transparent;
    color: var(--stm-text);
}

.stm-page-container {
    width: min(1580px, 100%);
    margin-inline: auto;
}

/* ============================================================
   Shared Cards and Sections
   ============================================================ */

.stm-card,
.system-admin-card,
.son-form-section,
.servant-form-section,
.servant-attendance-card,
.servant-report-card,
.sons-class-card,
.sons-qr-card {
    min-width: 0;
    border: 1px solid var(--stm-border);
    border-radius: var(--stm-radius-md);
    background-color: var(--stm-surface);
    box-shadow: var(--stm-shadow-sm);
}

.stm-card {
    padding: clamp(16px, 2vw, 26px);
}

/* ============================================================
   Shared Headers
   ============================================================ */

.stm-page-header,
.system-admin-header,
.son-form-header,
.servant-form-header,
.servant-attendance-header,
.servant-report-header,
.sons-class-header,
.sons-qr-header {
    display: flex;
    width: 100%;
    min-width: 0;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: clamp(17px, 2vw, 27px);
    border: 1px solid var(--stm-border);
    border-radius: var(--stm-radius-md);
    background-color: var(--stm-surface);
    box-shadow: var(--stm-shadow-md);
}

    .stm-page-header h1,
    .system-admin-header h1,
    .son-form-header h1,
    .servant-form-header h1,
    .servant-attendance-header h1,
    .servant-report-header h1,
    .sons-class-header h1,
    .sons-qr-header h1 {
        margin: 0;
        color: var(--stm-text);
        font-size: clamp(25px, 2.1vw, 38px);
        font-weight: 800;
        line-height: 1.3;
    }

    .stm-page-header p,
    .system-admin-header p,
    .son-form-header p,
    .servant-form-header p,
    .servant-attendance-header p,
    .servant-report-header p,
    .sons-class-header p,
    .sons-qr-header p {
        margin: 5px 0 0;
        color: var(--stm-muted);
        font-size: clamp(13px, 1vw, 16px);
        line-height: 1.65;
    }

/* ============================================================
   Shared Home Button
   ============================================================ */

.stm-home-button,
.system-admin-home-button,
.son-form-home,
.son-form-home-button,
.servant-form-home,
.servant-attendance-home,
.servant-report-home,
.sons-class-home,
.sons-qr-home {
    display: inline-flex;
    min-width: 190px;
    min-height: 50px;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 10px 22px;
    border: 1px solid var(--stm-primary);
    border-radius: var(--stm-radius-pill);
    background-color: var(--stm-surface);
    color: var(--stm-primary);
    font-size: 15px;
    font-weight: 750;
    text-decoration: none;
    cursor: pointer;
    transition: border-color var(--stm-transition), background-color var(--stm-transition), color var(--stm-transition), box-shadow var(--stm-transition), transform var(--stm-transition);
}

    .stm-home-button:hover,
    .stm-home-button:focus,
    .system-admin-home-button:hover,
    .system-admin-home-button:focus,
    .son-form-home:hover,
    .son-form-home:focus,
    .son-form-home-button:hover,
    .son-form-home-button:focus,
    .servant-form-home:hover,
    .servant-form-home:focus,
    .servant-attendance-home:hover,
    .servant-attendance-home:focus,
    .servant-report-home:hover,
    .servant-report-home:focus,
    .sons-class-home:hover,
    .sons-class-home:focus,
    .sons-qr-home:hover,
    .sons-qr-home:focus {
        border-color: var(--stm-primary-dark);
        outline: none;
        background-color: var(--stm-primary);
        color: #ffffff;
        box-shadow: 0 7px 18px rgba(11, 111, 164, 0.20);
        transform: translateY(-1px);
    }

/* ============================================================
   Shared Form Fields
   ============================================================ */

.form-label,
.stm-field label,
.son-form-field label,
.servant-form-field label {
    display: block;
    margin-bottom: 7px;
    color: var(--stm-text-soft);
    font-size: 14px;
    font-weight: 700;
}

.form-control,
.form-select {
    width: 100%;
    min-height: 44px;
    border: 1px solid var(--stm-border-strong);
    border-radius: var(--stm-radius-sm);
    background-color: var(--stm-surface);
    color: var(--stm-text);
    font-size: 15px;
    transition: border-color var(--stm-transition), box-shadow var(--stm-transition), background-color var(--stm-transition);
}

    .form-control:hover,
    .form-select:hover {
        border-color: #94a3b8;
    }

    .form-control:focus,
    .form-select:focus {
        border-color: var(--stm-primary);
        outline: none;
        background-color: #ffffff;
        box-shadow: 0 0 0 3px rgba(11, 111, 164, 0.13);
    }

textarea.form-control {
    min-height: 96px;
    resize: vertical;
}

/* ============================================================
   Shared Buttons
   ============================================================ */

.btn {
    min-height: 42px;
    padding: 9px 18px;
    border-radius: var(--stm-radius-sm);
    font-weight: 700;
    transition: transform var(--stm-transition), box-shadow var(--stm-transition), background-color var(--stm-transition);
}

    .btn:hover,
    .btn:focus {
        transform: translateY(-1px);
    }

.btn-primary {
    border-color: var(--stm-primary);
    background-color: var(--stm-primary);
}

    .btn-primary:hover,
    .btn-primary:focus {
        border-color: var(--stm-primary-dark);
        background-color: var(--stm-primary-dark);
        box-shadow: 0 6px 16px rgba(11, 111, 164, 0.20);
    }

.btn-outline-primary {
    border-color: var(--stm-primary);
    color: var(--stm-primary);
}

    .btn-outline-primary:hover,
    .btn-outline-primary:focus {
        border-color: var(--stm-primary);
        background-color: var(--stm-primary);
        color: #ffffff;
    }

.btn-outline-danger {
    border-color: var(--stm-danger);
    color: var(--stm-danger);
}

    .btn-outline-danger:hover,
    .btn-outline-danger:focus {
        border-color: var(--stm-danger);
        background-color: var(--stm-danger);
        color: #ffffff;
    }

/* ============================================================
   Status Messages
   ============================================================ */

.alert {
    border-radius: 12px;
    font-weight: 650;
    line-height: 1.6;
}

.alert-success {
    border-color: #a9dcc8;
    background-color: var(--stm-success-soft);
    color: #0d684a;
}

.alert-danger {
    border-color: #f0b6ba;
    background-color: var(--stm-danger-soft);
    color: #9d1820;
}

.alert-warning {
    border-color: #ead29c;
    background-color: var(--stm-warning-soft);
    color: #895706;
}

.alert-info {
    border-color: #b9d8ea;
    background-color: var(--stm-primary-soft);
    color: var(--stm-primary-dark);
}

/* ============================================================
   Tables
   ============================================================ */

.table-responsive,
.stm-table-wrapper,
.system-admin-table-wrapper {
    width: 100%;
    min-width: 0;
    overflow-x: auto;
    border: 1px solid var(--stm-border);
    border-radius: 14px;
    background-color: var(--stm-surface);
    box-shadow: var(--stm-shadow-sm);
}

.table {
    margin-bottom: 0;
    color: var(--stm-text);
}

    .table > thead > tr > th {
        padding: 12px;
        border-color: var(--stm-border);
        background-color: #e9eef5;
        color: #243447;
        font-size: 14px;
        font-weight: 800;
        text-align: center;
        vertical-align: middle;
        white-space: nowrap;
    }

    .table > tbody > tr > td {
        padding: 11px 12px;
        border-color: #e2e7ee;
        color: var(--stm-text-soft);
        text-align: center;
        vertical-align: middle;
    }

    .table > tbody > tr:nth-child(even) > td {
        background-color: #f8fafc;
    }

    .table > tbody > tr:hover > td {
        background-color: #eef6fb;
    }

/* ============================================================
   Syncfusion Shared Theme
   ============================================================ */

.e-control,
.e-control-wrapper,
.e-input-group,
.e-input-group.e-control-wrapper {
    font-family: "Segoe UI", Tahoma, Arial, sans-serif !important;
}

    .e-input-group,
    .e-input-group.e-control-wrapper,
    .e-ddl.e-input-group,
    .e-ddl.e-input-group.e-control-wrapper {
        min-height: 44px !important;
        border: 1px solid var(--stm-border-strong) !important;
        border-radius: var(--stm-radius-sm) !important;
        background-color: var(--stm-surface) !important;
        box-shadow: none !important;
    }

        .e-input-group:hover,
        .e-input-group.e-control-wrapper:hover {
            border-color: #94a3b8 !important;
        }

        .e-input-group.e-input-focus,
        .e-input-group.e-control-wrapper.e-input-focus {
            border-color: var(--stm-primary) !important;
            box-shadow: 0 0 0 3px rgba(11, 111, 164, 0.13) !important;
        }

        .e-input-group input.e-input,
        .e-input-group.e-control-wrapper input.e-input {
            min-height: 42px !important;
            padding-inline: 11px 42px !important;
            color: var(--stm-text) !important;
            font-size: 15px !important;
            text-align: right !important;
        }

        .e-input-group .e-input-group-icon,
        .e-input-group.e-control-wrapper .e-input-group-icon {
            width: 40px !important;
            min-width: 40px !important;
            height: 42px !important;
            color: var(--stm-primary) !important;
        }

.e-popup {
    border: 1px solid var(--stm-border) !important;
    border-radius: 13px !important;
    box-shadow: var(--stm-shadow-lg) !important;
}

.e-dropdownbase .e-list-item {
    min-height: 42px !important;
    padding: 9px 12px !important;
    color: var(--stm-text-soft) !important;
    text-align: right !important;
}

    .e-dropdownbase .e-list-item.e-active,
    .e-dropdownbase .e-list-item.e-item-focus,
    .e-dropdownbase .e-list-item:hover {
        background-color: var(--stm-primary-soft) !important;
        color: var(--stm-primary-dark) !important;
    }

.e-grid {
    border: 1px solid var(--stm-border) !important;
    border-radius: 14px !important;
    overflow: hidden;
    background-color: var(--stm-surface) !important;
    box-shadow: var(--stm-shadow-sm);
}

    .e-grid .e-gridheader {
        border-color: var(--stm-border) !important;
        background-color: #e9eef5 !important;
    }

    .e-grid .e-headercell {
        border-color: var(--stm-border) !important;
        background-color: #e9eef5 !important;
        color: #243447 !important;
        font-weight: 800 !important;
    }

    .e-grid .e-rowcell {
        border-color: #e2e7ee !important;
        color: var(--stm-text-soft) !important;
    }

    .e-grid .e-altrow .e-rowcell {
        background-color: #f8fafc !important;
    }

    .e-grid .e-row:hover .e-rowcell {
        background-color: #eef6fb !important;
    }

    .e-grid .e-toolbar {
        border-color: var(--stm-border) !important;
        background-color: var(--stm-surface) !important;
    }

.e-dialog {
    border: 1px solid var(--stm-border) !important;
    border-radius: var(--stm-radius-md) !important;
    overflow: hidden;
    box-shadow: var(--stm-shadow-lg) !important;
}

    .e-dialog .e-dlg-header-content {
        border-bottom: 1px solid var(--stm-border) !important;
        background-color: #f8fafc !important;
    }

    .e-dialog .e-dlg-header {
        color: var(--stm-text) !important;
        font-weight: 800 !important;
    }

/* ============================================================
   Login Page
   ============================================================ */

.login-page {
    display: grid;
    width: 100%;
    min-height: 100vh;
    place-items: center;
    padding: clamp(16px, 3vw, 48px);
    background: radial-gradient( circle at 15% 25%, rgba(11, 111, 164, 0.10), transparent 32% ), var(--stm-page-bg);
}

.login-shell {
    display: grid;
    width: min(1450px, 100%);
    min-height: min(760px, calc(100vh - 60px));
    grid-template-columns: minmax(0, 1.05fr) minmax(420px, 0.95fr);
    overflow: hidden;
    border: 1px solid var(--stm-border);
    border-radius: var(--stm-radius-lg);
    background-color: var(--stm-surface);
    box-shadow: var(--stm-shadow-lg);
}

.login-brand {
    display: flex;
    min-width: 0;
    padding: clamp(32px, 5vw, 76px);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    background: linear-gradient( 145deg, #ffffff 0%, #f3f9fd 100% );
}

/* شعار الكنيسة بحواف دائرية وتأثير ظهور هادئ */
.login-brand-logo {
    display: block;
    width: min(340px, 70%);
    max-height: 360px;
    object-fit: cover;
    border: 1px solid var(--stm-border);
    border-radius: 24px;
    box-shadow: 0 12px 30px rgba(16, 24, 40, 0.14);
    transform-origin: center;
    animation: stm-logo-fade-in 1.2s ease-out both;
}

.login-brand h1 {
    margin: 28px 0 0;
    color: var(--stm-primary-dark);
    font-size: clamp(28px, 3vw, 48px);
    font-weight: 900;
    line-height: 1.4;
}

.login-brand p {
    margin: 10px 0 0;
    color: var(--stm-primary);
    font-size: clamp(20px, 2vw, 30px);
    font-weight: 800;
}

.login-panel {
    display: flex;
    min-width: 0;
    padding: clamp(30px, 5vw, 78px);
    align-items: center;
    justify-content: center;
    background-color: #ffffff;
}

.login-card {
    width: min(570px, 100%);
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

    .login-card h1 {
        margin-bottom: 7px;
        color: var(--stm-text);
        font-size: clamp(30px, 2.5vw, 45px);
        font-weight: 900;
        text-align: center;
    }

    .login-card > p {
        margin-bottom: 30px;
        color: var(--stm-muted);
        font-size: 16px;
        font-weight: 600;
        text-align: center;
    }

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

    .login-field label {
        display: block;
        margin-bottom: 8px;
        color: var(--stm-danger);
        font-size: 17px;
        font-weight: 800;
    }

    .login-field .form-control {
        min-height: 54px;
        border-radius: 14px;
    }

.login-button {
    width: 100%;
    min-height: 54px;
    margin-top: 8px;
    border-radius: 13px;
    font-size: 17px;
}

/* ============================================================
   Launchpad Identity
   ============================================================ */

.launchpad-page {
    background-color: var(--stm-page-bg);
}

.launchpad-header {
    width: 100%;
    border-color: var(--stm-border);
    border-radius: var(--stm-radius-md);
    box-shadow: var(--stm-shadow-md);
}

    .launchpad-header h1 {
        color: var(--stm-text);
        font-weight: 900;
    }

    .launchpad-header p {
        color: var(--stm-muted);
        font-weight: 600;
    }

.launchpad-spaces {
    border-color: var(--stm-border);
    border-radius: var(--stm-radius-md);
    box-shadow: var(--stm-shadow-sm);
}

.launchpad-space-button {
    border-color: var(--stm-border);
    border-radius: 13px;
    color: var(--stm-text);
}

    .launchpad-space-button.active {
        border-color: var(--stm-accent);
        background-color: var(--stm-accent);
        color: #ffffff;
        box-shadow: 0 6px 16px rgba(124, 58, 237, 0.18);
    }

.launchpad-content {
    border-color: var(--stm-border);
    border-radius: var(--stm-radius-md);
    box-shadow: var(--stm-shadow-md);
}

.launchpad-tile {
    min-height: 132px;
    border-color: var(--stm-border);
    border-radius: 17px;
    background: linear-gradient( 180deg, #ffffff 0%, #f8fafc 100% );
    box-shadow: var(--stm-shadow-sm);
}

    .launchpad-tile:hover,
    .launchpad-tile:focus {
        border-color: var(--stm-primary);
        box-shadow: 0 12px 28px rgba(11, 111, 164, 0.13);
    }

.launchpad-tile-icon {
    background-color: var(--stm-primary-soft);
    color: var(--stm-primary);
}

.launchpad-tile-details strong {
    color: var(--stm-text);
    font-weight: 850;
}

.launchpad-tile-details small {
    color: var(--stm-muted);
}

/* ============================================================
   Scrollbar
   ============================================================ */

* {
    scrollbar-width: thin;
    scrollbar-color: #aab7c4 #eef1f5;
}

    *::-webkit-scrollbar {
        width: 9px;
        height: 9px;
    }

    *::-webkit-scrollbar-track {
        background-color: #eef1f5;
    }

    *::-webkit-scrollbar-thumb {
        border: 2px solid #eef1f5;
        border-radius: var(--stm-radius-pill);
        background-color: #aab7c4;
    }

        *::-webkit-scrollbar-thumb:hover {
            background-color: #8797a7;
        }

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 991.98px) {
    .stm-page-header,
    .system-admin-header,
    .son-form-header,
    .servant-form-header,
    .servant-attendance-header,
    .servant-report-header,
    .sons-class-header,
    .sons-qr-header {
        align-items: stretch;
        flex-direction: column;
    }

    .stm-home-button,
    .system-admin-home-button,
    .son-form-home,
    .son-form-home-button,
    .servant-form-home,
    .servant-attendance-home,
    .servant-report-home,
    .sons-class-home,
    .sons-qr-home {
        width: 100%;
    }

    .login-shell {
        min-height: auto;
        grid-template-columns: 1fr;
    }

    .login-brand {
        padding: 30px 20px;
    }

    .login-brand-logo {
        width: min(210px, 50%);
        max-height: 210px;
    }

    .login-brand h1 {
        margin-top: 16px;
        font-size: 27px;
    }

    .login-brand p {
        font-size: 20px;
    }

    .login-panel {
        padding: 32px 22px;
    }
}

@media (max-width: 575.98px) {
    .stm-page,
    .system-admin-page,
    .launchpad-page,
    .son-form-page,
    .servant-form-page,
    .servant-attendance-page,
    .servant-report-page,
    .sons-class-page,
    .sons-class-browse-page,
    .sons-qr-page {
        padding: 9px;
    }

    .stm-card,
    .system-admin-card,
    .son-form-section,
    .servant-form-section,
    .servant-attendance-card,
    .servant-report-card,
    .sons-class-card,
    .sons-qr-card {
        border-radius: 13px;
    }

    .login-page {
        padding: 8px;
    }

    .login-shell {
        border-radius: 16px;
    }

    .login-brand {
        padding: 24px 15px;
    }

    .login-panel {
        padding: 25px 15px;
    }

    .login-field .form-control {
        font-size: 16px;
    }

    .table > thead > tr > th,
    .table > tbody > tr > td {
        padding: 9px;
        font-size: 13px;
    }
}

/* ============================================================
   Accessibility
   ============================================================ */

:focus-visible {
    outline: 3px solid rgba(11, 111, 164, 0.24);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition: none !important;
        animation: none !important;
    }
}

/* ظهور شعار الكنيسة من المنتصف بتأثير هادئ */
.login-brand-logo {
    transform-origin: center;
    animation: stm-logo-fade-in 1.2s ease-out both;
}

@keyframes stm-logo-fade-in {
    0% {
        opacity: 0;
        transform: scale(0.72);
        filter: blur(5px);
    }

    60% {
        opacity: 1;
        transform: scale(1.04);
        filter: blur(0);
    }

    100% {
        opacity: 1;
        transform: scale(1);
        filter: blur(0);
    }
}

/* احترام إعداد تقليل الحركة في الجهاز */
@media (prefers-reduced-motion: reduce) {
    .login-brand-logo {
        animation: none;
        opacity: 1;
        transform: none;
        filter: none;
    }
}


/* ============================================================
   St. Mary Arabic Typography - Restored Attractive Version
   ============================================================ */

@font-face {
    font-family: "StMary Ruqaa";
    src: url("/fonts/ArefRuqaa-Regular.ttf") format("truetype");
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: "StMary Ruqaa";
    src: url("/fonts/ArefRuqaa-Bold.ttf") format("truetype");
    font-style: normal;
    font-weight: 700;
    font-display: swap;
}

/* تطبيق الخط العربي الجذاب على النصوص فقط */
html,
body,
button,
input,
select,
textarea,
option,
label,
a,
p,
span,
small,
strong,
b,
h1,
h2,
h3,
h4,
h5,
h6,
table,
thead,
tbody,
tfoot,
tr,
th,
td,
li,
.btn,
.nav-link,
.e-input,
.e-input-group input,
.e-dropdownbase .e-list-item,
.e-grid .e-headertext,
.e-grid .e-rowcell,
.e-dialog .e-dlg-header,
.e-toolbar .e-tbar-btn-text,
.e-pager .e-pagercontainer {
    font-family: "StMary Ruqaa", "Traditional Arabic", serif !important;
}

/* النصوص العادية */
body,
p,
span,
small,
label,
input,
select,
textarea,
option,
td,
li,
.e-input,
.e-grid .e-rowcell,
.e-dropdownbase .e-list-item {
    font-weight: 400;
}

/* العناوين والأزرار والنصوص المهمة */
h1,
h2,
h3,
h4,
h5,
h6,
strong,
b,
th,
button,
.btn,
.nav-link,
.e-grid .e-headertext,
.e-dialog .e-dlg-header {
    font-weight: 700 !important;
}

/* أحجام مناسبة لسهولة القراءة */
.form-control,
.form-select,
.e-input-group input.e-input,
.e-dropdownbase .e-list-item {
    font-size: 17px !important;
}

.table thead th,
.e-grid .e-headercell,
.e-grid .e-headertext {
    font-size: 16px !important;
}

.table tbody td,
.e-grid .e-rowcell {
    font-size: 16px !important;
}

button,
.btn,
.e-btn {
    font-size: 16px !important;
}

/* هوية صفحة الدخول */
.login-brand h1 {
    max-width: 700px !important;
    margin: 24px auto 0 !important;
    color: #075d8b !important;
    font-size: clamp(38px, 3.4vw, 60px) !important;
    font-weight: 700 !important;
    line-height: 1.5 !important;
    text-align: center !important;
    text-shadow: 0 3px 9px rgba(7, 93, 139, 0.11) !important;
}

.login-brand p {
    position: relative;
    display: inline-block;
    margin: 10px auto 0 !important;
    padding: 0 45px 13px !important;
    color: #0b75ad !important;
    font-size: clamp(30px, 2.5vw, 43px) !important;
    font-weight: 700 !important;
    line-height: 1.45 !important;
    text-align: center !important;
}

    .login-brand p::after {
        position: absolute;
        right: 50%;
        bottom: 0;
        width: 170px;
        height: 3px;
        border-radius: 999px;
        background: linear-gradient(90deg, transparent 0%, #4ba1c9 25%, #075d8b 50%, #4ba1c9 75%, transparent 100%);
        content: "";
        transform: translateX(50%);
    }

.login-card h1 {
    font-size: clamp(38px, 3vw, 53px) !important;
    font-weight: 700 !important;
    line-height: 1.4 !important;
}

.login-brand-logo {
    display: block;
    width: min(340px, 72%) !important;
    max-height: 340px !important;
    object-fit: cover;
    border: 1px solid rgba(7, 93, 139, 0.16);
    border-radius: 30px !important;
    box-shadow: 0 16px 34px rgba(16, 24, 40, 0.16);
    transform-origin: center;
    animation: stm-logo-fade-in 1.2s ease-out both;
}

/* حماية خطوط الأيقونات من التغيير */
.e-icons,
[class^="e-icons"],
[class*=" e-icons"],
.bi,
.fa,
.fas,
.far,
.fab {
    font-family: inherit;
}

code,
pre,
kbd,
samp {
    font-family: Consolas, "Courier New", monospace !important;
}

@media (max-width: 680px) {
    .login-brand h1 {
        margin-top: 16px !important;
        font-size: clamp(30px, 8vw, 42px) !important;
    }

    .login-brand p {
        padding-inline: 24px !important;
        font-size: clamp(25px, 7vw, 35px) !important;
    }

    .login-brand-logo {
        width: min(240px, 70%) !important;
        max-height: 240px !important;
        border-radius: 22px !important;
    }
}
