:root {
    --sa-green: #0d6b52;
    --sa-green-dark: #074b3b;
    --sa-green-deep: #063d31;
    --sa-green-soft: #eaf4f0;
    --background: #f6f8f7;
    --surface: #ffffff;
    --text: #16231f;
    --text-secondary: #63706b;
    --text-light: #8a9691;
    --border: #e1e7e4;
    --border-strong: #d2dcd7;
    --danger: #b42318;
    --danger-bg: #fef3f2;
    --success: #067647;
    --success-bg: #ecfdf3;
    --shadow: 0 12px 40px rgba(20, 45, 37, 0.07);
    --radius: 18px;
}


* {
    box-sizing: border-box;
}


html {
    font-size: 16px;
    min-height: 100%;
}


body {
    margin: 0;
    min-height: 100vh;
    font-family: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, sans-serif;
    background: var(--background);
    color: var(--text);
    direction: rtl;
    -webkit-font-smoothing: antialiased;
}


button,
input {
    font-family: inherit;
}


a {
    color: inherit;
    text-decoration: none;
}


.portal-container {
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto;
}



/* =========================================================
   HEADER
   ========================================================= */

.portal-header {
    height: 84px;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
}


.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}


.brand {
    display: flex;
    align-items: center;
    gap: 13px;
}


.brand-logo {
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 13px;
    background: var(--sa-green);
    color: white;
    font-size: 24px;
    font-weight: 700;
}


.brand-text {
    display: flex;
    flex-direction: column;
}


    .brand-text strong {
        font-size: 20px;
        line-height: 1.25;
    }


    .brand-text small {
        color: var(--text-secondary);
        margin-top: 2px;
    }


.header-user {
    display: flex;
    align-items: center;
    gap: 14px;
}


.entity-info {
    display: flex;
    flex-direction: column;
    text-align: left;
}


    .entity-info strong {
        font-size: 14px;
    }


    .entity-info span {
        font-size: 13px;
        color: var(--text-secondary);
    }


.user-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--sa-green-soft);
    color: var(--sa-green);
    font-weight: 700;
}



/* =========================================================
   LOGIN
   ========================================================= */

.login-page {
    min-height: calc(100vh - 70px);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 24px;
    overflow: hidden;
    background: radial-gradient( circle at 90% 10%, rgba(13, 107, 82, 0.09), transparent 35% ), #f7f9f8;
}


.login-decoration {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}


.decoration-one {
    width: 500px;
    height: 500px;
    right: -270px;
    top: -260px;
    border: 1px solid rgba(13, 107, 82, 0.10);
}


.decoration-two {
    width: 700px;
    height: 700px;
    left: -450px;
    bottom: -500px;
    border: 1px solid rgba(13, 107, 82, 0.08);
}


.login-shell {
    width: min(1080px, 100%);
    min-height: 650px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: white;
    border: 1px solid var(--border);
    border-radius: 26px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(17, 55, 43, 0.10);
    position: relative;
    z-index: 1;
}


.login-intro {
    padding: 52px;
    display: flex;
    flex-direction: column;
    color: white;
    background: linear-gradient( 145deg, #0b624c 0%, #064536 100% );
    position: relative;
    overflow: hidden;
}


    .login-intro::after {
        content: "";
        position: absolute;
        width: 430px;
        height: 430px;
        left: -220px;
        bottom: -220px;
        border-radius: 50%;
        border: 1px solid rgba(255, 255, 255, 0.10);
    }


.login-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    position: relative;
    z-index: 2;
}


.login-logo-placeholder {
    width: 54px;
    height: 54px;
    border-radius: 15px;
    background: white;
    color: var(--sa-green);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 27px;
    font-weight: 700;
}


.login-brand-name {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.2;
}


.login-brand-en {
    font-size: 10px;
    letter-spacing: 3px;
    opacity: 0.7;
    direction: ltr;
    text-align: right;
}


.intro-content {
    margin: auto 0;
    max-width: 410px;
    position: relative;
    z-index: 2;
}


