﻿@font-face {
    font-family: 'Cairo-Regular';
    src: url('/Resources/webfonts/Cairo-Regular.ttf') format('truetype');
}

@font-face {
    font-family: 'Cairo-Bold';
    src: url('/Resources/webfonts/Cairo-Bold.ttf') format('truetype');
}

@font-face {
    font-family: 'Tajawal-Regular';
    src: url('/Resources/webfonts/Tajawal-Regular.ttf') format('truetype');
}

@font-face {
    font-family: 'Tajawal-Bold';
    src: url('/Resources/webfonts/Tajawal-Bold.ttf') format('truetype');
}

* {
    box-sizing: border-box;
    font-family: Cairo-Regular, Tahoma, Arial, sans-serif;
}

:root {
    --dark-blue: #0f1535;
    --dark-blue-2: #151d3f;
    --dark-blue-3: #1d2754;
    --dark-blue-4: #283463;
    --page-light: #eef2f7;
    --page-light-2: #dce2eb;
    --yellow: #ffb12b;
    --yellow-2: #ffc354;
    --yellow-3: #e89512;
    --text-dark: #10182d;
    --text-dark-2: #1c2540;
    --text-soft: #6f788c;
    --text-soft-2: #8791a4;
    --text-white: #ffffff;
    --text-white-soft: rgba(255, 255, 255, 0.78);
    --text-white-muted: rgba(255, 255, 255, 0.62);
    --white: #ffffff;
    --success: #25b878;
    --danger: #d93025;
    --line-light: rgba(16, 24, 45, 0.13);
    --line-white: rgba(255, 255, 255, 0.15);
    --shadow-light: 0 1.5em 4em rgba(15, 21, 53, 0.22);
    --shadow-dark: 0 1.7em 4.2em rgba(5, 8, 25, 0.34);
    --shadow-yellow: 0 1.2em 2.8em rgba(255, 177, 43, 0.32);
    --radius-main: 1.8em;
    --radius-mid: 1.05em;
    --radius-sm: 0.7em;
    --yellow-gradient: linear-gradient(135deg, #ffc354 0%, #ffb12b 48%, #e89512 100%);
    --main-bg: linear-gradient(135deg, #0f1535 0%, #111936 45%, #172260 100%);
    --card-gradient: linear-gradient(135deg, rgba(255,255,255,0.96), rgba(232,236,245,0.92));
}

html,
body {
    width: 100%;
    min-height: 100%;
    margin: 0;
    padding: 0;
}

html {
    font-size: clamp(13px, 0.88vw, 17px);
}

body {
    color: var(--text-dark);
    background: var(--main-bg);
    overflow: hidden;
}

    body::before {
        content: "";
        position: fixed;
        inset: 0;
        background-image: linear-gradient(rgba(255, 255, 255, 0.045) 0.0625em, transparent 0.0625em), linear-gradient(90deg, rgba(255, 255, 255, 0.045) 0.0625em, transparent 0.0625em);
        background-size: 4em 4em;
        pointer-events: none;
    }

    body::after {
        content: "";
        position: fixed;
        width: 32em;
        height: 32em;
        left: -10em;
        bottom: -12em;
        border-radius: 50%;
        background: radial-gradient(circle, rgba(255, 177, 43, 0.22), transparent 68%);
        pointer-events: none;
    }

div,
section,
main,
span,
strong,
label,
a {
    user-select: none;
}

a {
    text-decoration: none;
}

input {
    font-family: inherit;
}

::placeholder {
    color: #9aa3b2;
    font-size: 0.92em;
}

/* Main Layout */
.login-page {
    position: relative;
    z-index: 2;
    width: 100vw;
    height: 100vh;
    display: grid;
    grid-template-columns: 40% 60%;
    direction: ltr;
}

.login-section,
.intro-section {
    direction: rtl;
    min-width: 0;
}

.login-section {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2em;
}

/* Login Card */
.login-card {
    width: min(100%, 31em);
    position: relative;
    padding: 2.15em;
    border-radius: var(--radius-main);
    background: var(--card-gradient);
    border: 0.0625em solid rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow-light);
    backdrop-filter: blur(1.3em);
    overflow: hidden;
}

    .login-card::before {
        content: "";
        position: absolute;
        inset: 0;
        background: radial-gradient(circle at top left, rgba(255, 177, 43, 0.16), transparent 14em), radial-gradient(circle at bottom right, rgba(15, 21, 53, 0.08), transparent 15em);
        pointer-events: none;
    }

    .login-card > * {
        position: relative;
        z-index: 2;
    }

.secure-chip {
    width: fit-content;
    margin-right: auto;
    display: inline-flex;
    align-items: center;
    gap: 0.45em;
    padding: 0.52em 1em;
    border-radius: 50em;
    background: rgba(255, 177, 43, 0.13);
    border: 0.0625em solid rgba(232, 149, 18, 0.36);
    color: #9c6500;
    font-size: 0.85em;
    font-family: Cairo-Bold, sans-serif;
}

    .secure-chip i {
        color: var(--yellow-3);
    }

.login-head {
    margin-top: 1.75em;
    margin-bottom: 1.65em;
    text-align: right;
}

    .login-head h1 {
        margin: 0;
        color: var(--text-dark);
        font-size: 2.35em;
        line-height: 1.25;
        font-family: Cairo-Bold, sans-serif;
    }

    .login-head p {
        margin: 0.75em 0 0;
        color: var(--text-soft);
        font-size: 0.93em;
        line-height: 1.9;
    }

.form-group {
    margin-bottom: 1.1em;
}

    .form-group label {
        display: block;
        margin-bottom: 0.55em;
        color: var(--text-dark);
        font-size: 0.9em;
        font-family: Cairo-Bold, sans-serif;
    }

.input-box {
    position: relative;
}

    .input-box i {
        position: absolute;
        right: 1.1em;
        top: 50%;
        transform: translateY(-50%);
        color: var(--yellow-3);
        font-size: 1em;
        z-index: 2;
    }

    .input-box input {
        width: 100%;
        height: 3.6em;
        padding: 0 3.2em 0 1em;
        border: 0.0625em solid rgba(255, 255, 255, 0.9);
        border-radius: var(--radius-mid);
        background: rgba(255, 255, 255, 0.92);
        color: var(--text-dark);
        outline: none;
        font-size: 1.08em;
        transition: 0.25s ease;
    }

        .input-box input:focus {
            background: #ffffff;
            border-color: rgba(255, 177, 43, 0.8);
            box-shadow: 0 0 0 0.26em rgba(255, 177, 43, 0.16);
        }

.login-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1em;
    margin: 0.7em 0 1.35em;
    font-size: 0.86em;
}

