:root {
    --hagzz-ink: #101c19;
    --hagzz-forest: #132621;
    --hagzz-forest-soft: #1d3931;
    --hagzz-lime: #aaf448;
    --hagzz-lime-strong: #96e62e;
    --hagzz-paper: #f6f8f7;
    --hagzz-muted: #68736f;
    --hagzz-line: #dfe6e3;
    --hagzz-danger: #c83f4b;
}

* {
    box-sizing: border-box;
}

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

body.partner-login-page {
    margin: 0;
    background: var(--hagzz-paper);
    color: var(--hagzz-ink);
    font-family: "Inter", "Cairo", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    -webkit-font-smoothing: antialiased;
}

[dir="rtl"] body.partner-login-page {
    font-family: "Cairo", "Inter", system-ui, sans-serif;
}

.partner-login-shell {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(460px, 0.92fr);
    min-height: 100vh;
}

.partner-login-visual {
    position: relative;
    isolation: isolate;
    display: flex;
    min-height: 100vh;
    overflow: hidden;
    padding: 38px clamp(34px, 5vw, 78px) 48px;
    background:
        linear-gradient(145deg, rgba(19, 38, 33, 0.97), rgba(11, 24, 20, 0.99)),
        radial-gradient(circle at 30% 20%, rgba(170, 244, 72, 0.18), transparent 42%);
    color: #fff;
    flex-direction: column;
}

.partner-login-visual::after {
    position: absolute;
    z-index: -1;
    right: -15%;
    bottom: -28%;
    width: 72%;
    aspect-ratio: 1;
    border: 1px solid rgba(170, 244, 72, 0.13);
    border-radius: 50%;
    box-shadow: 0 0 0 90px rgba(170, 244, 72, 0.035), 0 0 0 180px rgba(170, 244, 72, 0.025);
    content: "";
}

.visual-orb {
    position: absolute;
    z-index: -1;
    border-radius: 999px;
    filter: blur(2px);
    pointer-events: none;
}

.visual-orb-one {
    top: 20%;
    left: -70px;
    width: 190px;
    height: 190px;
    background: rgba(170, 244, 72, 0.07);
}

.visual-orb-two {
    top: 62%;
    right: 15%;
    width: 90px;
    height: 90px;
    border: 1px solid rgba(255, 255, 255, 0.11);
}

.visual-header,
.form-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand-mark,
.mobile-brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    color: inherit;
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -1.3px;
    text-decoration: none;
}

.brand-mark img,
.mobile-brand img {
    width: 42px;
    height: 42px;
    border-radius: 13px;
}

.partner-badge {
    padding: 8px 13px;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.8);
    font-size: 12px;
    font-weight: 600;
}

.visual-copy {
    position: relative;
    z-index: 2;
    max-width: 650px;
    margin-top: clamp(80px, 13vh, 150px);
}

.visual-eyebrow {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 18px;
    color: var(--hagzz-lime);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.visual-eyebrow::before {
    width: 27px;
    height: 2px;
    border-radius: 10px;
    background: currentColor;
    content: "";
}

.visual-copy h1 {
    max-width: 610px;
    margin: 0;
    font-size: clamp(42px, 5.2vw, 74px);
    font-weight: 800;
    letter-spacing: -0.055em;
    line-height: 1.03;
}

[dir="rtl"] .visual-copy h1 {
    letter-spacing: -0.025em;
    line-height: 1.25;
}

.visual-description {
    max-width: 570px;
    margin: 24px 0 0;
    color: rgba(255, 255, 255, 0.69);
    font-size: clamp(15px, 1.25vw, 18px);
    line-height: 1.8;
}

.feature-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 30px;
}

.feature-list span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 13px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.055);
    color: rgba(255, 255, 255, 0.88);
    font-size: 13px;
    backdrop-filter: blur(8px);
}

.feature-list i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--hagzz-lime);
    box-shadow: 0 0 0 4px rgba(170, 244, 72, 0.1);
}

.sports-figure {
    position: absolute;
    z-index: 1;
    right: -4%;
    bottom: 4%;
    width: min(48vw, 610px);
    max-height: 54vh;
    object-fit: contain;
    object-position: right bottom;
    opacity: 0.22;
    filter: grayscale(1) contrast(1.12);
    mix-blend-mode: screen;
    pointer-events: none;
}