.intro-badge {
    display: inline-flex;
    padding: 7px 13px;
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.14);
    font-size: 13px;
    margin-bottom: 24px;
}


.intro-content h1 {
    margin: 0 0 20px;
    font-size: 42px;
    line-height: 1.35;
    letter-spacing: -1px;
}


.intro-content p {
    margin: 0;
    color: rgba(255, 255, 255, 0.78);
    line-height: 2;
    font-size: 16px;
}


.intro-security {
    display: flex;
    gap: 12px;
    align-items: center;
    position: relative;
    z-index: 2;
    border-top: 1px solid rgba(255, 255, 255, 0.13);
    padding-top: 24px;
}


.security-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.11);
}


.intro-security div:last-child {
    display: flex;
    flex-direction: column;
}


.intro-security strong {
    font-size: 14px;
}


.intro-security span {
    margin-top: 2px;
    color: rgba(255, 255, 255, 0.65);
    font-size: 12px;
}


.login-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 64px;
}


.login-form-container {
    width: 100%;
    max-width: 390px;
}


.mobile-brand {
    display: none;
}


.section-label {
    display: inline-block;
    color: var(--sa-green);
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 8px;
}


.login-heading h2,
.page-heading h1 {
    margin: 0;
    font-size: 31px;
    letter-spacing: -0.5px;
}


.login-heading p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin: 12px 0 34px;
}


.form-group {
    margin-bottom: 22px;
}


    .form-group label {
        display: block;
        font-size: 14px;
        font-weight: 600;
        margin-bottom: 9px;
    }


.input-wrapper {
    position: relative;
}


    .input-wrapper input,
    .phone-input input {
        width: 100%;
        height: 54px;
        border: 1px solid var(--border-strong);
        border-radius: 11px;
        outline: none;
        background: white;
        font-size: 15px;
        transition: border-color .15s ease, box-shadow .15s ease;
    }


    .input-wrapper input {
        padding: 0 46px 0 15px;
    }


        .input-wrapper input:focus,
        .phone-input:focus-within {
            border-color: var(--sa-green);
            box-shadow: 0 0 0 4px rgba(13, 107, 82, 0.08);
        }


.input-icon {
    position: absolute;
    right: 17px;
    top: 50%;
    transform: translateY(-50%);
    color: #8b9993;
    font-size: 13px;
}


.primary-button {
    width: 100%;
    min-height: 55px;
    border: 0;
    border-radius: 11px;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    background: var(--sa-green);
    color: white;
    font-size: 15px;
    font-weight: 600;
    transition: background .15s ease, transform .15s ease;
}


    .primary-button:hover {
        background: var(--sa-green-dark);
    }


    .primary-button:active {
        transform: translateY(1px);
    }


.button-arrow {
    font-size: 20px;
}


.login-notice {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}


.notice-lock {
    color: var(--sa-green);
}


.login-notice p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 12px;
    line-height: 1.8;
}


.alert-error {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--danger-bg);
    color: var(--danger);
    border: 1px solid #fecdca;
    padding: 13px 15px;
    border-radius: 10px;
    font-size: 13px;
    margin-bottom: 20px;
}


.alert-symbol {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--danger);
    color: white;
    font-weight: 700;
}



/* =========================================================
   VERIFICATION DASHBOARD
   ========================================================= */

.dashboard-page {
    padding: 56px 0 90px;
}


.page-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 34px;
}


    .page-heading p {
        color: var(--text-secondary);
        margin: 10px 0 0;
    }


.verified-entity {
    display: flex;
    align-items: center;
    gap: 11px;
    background: var(--sa-green-soft);
    padding: 11px 16px;
    border-radius: 12px;
}


.verified-mark {
    width: 33px;
    height: 33px;
    border-radius: 50%;
    background: var(--sa-green);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
}


.verified-entity div:last-child {
    display: flex;
    flex-direction: column;
}


.verified-entity span {
    color: var(--text-secondary);
    font-size: 11px;
}