.remember {
    display: inline-flex;
    align-items: center;
    gap: 0.45em;
    color: var(--text-soft);
    cursor: pointer;
}

    .remember input {
        width: 1.05em;
        height: 1.05em;
        accent-color: var(--yellow);
    }

.login-options a {
    color: #9c6500;
    font-family: Cairo-Bold, sans-serif;
    transition: 0.2s ease;
}

    .login-options a:hover {
        color: var(--dark-blue);
    }

.login-btn {
    width: 100%;
    height: 3.85em;
    border: none;
    border-radius: var(--radius-mid);
    background: var(--yellow-gradient);
    color: var(--dark-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.7em;
    font-size: 1em;
    font-family: Cairo-Bold, sans-serif;
    cursor: pointer;
    box-shadow: var(--shadow-yellow);
    transition: 0.25s ease;
}

    .login-btn span,
    .login-btn i {
        color: var(--dark-blue);
        font-family: Cairo-Bold, sans-serif;
    }

    .login-btn:hover {
        transform: translateY(-0.15em);
        box-shadow: 0 1.35em 3em rgba(255, 177, 43, 0.42);
    }

    .login-btn:active {
        transform: scale(0.985);
    }

.login-msg {
    display: block;
    margin: 1em 0 0;
    padding: 0.75em 1em;
    border-radius: 1em;
    color: var(--danger);
    background: rgba(217, 48, 37, 0.08);
    border: 0.0625em solid rgba(217, 48, 37, 0.18);
    font-family: Cairo-Bold, sans-serif;
    font-size: 0.88em;
    line-height: 1.8;
}

    .login-msg:empty {
        display: none;
    }

.login-note {
    margin-top: 1.3em;
    padding-top: 1.1em;
    border-top: 0.0625em solid rgba(16, 24, 45, 0.14);
    display: flex;
    align-items: flex-start;
    gap: 0.7em;
    color: var(--text-soft);
    font-size: 0.82em;
    line-height: 1.85;
}

    .login-note i {
        color: var(--success);
        margin-top: 0.35em;
    }

.card-footer {
    margin-top: 1.1em;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--text-soft);
    font-size: 0.78em;
}

    .card-footer strong {
        color: #9c6500;
        font-family: Cairo-Bold, sans-serif;
    }

