:root {
    --marwa-navy: #061a3a;
    --marwa-navy-2: #0a2854;
    --marwa-navy-3: #102f60;
    --marwa-gold: #c58a25;
    --marwa-gold-light: #edc66f;
    --marwa-cream: #fbf8f1;
    --marwa-soft: #f5f2eb;
    --marwa-text: #101828;
    --marwa-muted: #667085;
    --marwa-border: #e7ddca;
}

* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
}

body {
    margin: 0;
    min-height: 100vh;
    overflow-x: hidden;
    font-family: "Plus Jakarta Sans", sans-serif !important;
    color: var(--marwa-text);
    background:
        radial-gradient(circle at 8% 8%, rgba(197, 138, 37, .14), transparent 27%),
        radial-gradient(circle at 92% 88%, rgba(6, 26, 58, .12), transparent 28%),
        linear-gradient(135deg, #fdfbf6 0%, #f4efe4 48%, #edf1f7 100%);
}

body::before,
body::after {
    content: "";
    position: fixed;
    z-index: -1;
    border: 1px solid rgba(197, 138, 37, .24);
    border-radius: 50%;
    pointer-events: none;
}

body::before {
    width: 460px;
    height: 460px;
    left: -280px;
    top: -250px;
    box-shadow: 0 0 0 55px rgba(197, 138, 37, .035), 0 0 0 110px rgba(197, 138, 37, .025);
}

body::after {
    width: 560px;
    height: 560px;
    right: -350px;
    bottom: -380px;
    box-shadow: 0 0 0 65px rgba(6, 26, 58, .025), 0 0 0 130px rgba(6, 26, 58, .018);
}

#form1,#form2 {
    width: 100%;
    min-height: 100vh;
    padding: 32px;
    display: grid;
    place-items: center;
}

.login-wrapper {
    position: relative;
    width: min(1180px, 100%);
    min-height: 720px;
    display: grid;
    grid-template-columns: 52% 48%;
    overflow: hidden;
    border: 1px solid rgba(197, 138, 37, .35);
    border-radius: 26px;
    background: #fff;
    box-shadow: 0 32px 90px rgba(6, 26, 58, .19);
}

.login-wrapper::after {
    content: "";
    position: absolute;
    inset: 12px;
    z-index: 8;
    border: 1px solid rgba(237, 198, 111, .22);
    border-radius: 18px;
    pointer-events: none;
}

.left-panel {
    position: relative;
    isolation: isolate;
    min-height: 720px;
    padding: 52px 58px 48px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: #fff;
    background: var(--marwa-navy);
}

.left-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -3;
    background: url("../../images/prop-4.jpg") center 53% / cover no-repeat;
    transform: scale(1.01);
}

.left-panel::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    background:
        linear-gradient(180deg, rgba(4, 18, 43, .5) 0%, rgba(4, 18, 43, .52) 26%, rgba(4, 18, 43, .92) 100%),
        linear-gradient(90deg, rgba(4, 18, 43, .86), rgba(4, 18, 43, .13));
}

.left-panel .brand-logo {
    width: fit-content;
    max-width: 290px;
    padding: 12px 18px;
    border: 1px solid rgba(237, 198, 111, .5);
    border-radius: 12px;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 14px 34px rgba(0, 0, 0, .18);
    backdrop-filter: blur(10px);
}

.brand-logo a {
    display: block;
}

.brand-logo img {
    display: block;
    width: 240px;
    height: auto;
    max-width: 100%;
}

.left-copy {
    position: relative;
    max-width: 495px;
    padding: 35px 0 26px;
}

.left-copy::before {
    content: "";
    position: absolute;
    left: -58px;
    top: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(180deg, transparent, var(--marwa-gold-light), transparent);
}

.eyebrow {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
    color: var(--marwa-gold-light);
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.eyebrow span {
    width: 42px;
    height: 1px;
    background: var(--marwa-gold-light);
}

.left-title {
    margin: 0;
    color: #fff;
    font-family: "Cinzel", serif;
    font-size: clamp(3.1rem, 5vw, 5.35rem);
    font-weight: 600;
    line-height: .98;
    letter-spacing: -.035em;
    text-shadow: 0 8px 28px rgba(0, 0, 0, .25);
}

.left-title::after {
    content: "";
    display: block;
    width: 98px;
    height: 2px;
    margin-top: 24px;
    background: linear-gradient(90deg, var(--marwa-gold-light), transparent);
}

.left-subtitle {
    margin-top: 23px;
    color: rgba(255, 255, 255, .78);
    font-size: 1rem;
    line-height: 1.75;
}

.feature-list {
    display: grid;
    gap: 12px;
    margin: 28px 0 0;
    padding: 0;
    list-style: none;
}

.feature-list li {
    position: relative;
    padding-left: 31px;
    color: #fff;
    font-size: .91rem;
    font-weight: 600;
}

.feature-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: -1px;
    width: 20px;
    height: 20px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(237, 198, 111, .8);
    border-radius: 50%;
    color: var(--marwa-gold-light);
    background: rgba(197, 138, 37, .12);
    font-size: .7rem;
    font-weight: 800;
}