.verified-entity strong {
    color: var(--sa-green-dark);
    font-size: 14px;
}


.dashboard-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 24px;
    align-items: start;
}


.main-card,
.employee-card,
.security-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: 0 5px 25px rgba(28, 55, 46, 0.035);
}


.main-card {
    padding: 34px;
}


.card-heading {
    display: flex;
    gap: 14px;
    padding-bottom: 28px;
    border-bottom: 1px solid var(--border);
}


.card-icon {
    width: 45px;
    height: 45px;
    border-radius: 12px;
    flex-shrink: 0;
    background: var(--sa-green-soft);
    color: var(--sa-green);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}


.card-heading h2 {
    margin: 0 0 5px;
    font-size: 20px;
}


.card-heading p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 13px;
}


.verification-form {
    padding: 30px 0 4px;
    max-width: 550px;
}


.phone-input {
    display: flex;
    height: 57px;
    direction: ltr;
    border: 1px solid var(--border-strong);
    border-radius: 11px;
    overflow: hidden;
    transition: border-color .15s ease, box-shadow .15s ease;
}


    .phone-input input {
        border: 0;
        border-radius: 0;
        direction: ltr;
        padding: 0 17px;
        font-size: 17px;
        letter-spacing: .5px;
    }


        .phone-input input:focus {
            box-shadow: none;
        }


.country-code {
    min-width: 78px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f7f9f8;
    border-right: 1px solid var(--border);
    color: var(--text-secondary);
    font-weight: 500;
}


.field-help {
    display: block;
    margin-top: 8px;
    color: var(--text-light);
    font-size: 12px;
}


.verification-button {
    max-width: 230px;
    margin-top: 27px;
}


.side-column {
    display: flex;
    flex-direction: column;
    gap: 18px;
}


.employee-card {
    padding: 25px;
}


.employee-card-top {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 21px;
    border-bottom: 1px solid var(--border);
}


.employee-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--sa-green);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 19px;
    font-weight: 700;
}


.employee-label {
    color: var(--text-secondary);
    font-size: 11px;
}


.employee-card h3 {
    margin: 3px 0 0;
    font-size: 16px;
}


.employee-details {
    padding-top: 18px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}


    .employee-details div {
        display: flex;
        flex-direction: column;
    }


    .employee-details span {
        color: var(--text-secondary);
        font-size: 11px;
        margin-bottom: 3px;
    }


    .employee-details strong {
        font-size: 13px;
        font-weight: 600;
    }


.security-card {
    padding: 22px;
    display: flex;
    gap: 12px;
    background: linear-gradient( 145deg, #f1f8f5, #ffffff );
}


.security-card-icon {
    color: var(--sa-green);
    font-size: 22px;
}


.security-card h3 {
    margin: 0 0 7px;
    font-size: 14px;
}


.security-card p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 12px;
    line-height: 1.8;
}



/* =========================================================
   SUCCESS
   ========================================================= */

.success-result {
    margin-top: 28px;
    padding: 25px;
    border-radius: 14px;
    border: 1px solid #abefc6;
    background: var(--success-bg);
}


.success-header {
    display: flex;
    align-items: center;
    gap: 12px;
}


.success-check {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--success);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 19px;
    font-weight: 700;
}


.success-header h3 {
    margin: 0;
    color: #05603a;
    font-size: 17px;
}


.success-header p {
    margin: 3px 0 0;
    color: #477463;
    font-size: 12px;
}


.request-status {
    display: inline-flex;
    margin-top: 20px;
    padding: 6px 11px;
    border-radius: 100px;
    background: white;
    border: 1px solid #abefc6;
    color: #067647;
    font-size: 11px;
    font-weight: 600;
}


.result-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 20px;
}


.result-item {
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.65);
    padding: 13px;
    border-radius: 9px;
}


    .result-item span,
    .request-id span {
        color: var(--text-secondary);
        font-size: 10px;
        margin-bottom: 4px;
    }


    .result-item strong {
        font-size: 13px;
    }


