@font-face {
    font-family: "Cairo";
    src: url("../fonts/Cairo-Arabic.woff2") format("woff2");
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FEFC;
}

@font-face {
    font-family: "Cairo";
    src: url("../fonts/Cairo-Latin.woff2") format("woff2");
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+FEFF, U+FFFD;
}

:root {
    --primary: #306db5;
    --primary-dark: #1e4a7a;
    --muted: #798ca1;
    --border: #cbd7e4;
}

* {
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    min-width: 320px;
    min-height: 100%;
    margin: 0;
}

body {
    color: #25364b;
    background: #f8f9fb;
    font-family: "Cairo", Arial, sans-serif;
}

button,
input {
    font: inherit;
}

.login-container {
    width: 100%;
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    direction: rtl;
    overflow: hidden;
    background: #f8f9fb;
}

.form-section {
    min-height: 100vh;
    padding: 54px 7.2% 30px 4%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
}

.form-container {
    width: min(720px, 100%);
    margin: 0 auto;
}

.back-home {
    width: fit-content;
    margin: 0 36px 25px;
    display: flex;
    align-items: center;
    gap: 7px;
    color: var(--muted);
    font-size: 12px;
    text-decoration: none;
}

.back-home:hover {
    color: var(--primary);
}

.back-home svg {
    width: 15px;
    height: 15px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
}

.form-header {
    margin-bottom: 48px;
    padding: 0 36px 18px;
    border-bottom: 1px dashed #dfe7f2;
}

.form-header h1 {
    margin: 0;
    color: var(--primary);
    font-size: 16px;
    font-weight: 700;
    text-align: right;
}

.form-content {
    padding: 0 36px;
}

.demo-message {
    margin-bottom: 18px;
    padding: 10px 14px;
    border: 1px solid #b7d7f2;
    border-radius: 8px;
    color: #245d9c;
    background: #eef7ff;
    font-size: 12px;
    text-align: center;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.input-field {
    width: 100%;
    display: flex;
    align-items: flex-start;
    flex-direction: column;
}

.input-label {
    margin-bottom: 4px;
    padding-left: 16px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 500;
}

.form-input {
    width: 100%;
    height: 40px;
    padding: 0 16px;
    border: 1px solid var(--border);
    border-radius: 8px;
    outline: 0;
    color: #222;
    background: #fff;
    font-size: 14px;
    font-weight: 600;
    text-align: right;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-input::placeholder {
    color: var(--border);
}

.form-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(48, 109, 181, 0.1);
}

.password-field {
    position: relative;
    width: 100%;
}

.password-field .form-input {
    padding-left: 48px;
}

.password-toggle {
    position: absolute;
    top: 50%;
    left: 12px;
    width: 30px;
    height: 30px;
    padding: 5px;
    border: 0;
    transform: translateY(-50%);
    color: #8da0b5;
    background: transparent;
    cursor: pointer;
}

.password-toggle svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
}

.submit-button {
    width: 100%;
    height: 48px;
    border: 0;
    border-radius: 8px;
    color: #fff;
    background: var(--primary);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.25s;
}

.submit-button:hover {
    background: var(--primary-dark);
}

.forgot-password-section,
.create-account-section {
    display: flex;
    justify-content: center;
    margin-top: 4px;
}

.text-action {
    padding: 0;
    border: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--primary);
    background: transparent;
    font-size: 14px;
    cursor: pointer;
}

.text-action svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.6;
}

.text-action strong {
    font-weight: 700;
    text-decoration: underline;
}

.divider {
    display: flex;
    align-items: center;
    gap: 5px;
    margin: 20px 0;
}

.divider span {
    flex: 1;
    height: 1px;
    background: var(--border);
}

.divider b {
    padding: 10px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 500;
}

.national-access-link {
    width: 100%;
    min-height: 44px;
    padding: 8px 10px;
    border: 1px solid var(--primary);
    border-radius: 6px;
    color: #828c97;
    background: #fff;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

.national-access-link strong {
    margin-right: 5px;
    color: #0a9a8f;
}

.marketing-section {
    position: relative;
    min-height: 100vh;
    padding: 48px;
    display: flex;
    justify-content: space-between;
    flex-direction: column;
    overflow: hidden;
    color: #fff;
    background:
        radial-gradient(circle at 10% 10%, rgba(126, 183, 219, 0.42), transparent 28%),
        radial-gradient(circle at 95% 85%, rgba(130, 203, 255, 0.38), transparent 30%),
        linear-gradient(135deg, #306db5, #1e4a7a);
}

.marketing-pattern {
    position: absolute;
    inset: -10%;
    opacity: 0.18;
    transform: rotate(-8deg);
    background-image:
        linear-gradient(120deg, transparent 47%, #fff 48%, transparent 49%),
        linear-gradient(30deg, transparent 47%, #fff 48%, transparent 49%);
    background-size: 190px 190px;
    pointer-events: none;
}

.marketing-header,
.marketing-main-content,
.slide-indicators,
.marketing-footer {
    position: relative;
    z-index: 1;
}

.marketing-header {
    text-align: right;
}

.marketing-header img {
    width: 150px;
    height: auto;
}

.marketing-main-content {
    display: grid;
    grid-template-columns: 48px minmax(260px, 521px) 48px;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.slide-arrow {
    width: 48px;
    height: 48px;
    padding: 0;
    border: 0;
    color: #fff;
    background: transparent;
    cursor: pointer;
}

.slide-arrow svg {
    width: 48px;
    height: 48px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.3;
}

.marketing-card {
    position: relative;
    width: 100%;
    padding: 32px;
    border-radius: 16px;
    overflow: hidden;
    text-align: center;
    background: rgba(130, 203, 255, 0.36);
    box-shadow: 0 18px 55px rgba(16, 39, 76, 0.24);
    backdrop-filter: blur(6px);
}

.marketing-text h2 {
    margin: 0 0 32px;
    color: #fff;
    font-size: 25px;
    font-weight: 800;
    line-height: 1.5;
}

.marketing-text p {
    margin: 0;
    color: #fff;
    font-size: 19px;
    font-weight: 400;
    line-height: 1.8;
}

.slide-indicators {
    margin: -22px 0 15px;
    display: flex;
    justify-content: center;
    gap: 8px;
}

.slide-indicators span {
    width: 11px;
    height: 11px;
    border-radius: 999px;
    opacity: 0.4;
    background: #fff;
}

.slide-indicators span.active {
    width: 33px;
    opacity: 1;
}

.marketing-footer {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-links {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    font-size: 12px;
}

.footer-links span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-links svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-linejoin: round;
    stroke-width: 1.5;
}

.footer-divider {
    height: 1px;
    opacity: 0.2;
    background: #c1c7cd;
}

.footer-bottom {
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.footer-copy {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
}

.footer-copy p,
.footer-copy span {
    margin: 0;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
}

.footer-logos {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-logos img {
    max-width: 65px;
    height: 43px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

@media (max-width: 1050px) {
    .login-container {
        grid-template-columns: 1fr;
        overflow: visible;
    }

    .form-section {
        min-height: 100vh;
        padding: 40px 24px;
    }

    .marketing-section {
        min-height: 720px;
    }
}

@media (max-width: 620px) {
    .form-section {
        padding: 28px 18px;
    }

    .form-header,
    .form-content {
        padding-right: 0;
        padding-left: 0;
    }

    .back-home {
        margin-right: 0;
        margin-left: 0;
    }

    .marketing-section {
        display: none;
    }

    .text-action {
        gap: 6px;
        font-size: 12px;
    }
}