.left-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, .15);
}

.left-footer small {
    max-width: 330px;
    color: rgba(255, 255, 255, .58);
    font-family: "Cinzel", serif;
    font-size: .68rem;
    letter-spacing: .03em;
    text-align: right;
}

.dot-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.dot-row span {
    width: 8px;
    height: 8px;
    display: block;
    border: 1px solid rgba(255, 255, 255, .42);
    border-radius: 50%;
    background: rgba(255, 255, 255, .18);
}

.dot-row span.active {
    width: 28px;
    border-radius: 30px;
    border-color: var(--marwa-gold-light);
    background: var(--marwa-gold-light);
}

.right-panel {
    position: relative;
    min-width: 0;
    padding: 62px 66px 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background:
        radial-gradient(circle at 100% 0%, rgba(197, 138, 37, .08), transparent 34%),
        linear-gradient(180deg, #fff 0%, #fdfbf6 100%);
}

.right-panel::before {
    content: "";
    position: absolute;
    right: -155px;
    top: -185px;
    width: 360px;
    height: 360px;
    border: 1px solid rgba(197, 138, 37, .18);
    border-radius: 50%;
    box-shadow: 0 0 0 42px rgba(197, 138, 37, .025), 0 0 0 84px rgba(197, 138, 37, .018);
    pointer-events: none;
}

.form-kicker {
    position: relative;
    z-index: 1;
    margin-bottom: 9px;
    color: var(--marwa-gold);
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .17em;
    text-transform: uppercase;
}

.form-kicker::before {
    content: "";
    display: inline-block;
    width: 34px;
    height: 1px;
    margin: 0 11px 3px 0;
    background: var(--marwa-gold);
}

.form-title {
    position: relative;
    z-index: 1;
    color: var(--marwa-navy);
    font-family: "Cinzel", serif;
    font-size: clamp(2.35rem, 4vw, 3.65rem);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -.03em;
}

.form-desc {
    position: relative;
    z-index: 1;
    max-width: 440px;
    margin: 12px 0 31px;
    color: var(--marwa-muted);
    font-size: .94rem;
    line-height: 1.65;
}

.alert-box:empty {
    display: none;
}

.alert-box {
    margin-bottom: 15px;
    border-radius: 8px;
}

.f-label {
    display: block;
    margin: 0 0 9px;
    color: #24334b;
    font-size: .73rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.f-wrap {
    position: relative;
    margin-bottom: 21px;
}

.f-wrap input,
.captcha-type input {
    width: 100%;
    min-height: 54px;
    padding: 13px 52px 13px 16px;
    border: 1px solid #d9d4c9;
    border-radius: 8px;
    outline: none;
    color: var(--marwa-text);
    background: rgba(255, 255, 255, .92);
    font-family: inherit;
    font-size: .92rem;
    font-weight: 500;
    transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}

.f-wrap input::placeholder,
.captcha-type input::placeholder {
    color: #98a2b3;
}

.f-wrap input:focus,
.captcha-type input:focus {
    border-color: var(--marwa-gold);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(197, 138, 37, .11);
}

.f-ico {
    position: absolute;
    right: 16px;
    top: 50%;
    width: 22px;
    height: 22px;
    display: grid;
    place-items: center;
    transform: translateY(-50%);
    color: var(--marwa-gold);
}

.f-ico svg {
    width: 21px;
    height: 21px;
}

.f-ico-action {
    cursor: pointer;
    border-radius: 50%;
    transition: color .2s ease, background-color .2s ease;
}

.f-ico-action:hover,
.f-ico-action.showing {
    color: var(--marwa-navy);
}

.captcha-section {
    margin: 3px 0 18px;
    padding: 18px;
    border: 1px solid var(--marwa-border);
    border-radius: 12px;
    background: linear-gradient(135deg, #fbf8f1, #f6f2e9);
}

.captcha-display-row {
    display: grid;
    grid-template-columns: 1fr 48px;
    gap: 10px;
    align-items: stretch;
}

.captcha-visual {
    min-height: 52px;
    padding: 5px 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px dashed rgba(197, 138, 37, .58);
    border-radius: 7px;
    background: #fff;
}

.captcha-visual img {
    width: 100% !important;
    height: 42px !important;
    object-fit: contain;
}

.btn-refresh {
    min-width: 48px;
    border: 1px solid var(--marwa-navy);
    border-radius: 7px;
    color: #fff;
    background: var(--marwa-navy);
    font-size: 1.45rem;
    line-height: 1;
    transition: transform .2s ease, background-color .2s ease;
}

.btn-refresh:hover {
    background: var(--marwa-navy-2);
    transform: rotate(18deg);
}

.captcha-type {
    margin-top: 10px;
}

.captcha-type input {
    min-height: 48px;
    padding-right: 16px;
}

.form-options {
    margin: 2px 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.secure-note {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--marwa-muted);
    font-size: .76rem;
    font-weight: 600;
}

.secure-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #2f9e5b;
    box-shadow: 0 0 0 4px rgba(47, 158, 91, .12);
}

.forgot-text a {
    color: var(--marwa-navy) !important;
    font-size: .8rem;
    font-weight: 800;
    text-decoration: none;
}

.forgot-text a:hover {
    color: var(--marwa-gold) !important;
}

#lblErrorText {
    display: block;
    margin: -6px 0 13px;
    color: #d92d20 !important;
    font-size: .8rem;
    font-weight: 700;
}

#lblErrorText:empty {
    display: none;
}