.request-id {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid rgba(6, 118, 71, 0.15);
    display: flex;
    flex-direction: column;
}


    .request-id code {
        direction: ltr;
        text-align: left;
        font-size: 11px;
        color: var(--text-secondary);
    }



/* =========================================================
   FOOTER
   ========================================================= */

.portal-footer {
    min-height: 70px;
    display: flex;
    align-items: center;
    border-top: 1px solid var(--border);
    background: white;
}


.footer-content {
    display: flex;
    justify-content: space-between;
    color: var(--text-light);
    font-size: 11px;
}



/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 900px) {

    .login-shell {
        grid-template-columns: 1fr;
        max-width: 560px;
    }

    .login-intro {
        display: none;
    }

    .mobile-brand {
        display: flex;
        align-items: center;
        gap: 10px;
        margin-bottom: 40px;
    }

    .login-panel {
        padding: 50px 38px;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .side-column {
        grid-row: 1;
    }

    .page-heading {
        align-items: flex-start;
        gap: 20px;
    }
}


@media (max-width: 600px) {

    .portal-container {
        width: min(100% - 28px, 1180px);
    }

    .login-page {
        padding: 20px 14px;
    }

    .login-shell {
        min-height: auto;
        border-radius: 18px;
    }

    .login-panel {
        padding: 38px 24px;
    }

    .login-heading h2,
    .page-heading h1 {
        font-size: 26px;
    }

    .portal-header {
        height: 72px;
    }

    .brand-text small,
    .entity-info {
        display: none;
    }

    .dashboard-page {
        padding-top: 32px;
    }

    .page-heading {
        flex-direction: column;
    }

    .main-card {
        padding: 23px;
    }

    .verification-button {
        max-width: none;
    }

    .result-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
        gap: 4px;
        padding: 18px 0;
    }
}


/* =========================================================
   INTERNATIONAL PHONE NUMBER
   Country selector + phone input
   ========================================================= */

.international-phone {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 10px;
    width: 100%;
    direction: rtl;
}


/* Country dropdown */

.country-selector {
    width: 100%;
    height: 57px;
    padding: 0 14px;
    border: 1px solid var(--border-strong);
    border-radius: 11px;
    background-color: #f7f9f8;
    color: var(--text);
    font-family: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, sans-serif;
    font-size: 13px;
    font-weight: 500;
    outline: none;
    cursor: pointer;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}


    .country-selector:hover {
        border-color: #b9c8c1;
        background-color: #ffffff;
    }


    .country-selector:focus {
        border-color: var(--sa-green);
        box-shadow: 0 0 0 4px rgba(13, 107, 82, 0.08);
        background-color: #ffffff;
    }


/* Phone input container */

.phone-number-box {
    width: 100%;
    height: 57px;
    border: 1px solid var(--border-strong);
    border-radius: 11px;
    background: #ffffff;
    overflow: hidden;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}


    .phone-number-box:hover {
        border-color: #b9c8c1;
    }


    .phone-number-box:focus-within {
        border-color: var(--sa-green);
        box-shadow: 0 0 0 4px rgba(13, 107, 82, 0.08);
    }


    /* Actual number field */

    .phone-number-box input {
        width: 100%;
        height: 100%;
        margin: 0;
        padding: 0 18px;
        border: 0;
        outline: 0;
        background: transparent;
        color: var(--text);
        font-family: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, sans-serif;
        font-size: 17px;
        font-weight: 500;
        direction: ltr;
        text-align: left;
        letter-spacing: 0.6px;
    }


        .phone-number-box input::placeholder {
            color: #9aa5a0;
            font-weight: 400;
            letter-spacing: 0;
        }


/* Helper text */

.international-phone + .field-help {
    margin-top: 9px;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 600px) {

    .international-phone {
        grid-template-columns: 1fr;
        gap: 9px;
    }

    .country-selector {
        width: 100%;
    }

    .phone-number-box {
        width: 100%;
    }
}