/* Intro Section */
.intro-section {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3.2em 3em;
    position: relative;
    overflow: hidden;
}

    .intro-section::before {
        content: "";
        position: absolute;
        inset: 0;
        background: radial-gradient(circle at 12% 18%, rgba(255, 177, 43, 0.18), transparent 17em), radial-gradient(circle at 82% 78%, rgba(255, 255, 255, 0.08), transparent 20em);
        pointer-events: none;
    }

    .intro-section::after {
        content: "";
        position: absolute;
        width: 27em;
        height: 27em;
        right: 13em;
        top: 9.5em;
        border-radius: 4em;
        border: 0.11em solid rgba(255, 255, 255, 0.08);
        transform: rotate(18deg);
        pointer-events: none;
    }

.intro-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 58em;
    height: min(44em, calc(100svh - 5em));
    min-height: 34em;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1em;
}

.top-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1em;
}

.cloud-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.55em;
    padding: 0.75em 1.15em;
    border-radius: 50em;
    background: rgba(255, 255, 255, 0.14);
    border: 0.0625em solid rgba(255, 255, 255, 0.22);
    box-shadow: 0 0.8em 2em rgba(15, 21, 53, 0.12);
    color: var(--text-white);
    font-size: 0.86em;
    font-family: Cairo-Bold, sans-serif;
}

    .cloud-pill span {
        color: var(--text-white);
    }

    .cloud-pill i {
        color: var(--yellow);
    }

.brand {
    display: flex;
    align-items: center;
    gap: 1em;
}

.brand-text {
    text-align: left;
}

    .brand-text h2 {
        margin: 0;
        color: var(--text-white);
        font-size: 3.8em;
        line-height: 1.15;
        font-family: Cairo-Bold, sans-serif;
        white-space: nowrap;
        text-align: left;
    }

        .brand-text h2 .brand-c {
            color: var(--yellow);
            font-family: Cairo-Bold, sans-serif;
            font-size: 1.4em;
            font-weight: bold;
            letter-spacing: -0.04em;
            margin-right: 0.1em;
            text-shadow: 0 0.035em 0 #8f5c00, 0 0.12em 0.22em rgba(5, 8, 25, 0.42), 0 0 0.55em rgba(255, 177, 43, 0.42), 0 0 1em rgba(255, 195, 84, 0.22);
        }

        .brand-text h2 .brand-rest {
            color: var(--text-white);
            font-family: Cairo-Bold, sans-serif;
        }

.brand-flow {
    color: var(--yellow-2);
    font-size: 0.42em;
    font-family: Cairo-Bold, sans-serif;
    vertical-align: middle;
    margin-left: 0.1em;
}

.brand-subtitle {
    display: block;
    margin-top: 0.25em;
    color: var(--text-white-muted);
    font-size: 0.82em;
    white-space: nowrap;
}