[dir="rtl"] .sports-figure {
    right: auto;
    left: -4%;
    transform: scaleX(-1);
}

.visual-insight {
    position: relative;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 15px;
    max-width: 430px;
    margin-top: auto;
    padding: 15px 17px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.07);
    box-shadow: 0 22px 70px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(16px);
}

.insight-icon {
    display: grid;
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 12px;
    background: var(--hagzz-lime);
    color: var(--hagzz-ink);
    font-size: 20px;
    font-weight: 800;
}

.visual-insight strong {
    display: block;
    margin-bottom: 3px;
    font-size: 14px;
}

.visual-insight p {
    margin: 0;
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
    line-height: 1.55;
}

.partner-login-form-panel {
    display: flex;
    min-height: 100vh;
    padding: 34px clamp(28px, 5vw, 76px) 42px;
    background: #fff;
    flex-direction: column;
}

.mobile-brand {
    display: none;
    color: var(--hagzz-ink);
    font-size: 22px;
}

.mobile-brand img {
    width: 35px;
    height: 35px;
    border-radius: 10px;
}

.language-link {
    margin-inline-start: auto;
    padding: 8px 12px;
    border-radius: 9px;
    color: #52615c;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: background 160ms ease, color 160ms ease;
}

.language-link:hover {
    background: #f0f5f2;
    color: var(--hagzz-ink);
}

.login-form-wrap {
    width: min(100%, 440px);
    margin: auto;
    padding: 46px 0 30px;
}

.login-heading {
    margin-bottom: 32px;
}

.heading-icon {
    display: grid;
    width: 48px;
    height: 48px;
    margin-bottom: 25px;
    place-items: center;
    border-radius: 14px;
    background: var(--hagzz-lime);
    box-shadow: 0 13px 32px rgba(170, 244, 72, 0.27);
    font-size: 20px;
    font-weight: 900;
}

.login-heading h2 {
    margin: 0;
    color: var(--hagzz-ink);
    font-size: clamp(30px, 3vw, 40px);
    font-weight: 800;
    letter-spacing: -0.04em;
}

[dir="rtl"] .login-heading h2 {
    letter-spacing: -0.02em;
}

.login-heading p {
    margin: 9px 0 0;
    color: var(--hagzz-muted);
    font-size: 15px;
}

.login-alert {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    padding: 12px 14px;
    border: 1px solid #f3cbd0;
    border-radius: 12px;
    background: #fff5f6;
    color: #9e2f3a;
    font-size: 13px;
}

.login-alert span {
    display: grid;
    width: 22px;
    height: 22px;
    place-items: center;
    border-radius: 50%;
    background: #f2d6d9;
    font-weight: 800;
}

.partner-login-form {
    display: grid;
    gap: 19px;
}

.field-group label {
    display: block;
    margin-bottom: 8px;
    color: #26332f;
    font-size: 13px;
    font-weight: 700;
}

