/*
 * Rachamim AI Premium Login
 * Hebrew RTL / English LTR
 */

body.rachamim-login-page {
    margin: 0 !important;
    padding: 0 !important;
    min-height: 100vh !important;
    overflow-x: hidden;
    background: #0f1720 !important;
    font-family:
        Inter,
        "Segoe UI",
        Arial,
        sans-serif !important;
    color: #111827;
}

.rachamim-login-page * {
    box-sizing: border-box;
}

.rachamim-login-shell {
    position: relative;
    min-height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background-image:
        linear-gradient(
            90deg,
            rgba(255,255,255,.10) 0%,
            rgba(255,255,255,.04) 40%,
            rgba(12,24,36,.10) 100%
        ),
        url("/rachamim-login-bg.jpg");
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
}

.rachamim-login-shell::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(
            180deg,
            rgba(255,255,255,.05) 0%,
            rgba(255,255,255,0) 38%,
            rgba(5,15,24,.22) 100%
        );
}

.rachamim-login-top {
    position: relative;
    z-index: 5;
    width: 100%;
    min-height: 72px;
    padding: 24px 38px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.rachamim-language-switch {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px;
    border-radius: 12px;
    background: rgba(255,255,255,.68);
    border: 1px solid rgba(255,255,255,.55);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow:
        0 8px 30px rgba(15,23,42,.08);
}

.rachamim-language-switch button {
    appearance: none;
    border: 0;
    background: transparent;
    color: #4b5563;
    padding: 7px 10px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition:
        background .18s ease,
        color .18s ease;
}

.rachamim-language-switch button:hover {
    background: rgba(255,255,255,.60);
    color: #111827;
}

.rachamim-language-switch button.active {
    background: #ffffff;
    color: #111827;
    box-shadow:
        0 2px 9px rgba(15,23,42,.10);
}

.rachamim-language-globe {
    width: 16px;
    height: 16px;
    color: #374151;
    margin-inline: 4px 1px;
}

.rachamim-login-main {
    position: relative;
    z-index: 3;
    width: min(1180px, calc(100% - 70px));
    margin: auto;
    flex: 1;
    display: grid;
    grid-template-columns:
        minmax(360px, 1fr)
        minmax(380px, 470px);
    gap: 90px;
    align-items: center;
    padding:
        20px 0 80px;
}

.rachamim-brand-panel {
    color: #101827;
    max-width: 620px;
    text-shadow:
        0 1px 12px rgba(255,255,255,.16);
}

html[dir="rtl"] .rachamim-brand-panel {
    direction: rtl;
    text-align: right;
}

html[dir="ltr"] .rachamim-brand-panel {
    direction: ltr;
    text-align: left;
}

.rachamim-brand-name {
    margin: 0;
    font-size: clamp(42px, 5vw, 67px);
    line-height: 1.02;
    letter-spacing: -2.2px;
    font-weight: 800;
    color: #111827;
}

.rachamim-brand-name .ai {
    color: #2483ff;
}

.rachamim-brand-tagline {
    margin-top: 16px;
    font-size: clamp(18px, 2vw, 23px);
    line-height: 1.55;
    font-weight: 400;
    color: #1f2937;
}

.rachamim-brand-divider {
    margin-top: 31px;
    width: 44px;
    height: 2px;
    border-radius: 99px;
    background: rgba(17,24,39,.20);
}

html[dir="rtl"] .rachamim-brand-divider {
    margin-right: 0;
    margin-left: auto;
}

html[dir="ltr"] .rachamim-brand-divider {
    margin-left: 0;
    margin-right: auto;
}

.rachamim-brand-values {
    margin-top: 24px;
    color: rgba(31,41,55,.68);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.rachamim-login-card {
    width: 100%;
    border-radius: 22px;
    padding: 36px 35px 32px;
    background:
        linear-gradient(
            145deg,
            rgba(255,255,255,.95),
            rgba(255,255,255,.85)
        );
    border:
        1px solid rgba(255,255,255,.72);
    box-shadow:
        0 30px 80px rgba(15,23,42,.20),
        0 4px 18px rgba(15,23,42,.08);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
}

html[dir="rtl"] .rachamim-login-card {
    direction: rtl;
    text-align: right;
}

html[dir="ltr"] .rachamim-login-card {
    direction: ltr;
    text-align: left;
}

.rachamim-login-card-title {
    margin: 0;
    font-size: 21px;
    line-height: 1.35;
    font-weight: 750;
    color: #111827;
}

.rachamim-login-card-subtitle {
    margin-top: 7px;
    margin-bottom: 25px;
    color: #6b7280;
    font-size: 13px;
    line-height: 1.55;
}

.rachamim-login-form {
    width: 100%;
    margin: 0;
    padding: 0;
}

.rachamim-field {
    position: relative;
    width: 100%;
    margin-bottom: 13px;
}

.rachamim-field-label {
    display: block;
    margin-bottom: 7px;
    font-size: 12px;
    line-height: 1.25;
    color: #4b5563;
    font-weight: 600;
}

.rachamim-input-wrap {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
}

.rachamim-input-wrap input {
    width: 100% !important;
    min-height: 49px !important;
    margin: 0 !important;
    padding:
        0 45px !important;
    border:
        1px solid #d8dee7 !important;
    border-radius: 11px !important;
    outline: none !important;
    background:
        rgba(255,255,255,.82) !important;
    color: #111827 !important;
    font-family:
        Inter,
        "Segoe UI",
        Arial,
        sans-serif !important;
    font-size: 14px !important;
    box-shadow:
        0 1px 2px rgba(15,23,42,.02) !important;
    transition:
        border-color .18s ease,
        box-shadow .18s ease,
        background .18s ease !important;
}

.rachamim-input-wrap input:hover {
    border-color: #b9c2ce !important;
}

.rachamim-input-wrap input:focus {
    border-color: #3b82f6 !important;
    background: #fff !important;
    box-shadow:
        0 0 0 4px rgba(59,130,246,.11) !important;
}

html[dir="rtl"]
.rachamim-input-wrap input:placeholder-shown {
    direction: rtl;
    text-align: right;
}

html[dir="rtl"]
.rachamim-input-wrap input:not(:placeholder-shown) {
    direction: ltr;
    text-align: left;
}

html[dir="ltr"]
.rachamim-input-wrap input {
    direction: ltr;
    text-align: left;
}

.rachamim-field-icon {
    position: absolute;
    z-index: 4;
    inset-inline-start: 15px;
    width: 18px;
    height: 18px;
    color: #6b7280;
    pointer-events: none;
}

.rachamim-field-action {
    position: absolute;
    z-index: 4;
    inset-inline-end: 10px;
    width: 31px;
    height: 31px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #6b7280;
    cursor: pointer;
}

.rachamim-field-action:hover {
    background: #f3f4f6;
    color: #111827;
}

.rachamim-field-action svg {
    width: 17px;
    height: 17px;
}

.rachamim-mfa-note {
    margin:
        -2px 0 17px;
    color: #6b7280;
    font-size: 11px;
    line-height: 1.5;
}

.rachamim-error {
    display: none;
    margin-bottom: 16px;
    border-radius: 10px;
    border: 1px solid #fecaca;
    background: #fef2f2;
    color: #991b1b;
    padding: 11px 13px;
    font-size: 13px;
    line-height: 1.5;
}

.rachamim-error.show {
    display: block;
}

.rachamim-login-submit {
    width: 100%;
    min-height: 50px;
    border: 0;
    border-radius: 11px;
    background:
        linear-gradient(
            135deg,
            #131d29,
            #1d2d3d
        );
    color: #ffffff;
    font-family:
        Inter,
        "Segoe UI",
        Arial,
        sans-serif;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    box-shadow:
        0 8px 20px rgba(17,24,39,.14);
    transition:
        transform .16s ease,
        box-shadow .16s ease,
        background .16s ease;
}

.rachamim-login-submit:hover {
    transform: translateY(-1px);
    background:
        linear-gradient(
            135deg,
            #0c1520,
            #16283b
        );
    box-shadow:
        0 11px 24px rgba(17,24,39,.20);
}

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

.rachamim-security-note {
    margin-top: 17px;
    display: flex;
    align-items: center;
    gap: 7px;
    color: #6b7280;
    font-size: 11px;
    line-height: 1.45;
}

.rachamim-security-note svg {
    flex: 0 0 auto;
    width: 14px;
    height: 14px;
}

.rachamim-login-footer {
    position: relative;
    z-index: 4;
    width: 100%;
    min-height: 65px;
    padding:
        12px 30px 23px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.rachamim-footer-inner {
    padding:
        9px 15px;
    border-radius: 20px;
    background:
        rgba(10,20,30,.20);
    color:
        rgba(255,255,255,.92);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    font-size: 11px;
    letter-spacing: .1px;
    text-shadow:
        0 1px 4px rgba(0,0,0,.25);
}

.rachamim-footer-separator {
    margin: 0 8px;
    opacity: .58;
}

@media (max-width: 900px) {

    .rachamim-login-shell {
        background-position:
            42% center;
    }

    .rachamim-login-top {
        padding:
            18px 20px;
    }

    .rachamim-login-main {
        width:
            min(520px, calc(100% - 32px));
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 26px;
        padding:
            18px 0 35px;
    }

    .rachamim-brand-panel {
        width: 100%;
        max-width: none;
        text-align: center !important;
    }

    .rachamim-brand-name {
        font-size:
            clamp(35px, 10vw, 47px);
    }

    .rachamim-brand-tagline {
        margin-top: 9px;
        font-size: 16px;
    }

    .rachamim-brand-divider,
    .rachamim-brand-values {
        display: none;
    }

    .rachamim-login-card {
        padding:
            29px 25px 27px;
    }

    .rachamim-login-footer {
        padding-bottom: 17px;
    }
}

@media (max-width: 480px) {

    .rachamim-login-top {
        justify-content: center;
    }

    .rachamim-language-switch {
        font-size: 12px;
    }

    .rachamim-login-main {
        width:
            calc(100% - 24px);
    }

    .rachamim-login-card {
        border-radius: 18px;
        padding:
            25px 19px 23px;
    }

    .rachamim-login-card-title {
        font-size: 19px;
    }

    .rachamim-footer-inner {
        font-size: 10px;
    }
}

/* RACHAMIM_LOGIN_GLASS_V2 */

.rachamim-brand-panel {
    position: relative;

    max-width: 610px;

    padding:
        38px 42px 36px;

    border-radius: 24px;

    background:
        linear-gradient(
            145deg,
            rgba(8, 18, 29, .70),
            rgba(13, 29, 43, .52)
        );

    border:
        1px solid rgba(255,255,255,.16);

    box-shadow:
        0 28px 70px rgba(0,0,0,.20),
        inset 0 1px 0 rgba(255,255,255,.08);

    backdrop-filter:
        blur(18px)
        saturate(115%);

    -webkit-backdrop-filter:
        blur(18px)
        saturate(115%);

    color: #ffffff;

    text-shadow: none;

    overflow: hidden;
}

.rachamim-brand-panel::before {
    content: "";

    position: absolute;

    inset: 0;

    pointer-events: none;

    background:
        radial-gradient(
            circle at 20% 0%,
            rgba(255,255,255,.10),
            transparent 38%
        );
}

.rachamim-brand-panel > * {
    position: relative;
    z-index: 1;
}

.rachamim-brand-name {
    color: #ffffff !important;

    text-shadow:
        0 3px 20px rgba(0,0,0,.22);
}

.rachamim-brand-name .ai {
    color: #3b8cff !important;

    text-shadow:
        0 3px 22px rgba(30,120,255,.22);
}

.rachamim-brand-tagline {
    color:
        rgba(255,255,255,.91) !important;

    text-shadow:
        0 2px 10px rgba(0,0,0,.22);
}

.rachamim-brand-divider {
    background:
        rgba(255,255,255,.35) !important;
}

.rachamim-brand-values {
    color:
        rgba(255,255,255,.66) !important;

    text-shadow:
        0 1px 8px rgba(0,0,0,.16);
}

.rachamim-login-footer {
    padding-bottom: 22px;
}

.rachamim-footer-inner {
    display: flex;

    flex-wrap: wrap;

    justify-content: center;

    align-items: center;

    gap: 0;

    padding:
        10px 17px;

    border:
        1px solid rgba(255,255,255,.13);

    background:
        rgba(7,17,27,.46);

    color:
        rgba(255,255,255,.90);

    box-shadow:
        0 10px 30px rgba(0,0,0,.12);

    backdrop-filter:
        blur(14px);

    -webkit-backdrop-filter:
        blur(14px);
}

.rachamim-footer-domain {
    color: #ffffff;

    font-weight: 600;

    text-decoration: none;

    transition:
        opacity .15s ease,
        color .15s ease;
}

.rachamim-footer-domain:hover {
    color: #8fc1ff;
}

.rachamim-footer-copyright {
    white-space: nowrap;
}

@media (max-width: 900px) {

    .rachamim-brand-panel {
        padding:
            27px 25px;

        border-radius: 20px;

        background:
            linear-gradient(
                145deg,
                rgba(8,18,29,.73),
                rgba(13,29,43,.57)
            );
    }

    .rachamim-brand-tagline {
        margin-bottom: 0;
    }
}

@media (max-width: 480px) {

    .rachamim-brand-panel {
        padding:
            22px 18px;
    }

    .rachamim-footer-inner {
        width: 100%;

        border-radius: 16px;

        line-height: 1.8;
    }
}