.brand-logo {
    width: 5em;
    height: 5em;
    border-radius: 1.35em;
    background: var(--yellow-gradient);
    color: var(--dark-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8em;
    font-family: Cairo-Bold, sans-serif;
    box-shadow: var(--shadow-yellow);
    overflow: hidden;
}

    .brand-logo img {
        width: 80%;
        height: 80%;
        border-radius: 1.15em;
        object-fit: contain;
    }

.hero-chip {
    width: fit-content;
    display: inline-flex;
    align-items: center;
    gap: 0.55em;
    padding: 0.65em 1.15em;
    border-radius: 50em;
    background: rgba(255, 177, 43, 0.16);
    border: 0.0625em solid rgba(255, 177, 43, 0.36);
    color: var(--yellow-2);
    font-size: 0.9em;
    font-family: Cairo-Bold, sans-serif;
    margin-bottom: 1.25em;
}

    .hero-chip i,
    .hero-chip span {
        color: var(--yellow-2);
    }

.hero h1 {
    margin: 0;
    color: var(--text-white);
    font-size: clamp(2.6em, 2.5vw, 4.7em);
    line-height: 1.2;
    font-family: Cairo-Bold, sans-serif;
    letter-spacing: -0.04em;
}

    .hero h1 span {
        font-size: 0.9em;
        display: block;
        color: var(--yellow);
        font-family: Cairo-Bold, sans-serif;
    }

.hero p {
    margin: 1.25em 0 0;
    color: var(--text-white-soft);
    max-width: 45em;
    line-height: 2;
    font-size: 1em;
}

.process {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1em;
    margin-top: 2em;
}

.process-card {
    min-height: 9.4em;
    padding: 1.1em;
    border-radius: 1.35em;
    background: rgba(255, 255, 255, 0.13);
    border: 0.0625em solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 1em 2.4em rgba(5, 8, 25, 0.18);
    transition: 0.25s ease;
    overflow: hidden;
    position: relative;
    backdrop-filter: blur(0.5em);
}

    .process-card::after {
        content: "";
        position: absolute;
        width: 4em;
        height: 4em;
        right: -1.4em;
        bottom: -1.4em;
        border-radius: 50%;
        background: rgba(255, 177, 43, 0.18);
    }

    .process-card:hover {
        transform: translateY(-0.2em);
        background: rgba(255, 255, 255, 0.18);
        box-shadow: 0 1.3em 2.8em rgba(5, 8, 25, 0.22);
    }

    .process-card i {
        color: var(--yellow);
        font-size: 1.45em;
        margin-bottom: 0.8em;
    }

    .process-card strong {
        display: block;
        color: var(--text-white);
        font-size: 1em;
        font-family: Cairo-Bold, sans-serif;
        margin-bottom: 0.4em;
    }

    .process-card span {
        display: block;
        color: var(--text-white-muted);
        font-size: 0.82em;
        line-height: 1.8;
    }

.features {
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 0.8em;
}

.feature {
    display: inline-flex;
    align-items: center;
    gap: 0.55em;
    padding: 0.8em 1.05em;
    border-radius: 50em;
    background: rgba(255, 255, 255, 0.14);
    border: 0.0625em solid rgba(255, 255, 255, 0.20);
    box-shadow: 0 0.8em 2em rgba(5, 8, 25, 0.14);
    color: var(--text-white);
    font-size: 0.86em;
    font-family: Cairo-Bold, sans-serif;
    backdrop-filter: blur(0.4em);
}

    .feature span {
        color: var(--text-white);
    }

    .feature i {
        color: var(--yellow);
    }

/* Responsive */
@media (max-width: 1200px) {
    .login-page {
        grid-template-columns: 36% 64%;
    }

    .intro-content {
        max-width: 52em;
    }

    .process {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 980px) {
    body {
        overflow-y: auto;
    }

    .login-page {
        width: 100%;
        height: auto;
        min-height: 100svh;
        display: flex;
        flex-direction: column-reverse;
    }

    .login-section,
    .intro-section {
        height: auto;
        min-height: auto;
    }

    .intro-section {
        padding: 2.4em 1.5em;
    }

    .login-section {
        padding: 2.4em 1.5em;
    }

    .intro-content {
        height: auto;
        min-height: auto;
        max-width: 100%;
        gap: 1.8em;
    }

    .hero {
        max-width: 100%;
    }

    .process {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .features {
        justify-content: center;
    }
}

@media (max-width: 760px) {
    html {
        font-size: 15px;
    }

    body {
        overflow-y: auto;
        background: linear-gradient(180deg, #eef2f7 0%, #dce2eb 100%);
    }

        body::before {
            background-image: linear-gradient(rgba(15, 21, 53, 0.04) 0.0625em, transparent 0.0625em), linear-gradient(90deg, rgba(15, 21, 53, 0.04) 0.0625em, transparent 0.0625em);
        }

    .login-page {
        display: block;
    }

    .intro-section {
        padding: 1.25em;
    }

        .intro-section::before {
            background: radial-gradient(circle at top, rgba(255, 177, 43, 0.18), transparent 18em), linear-gradient(135deg, #0f1535 0%, #1d2754 100%);
        }

        .intro-section::after {
            display: none;
        }

    .intro-content {
        gap: 1.4em;
    }

    .top-row {
        justify-content: center;
    }

    .cloud-pill {
        display: none;
    }

    .brand {
        flex-direction: column-reverse;
        text-align: center;
    }

    .brand-text {
        text-align: center;
    }

        .brand-text h2 {
            margin: 0;
            color: var(--text-white);
            font-size: 4.2em;
            line-height: 1.15;
            font-family: Cairo-Bold, sans-serif;
            white-space: nowrap;
            text-align: center;
        }

    .brand-subtitle {
        display: block;
        margin-top: 0.25em;
        color: var(--text-white-muted);
        font-size: 0.9em;
        white-space: normal;
        line-height: 1.7;
    }

    .brand-logo {
        width: 4.2em;
        height: 4.2em;
        font-size: 1.55em;
    }

    .hero {
        margin: 0.5em 0 0;
        text-align: center;
    }

    .hero-chip {
        margin-inline: auto;
    }

    .hero h1 {
        font-size: 1.75em;
        line-height: 1.45;
        letter-spacing: 0;
    }

        .hero h1 span {
            font-size: 0.76em;
        }

    .hero p {
        font-size: 0.9em;
        line-height: 1.9;
        margin-top: 1em;
    }

    .process,
    .features {
        display: none;
    }

    .login-section {
        padding: 1.25em;
    }

    .login-card {
        width: 100%;
        padding: 1.25em;
        border-radius: 1.45em;
    }

    .secure-chip {
        margin-inline: auto;
    }

    .login-head {
        text-align: center;
        margin-top: 1.25em;
        margin-bottom: 1.35em;
    }

        .login-head h1 {
            font-size: 1.65em;
        }

        .login-head p {
            font-size: 0.86em;
        }

    .login-options {
        flex-direction: column;
        align-items: stretch;
        gap: 0.7em;
    }

    .remember {
        justify-content: center;
    }

    .login-options a {
        text-align: center;
    }

    .input-box input,
    .login-btn {
        height: 3.6em;
    }

    .card-footer {
        flex-direction: column;
        gap: 0.35em;
    }
}

@media (max-width: 420px) {
    html {
        font-size: 14px;
    }

    .intro-section,
    .login-section {
        padding: 1em;
    }

    .login-card {
        padding: 1em;
    }

    .brand-text h2 {
        font-size: 3.55em;
    }

    .hero h1 {
        font-size: 1.48em;
    }

    .login-note {
        font-size: 0.78em;
    }
}

@media (max-height: 720px) and (min-width: 981px) {
    html {
        font-size: 13px;
    }

    .login-card {
        padding: 1.5em;
    }

    .login-head {
        margin-top: 1.1em;
        margin-bottom: 1.1em;
    }

    .intro-content {
        height: calc(100svh - 3em);
        min-height: 31em;
    }

    .process-card {
        min-height: 8em;
    }
}