.field-group input {
    width: 100%;
    height: 54px;
    padding: 0 15px;
    border: 1px solid var(--hagzz-line);
    border-radius: 13px;
    outline: none;
    background: #fbfcfb;
    color: var(--hagzz-ink);
    font: inherit;
    font-size: 14px;
    direction: ltr !important;
    text-align: left !important;
    transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

[dir="rtl"] .field-group input {
    direction: ltr !important;
    text-align: left !important;
}

.field-group input::placeholder {
    color: #9aa39f;
    direction: ltr;
    text-align: left;
}

.field-group input:hover {
    border-color: #c5d0cb;
}

.field-group input:focus {
    border-color: #6aaa35;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(170, 244, 72, 0.18);
}

.field-group input.has-error {
    border-color: var(--hagzz-danger);
}

.field-error {
    margin: 7px 2px 0;
    color: var(--hagzz-danger);
    font-size: 12px;
}

.password-field {
    position: relative;
}

.password-field input {
    padding-left: 15px !important;
    padding-right: 76px !important;
    direction: ltr !important;
    text-align: left !important;
}

[dir="rtl"] .password-field input {
    padding-left: 15px !important;
    padding-right: 76px !important;
    direction: ltr !important;
    text-align: left !important;
}

.password-field button {
    position: absolute;
    top: 50%;
    right: 9px !important;
    left: auto !important;
    inset-inline-end: 9px;
    min-width: 54px;
    padding: 7px 8px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #53615c;
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transform: translateY(-50%);
}

.password-field button:hover,
.password-field button:focus-visible {
    background: #edf3ef;
    outline: none;
}

.remember-choice {
    display: inline-flex;
    width: max-content;
    align-items: center;
    gap: 9px;
    color: #56625e;
    font-size: 13px;
    cursor: pointer;
    user-select: none;
}

.remember-choice input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.remember-choice span {
    display: grid;
    width: 19px;
    height: 19px;
    place-items: center;
    border: 1px solid #c9d3cf;
    border-radius: 6px;
    background: #fff;
    transition: background 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.remember-choice input:checked + span {
    border-color: var(--hagzz-ink);
    background: var(--hagzz-ink);
}

.remember-choice input:checked + span::after {
    color: #fff;
    content: "✓";
    font-size: 12px;
    font-weight: 800;
}

.remember-choice input:focus-visible + span {
    box-shadow: 0 0 0 4px rgba(170, 244, 72, 0.22);
}

.login-submit {
    display: flex;
    width: 100%;
    height: 56px;
    margin-top: 3px;
    padding: 0 19px;
    border: 0;
    border-radius: 13px;
    align-items: center;
    justify-content: space-between;
    background: var(--hagzz-ink);
    box-shadow: 0 16px 36px rgba(16, 28, 25, 0.17);
    color: #fff;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.login-submit:hover {
    background: #1b332c;
    box-shadow: 0 18px 40px rgba(16, 28, 25, 0.23);
    transform: translateY(-1px);
}

.login-submit:active {
    transform: translateY(0);
}

.login-submit b {
    display: grid;
    width: 27px;
    height: 27px;
    place-items: center;
    border-radius: 8px;
    background: var(--hagzz-lime);
    color: var(--hagzz-ink);
    font-size: 16px;
}

.login-security {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 22px;
    color: #71807a;
    font-size: 11px;
}

.login-security span {
    color: #528b2d;
    font-weight: 900;
}

.login-help {
    margin: 30px 0 0;
    color: #89938f;
    font-size: 12px;
    line-height: 1.7;
    text-align: center;
}

@media (max-width: 1100px) {
    .partner-login-shell {
        grid-template-columns: minmax(0, 0.92fr) minmax(440px, 1.08fr);
    }

    .visual-copy h1 {
        font-size: clamp(38px, 5vw, 56px);
    }

    .sports-figure {
        width: 55vw;
        opacity: 0.16;
    }
}

@media (max-width: 860px) {
    .partner-login-shell {
        display: block;
    }

    .partner-login-visual {
        min-height: 350px;
        padding: 26px 26px 34px;
    }

    .visual-copy {
        margin-top: 55px;
    }

    .visual-copy h1 {
        max-width: 620px;
        font-size: clamp(34px, 8vw, 50px);
    }

    .visual-description {
        max-width: 610px;
    }

    .visual-insight,
    .sports-figure {
        display: none;
    }

    .partner-login-form-panel {
        min-height: auto;
        padding: 24px 26px 48px;
    }

    .visual-header {
        display: flex;
    }

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

    .login-form-wrap {
        padding-top: 38px;
    }

    .heading-icon {
        display: none;
    }
}

@media (max-width: 560px) {
    .partner-login-visual {
        min-height: 310px;
        padding: 22px 20px 30px;
    }

    .brand-mark {
        font-size: 23px;
    }

    .brand-mark img {
        width: 36px;
        height: 36px;
        border-radius: 11px;
    }

    .visual-copy {
        margin-top: 44px;
    }

    .visual-copy h1 {
        font-size: 34px;
    }

    [dir="rtl"] .visual-copy h1 {
        font-size: 32px;
    }

    .visual-description {
        margin-top: 16px;
        font-size: 14px;
        line-height: 1.7;
    }

    .feature-list {
        gap: 7px;
        margin-top: 20px;
    }

    .feature-list span {
        padding: 8px 10px;
        font-size: 11px;
    }

    .partner-login-form-panel {
        padding: 20px 20px 38px;
    }

    .login-form-wrap {
        padding-top: 30px;
    }

    .login-heading {
        margin-bottom: 26px;
    }

    .login-heading h2 {
        font-size: 30px;
    }
}

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