﻿:root {
    --lemon-primary: #005471;
    --lemon-primary-dark: #003b50;
    --lemon-accent: #1f9d57;
    --lemon-accent-dark: #16864a;
    --lemon-bg: #f4f7f9;
    --lemon-card: #ffffff;
    --lemon-border: #e3e9ee;
    --lemon-text: #1b2733;
    --lemon-muted: #6b7c8c;
}

body.lemon-auth {
    font-family: 'Inter', system-ui, -apple-system, "Segoe UI", sans-serif;
    background: var(--lemon-bg);
    color: var(--lemon-text);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    margin: 0;
}

/* ---------- Header ---------- */
.lemon-header {
    height: 68px;
    background: var(--lemon-primary);
    display: flex;
    align-items: center;
    box-shadow: 0 2px 12px rgba(0, 84, 113, .18);
    position: relative;
    z-index: 5;
}

    .lemon-header img {
        height: 42px;
    }

.lemon-lang-btn {
    border: 1px solid rgba(255, 255, 255, .35);
    background: rgba(255, 255, 255, .12);
    color: #fff;
    border-radius: 10px;
    padding: 7px 12px;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: background .2s ease;
}

    .lemon-lang-btn:hover {
        background: rgba(255, 255, 255, .22);
        color: #fff;
    }

/* ---------- Layout ---------- */
.lemon-main {
    flex: 1;
    display: flex;
    min-height: 0;
}

.lemon-row {
    display: flex;
    width: 100%;
    flex-wrap: wrap;
}

/* ---------- Brand / illustration panel ---------- */
.lemon-visual {
    flex: 1 1 50%;
    background: linear-gradient(155deg, var(--lemon-primary) 0%, var(--lemon-primary-dark) 100%);
    color: #fff;
    padding: 56px 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

    .lemon-visual::before,
    .lemon-visual::after {
        content: "";
        position: absolute;
        border-radius: 50%;
        background: rgba(255, 255, 255, .06);
    }

    .lemon-visual::before {
        width: 360px;
        height: 360px;
        top: -120px;
        inset-inline-end: -120px;
    }

    .lemon-visual::after {
        width: 260px;
        height: 260px;
        bottom: -100px;
        inset-inline-start: -90px;
    }

    .lemon-visual .lemon-illustration {
        max-width: 440px;
        width: 100%;
        margin-bottom: 36px;
        position: relative;
        z-index: 1;
        filter: drop-shadow(0 20px 40px rgba(0, 0, 0, .25));
    }

    .lemon-visual h3 {
        font-weight: 700;
        font-size: 26px;
        margin-bottom: 12px;
        position: relative;
        z-index: 1;
    }

    .lemon-visual p {
        color: rgba(255, 255, 255, .8);
        max-width: 420px;
        margin: 0 auto;
        position: relative;
        z-index: 1;
    }

/* ---------- Form panel ---------- */
.lemon-form-side {
    flex: 1 1 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
}

.lemon-card {
    width: 100%;
    max-width: 440px;
    background: var(--lemon-card);
    border: 1px solid var(--lemon-border);
    border-radius: 18px;
    box-shadow: 0 18px 50px rgba(16, 42, 67, .08);
    padding: 40px 36px;
}

.lemon-mobile-logo {
    display: none;
    text-align: center;
    margin-bottom: 24px;
}

    .lemon-mobile-logo img {
        height: 78px;
    }

.lemon-card h2 {
    font-weight: 700;
    font-size: 24px;
    margin-bottom: 6px;
    color: var(--lemon-text);
}

.lemon-card .lemon-sub {
    color: var(--lemon-muted);
    font-size: 15px;
    margin-bottom: 28px;
}

.lemon-label {
    font-weight: 600;
    font-size: 14px;
    color: var(--lemon-text);
    margin-bottom: 7px;
}

.lemon-input-group {
    position: relative;
    margin-bottom: 18px;
}

    .lemon-input-group .lemon-input-icon {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        inset-inline-start: 14px;
        color: var(--lemon-muted);
        font-size: 16px;
        pointer-events: none;
    }

    .lemon-input-group .form-control {
        height: 50px;
        border-radius: 12px;
        border: 1px solid var(--lemon-border);
        background: #fafcfd;
        padding-inline-start: 42px;
        padding-inline-end: 42px;
        font-size: 15px;
        transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
    }

        .lemon-input-group .form-control:focus {
            border-color: var(--lemon-primary);
            background: #fff;
            box-shadow: 0 0 0 4px rgba(0, 84, 113, .12);
        }

.lemon-toggle-password {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    inset-inline-end: 14px;
    color: var(--lemon-muted);
    cursor: pointer;
    font-size: 18px;
}

:lang(ar) .lemon-toggle-password {
    inset-inline-start: auto;
}

.lemon-check-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 6px 0 22px;
}

    .lemon-check-row .form-check-input {
        width: 18px;
        height: 18px;
        margin-top: 0;
        cursor: pointer;
    }

        .lemon-check-row .form-check-input:checked {
            background-color: var(--lemon-primary);
            border-color: var(--lemon-primary);
        }

    .lemon-check-row label {
        margin: 0;
        font-size: 14px;
        color: var(--lemon-text);
        cursor: pointer;
    }

.lemon-btn {
    width: 100%;
    height: 50px;
    border: none;
    border-radius: 12px;
    background: var(--lemon-accent);
    color: #fff;
    font-weight: 600;
    font-size: 16px;
    transition: background .2s ease, transform .1s ease, box-shadow .2s ease;
    box-shadow: 0 8px 20px rgba(31, 157, 87, .28);
}

    .lemon-btn:hover {
        background: var(--lemon-accent-dark);
        color: #fff;
    }

    .lemon-btn:active {
        transform: translateY(1px);
    }

.lemon-forgot {
    text-align: center;
    margin-top: 20px;
}

    .lemon-forgot a {
        color: var(--lemon-primary);
        font-weight: 600;
        font-size: 14px;
        text-decoration: none;
    }

        .lemon-forgot a:hover {
            text-decoration: underline;
        }

.lemon-validation-summary:not(:empty) {
    background: #fdecec;
    border: 1px solid #f5c2c2;
    color: #b02a2a;
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 14px;
    margin-bottom: 18px;
}

.lemon-field-error {
    color: #d23c3c;
    font-size: 13px;
    margin-top: 5px;
    display: block;
}

/* ---------- Footer ---------- */
.lemon-footer {
    background: var(--lemon-primary);
    color: rgba(255, 255, 255, .9);
    text-align: center;
    padding: 16px;
    font-size: 14px;
}

/* RTL icon fix for toggle / addon already handled by inset-inline-* */

@media (max-width: 991.98px) {
    .lemon-visual {
        display: none !important;
    }

    .lemon-form-side {
        flex: 1 1 100%;
    }

    .lemon-mobile-logo {
        display: block;
    }
}