.btn-login {
    position: relative;
    width: 100%;
    min-height: 55px;
    overflow: hidden;
    border: 1px solid var(--marwa-gold);
    border-radius: 8px;
    color: #fff;
    background: linear-gradient(135deg, #9e620f 0%, #c58a25 48%, #dfb250 100%);
    box-shadow: 0 13px 28px rgba(164, 105, 21, .22);
    font-family: inherit;
    font-size: .89rem;
    font-weight: 800;
    letter-spacing: .035em;
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}

.btn-login:hover,
.btn-login:focus {
    color: #fff;
    filter: brightness(.96);
    transform: translateY(-1px);
    box-shadow: 0 16px 34px rgba(164, 105, 21, .28);
}

.signup-text {
    margin-top: 22px;
    color: var(--marwa-muted);
    font-size: .84rem;
    text-align: center;
}

.signup-text a,
.tf-color {
    margin-left: 4px;
    color: var(--marwa-navy) !important;
    font-weight: 800;
    text-decoration: none;
}

.signup-text a:hover {
    color: var(--marwa-gold) !important;
}

.privacy-note {
    margin-top: 24px;
    padding-top: 18px;
    border-top: 1px solid var(--marwa-border);
    color: #98a2b3;
    font-size: .67rem;
    line-height: 1.6;
    text-align: center;
}

@media (max-width: 991.98px) {
    #form1 {
        padding: 22px;
    }

    .login-wrapper {
        max-width: 720px;
        grid-template-columns: 1fr;
        border-radius: 22px;
    }

    .left-panel {
        min-height: 440px;
        padding: 38px 42px 34px;
    }

    .left-panel::before {
        background-position: center 55%;
    }

    .left-copy {
        padding: 40px 0 25px;
    }

    .left-title {
        font-size: clamp(2.8rem, 8vw, 4.6rem);
    }

    .left-footer small {
        max-width: 380px;
    }

    .right-panel {
        padding: 52px 54px 46px;
    }
}

@media (max-width: 575.98px) {
    #form1 {
        display: block;
        padding: 0;
    }

    .login-wrapper {
        width: 100%;
        min-height: 100vh;
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .login-wrapper::after {
        display: none;
    }

    .left-panel {
        min-height: 360px;
        padding: 28px 24px;
    }

    .left-panel .brand-logo {
        max-width: 235px;
        padding: 9px 13px;
    }

    .brand-logo img {
        width: 205px;
    }

    .left-copy {
        padding: 32px 0 18px;
    }

    .left-copy::before {
        left: -24px;
    }

    .eyebrow {
        margin-bottom: 13px;
        font-size: .62rem;
    }

    .left-title {
        font-size: 2.65rem;
    }

    .left-title::after {
        margin-top: 16px;
    }

    .left-subtitle {
        margin-top: 16px;
        font-size: .86rem;
    }

    .feature-list {
        display: none;
    }

    .left-footer {
        padding-top: 14px;
    }

    .left-footer small {
        max-width: 230px;
        font-size: .56rem;
    }

    .right-panel {
        padding: 42px 24px 36px;
    }

    .form-title {
        font-size: 2.45rem;
    }

    .form-desc {
        margin-bottom: 25px;
        font-size: .86rem;
    }

    .captcha-section {
        padding: 14px;
    }

    .form-options {
        align-items: flex-start;
    }
}

@media (max-width: 370px) {
    .left-footer small,
    .secure-note {
        display: none;
    }

    .form-options {
        justify-content: flex-end;
    }
}
