/* FoodApp login + OTP (design from BPI / FM2 login) — wwwroot/css/auth/login.css */
/* ============ Design tokens ============ */
        /* Default = your app theme from custom.css (teal #17c4bb + Green #0b7676) */
        :root {
            --lp-primary: #17c4bb;
            --lp-primary-600: #13a8a0;
            --lp-primary-700: #0b7676;
            --lp-primary-50: #e8f9f8;
            --lp-primary-100: #c5efec;
            --lp-primary-rgb: 23, 196, 187;
            --lp-brand-rgb: 11, 118, 118; /* panel overlay */
            --lp-brand-dark-rgb: 6, 72, 72;
            --lp-accent: #8ff3ec; /* highlights on dark panel */
            --lp-ring: rgba(var(--lp-primary-rgb), .25);
            --lp-text: #0f172a;
            --lp-text-2: #475569;
            --lp-text-3: #94a3b8;
            --lp-border: #e2e8f0;
            --lp-border-strong: #cbd5e1;
            --lp-bg: #f6f8fb;
            --lp-surface: #ffffff;
            --lp-danger: #dc2626;
            --lp-danger-bg: #fef2f2;
            --lp-success: #059669;
            --lp-success-bg: #ecfdf5;
            --lp-warn: #b45309;
            --lp-radius: 12px;
            --lp-radius-lg: 20px;
            --lp-shadow: 0 1px 2px rgba(15,23,42,.04), 0 12px 32px -8px rgba(15,23,42,.12);
            --lp-font: "Open Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
        }


        /* Shield the login from global rules in custom.css / Mystyle.css */
        .lp label {
            top: auto;
        }

        .lp .lp-label {
            color: var(--lp-text) !important;
            font-size: 13.5px !important;
            font-weight: 600 !important;
            margin-bottom: 6px;
        }

        .lp .lp-check {
            color: var(--lp-text-2) !important;
            font-size: 14px !important;
            font-weight: 500 !important;
        }

        .lp button::before, .lp button::after {
            content: none !important;
        }

        .lp a:hover {
            text-decoration: none;
        }

        *, *::before, *::after {
            box-sizing: border-box;
        }

        html, body {
            height: 100%;
        }

            body.lp-body {
                margin: 0;
                font-family: var(--lp-font);
                font-size: 15px;
                line-height: 1.5;
                color: var(--lp-text);
                background: var(--lp-bg);
                -webkit-font-smoothing: antialiased;
            }

        /* ============ Layout ============ */
        .lp {
            display: grid;
            grid-template-columns: minmax(0, 70%) minmax(0, 30%);
            min-height: 100vh;
            min-height: 100dvh;
        }

        /* ============ Brand panel ============ */
        .lp-brand {
            position: relative;
            overflow: hidden;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            padding: 48px 56px;
            color: #ecfeff;
            /* Photo comes from the .lp-bg slide layers below (same teal overlay as before) */
            background-color: rgb(var(--lp-brand-dark-rgb));
        }

            .lp-brand > *:not(.lp-bg) {
                position: relative;
                z-index: 1;
            }

        /* ============ Background slideshow (crossfade) ============ */
        .lp-bg {
            position: absolute;
            inset: 0;
            z-index: 0;
            overflow: hidden;
            pointer-events: none;
        }

        .lp-bg-img {
            position: absolute;
            inset: 0;
            background-size: cover;
            background-position: center;
            background-repeat: no-repeat;
            opacity: 0;
            transition: opacity var(--lp-fade, .8s) ease-in-out;
        }

            .lp-bg-img.is-active {
                opacity: 1;
            }

        .lp-bg-overlay {
            position: absolute;
            inset: 0;
        }

        .lp-brand .lp-bg-overlay {
            background: linear-gradient(150deg, rgba(var(--lp-brand-rgb),.86) 0%, rgba(var(--lp-brand-rgb),.60) 50%, rgba(var(--lp-brand-dark-rgb),.90) 100%);
        }

        .lp-main > .lp-bg {
            display: none;
        }
        /* mobile only, see media query */
        .lp-hero h2, .lp-hero p, .lp-logo {
            text-shadow: 0 2px 12px rgba(0,0,0,.25);
        }

        .lp-logo {
            display: flex;
            align-items: center;
            gap: 12px;
            font-weight: 600;
            font-size: 16px;
            letter-spacing: .2px;
        }

        .lp-logo-mark {
            width: 42px;
            height: 42px;
            border-radius: 12px;
            display: grid;
            place-items: center;
            background: rgba(255,255,255,.14);
            border: 1px solid rgba(255,255,255,.22);
            backdrop-filter: blur(6px);
        }

            .lp-logo-mark svg {
                width: 22px;
                height: 22px;
            }

        .lp-hero {
            max-width: 520px;
        }

        .lp-eyebrow {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            padding: 6px 12px;
            border-radius: 999px;
            font-size: 12.5px;
            font-weight: 500;
            background: rgba(255,255,255,.1);
            border: 1px solid rgba(255,255,255,.18);
        }

            .lp-eyebrow i {
                width: 7px;
                height: 7px;
                border-radius: 50%;
                background: var(--lp-accent);
                box-shadow: 0 0 0 4px rgba(255,255,255,.18);
            }

        .lp-hero h2 {
            margin: 20px 0 12px;
            font-size: clamp(28px, 2.6vw, 40px);
            line-height: 1.15;
            font-weight: 700;
            letter-spacing: -.02em;
            color: #fff;
        }

        .lp-hero p {
            margin: 0;
            font-size: 16px;
            color: rgba(236,254,255,.78);
            max-width: 460px;
        }

        .lp-features {
            list-style: none;
            padding: 0;
            margin: 32px 0 0;
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 14px;
        }

            .lp-features li {
                display: flex;
                align-items: flex-start;
                gap: 10px;
                padding: 14px;
                border-radius: 14px;
                background: rgba(255,255,255,.07);
                border: 1px solid rgba(255,255,255,.12);
                font-size: 13.5px;
                color: rgba(236,254,255,.9);
            }

            .lp-features svg {
                flex: none;
                width: 18px;
                height: 18px;
                color: var(--lp-accent);
                margin-top: 1px;
            }

            .lp-features strong {
                display: block;
                color: #fff;
                font-weight: 600;
                font-size: 14px;
            }

        .lp-brand-foot {
            font-size: 13px;
            color: rgba(236,254,255,.6);
        }

        /* ============ Form side ============ */
        .lp-main {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            padding: 40px 24px;
        }

        .lp-card {
            width: 100%;
            max-width: 420px;
        }

        .lp-mobile-brand {
            display: none;
            align-items: center;
            gap: 12px;
            margin-bottom: 28px;
            font-weight: 600;
            color: var(--lp-text);
        }

            .lp-mobile-brand .lp-logo-mark {
                background: var(--lp-primary-50);
                border-color: var(--lp-primary-100);
                color: var(--lp-primary-600);
            }

        .lp-head h1 {
            margin: 0 0 6px;
            font-size: 28px;
            line-height: 1.2;
            font-weight: 700;
            letter-spacing: -.02em;
        }

        .lp-head p {
            margin: 0 0 28px;
            color: var(--lp-text-2);
        }

        /* Alerts */
        .lp-alert {
            display: flex;
            gap: 10px;
            align-items: flex-start;
            padding: 12px 14px;
            margin-bottom: 18px;
            border-radius: var(--lp-radius);
            border: 1px solid;
            font-size: 14px;
            animation: lp-in .25s ease-out;
        }

            .lp-alert svg {
                flex: none;
                width: 18px;
                height: 18px;
                margin-top: 1px;
            }

        .lp-alert-body {
            flex: 1;
        }

        .lp-alert-close {
            flex: none;
            border: 0;
            background: transparent;
            cursor: pointer;
            color: inherit;
            opacity: .6;
            padding: 0 2px;
            font-size: 18px;
            line-height: 1;
        }

            .lp-alert-close:hover {
                opacity: 1;
            }

        .lp-alert--error {
            color: #991b1b;
            background: var(--lp-danger-bg);
            border-color: #fecaca;
        }

        .lp-alert--success {
            color: #065f46;
            background: var(--lp-success-bg);
            border-color: #a7f3d0;
        }

        .validation-summary-errors {
            color: #991b1b;
            background: var(--lp-danger-bg);
            border: 1px solid #fecaca;
            border-radius: var(--lp-radius);
            padding: 12px 14px;
            margin-bottom: 18px;
            font-size: 14px;
        }

            .validation-summary-errors ul {
                margin: 0;
                padding-left: 18px;
            }

        .validation-summary-valid {
            display: none;
        }

        /* Fields */
        .lp-field {
            margin-bottom: 18px;
        }

        .lp-label-row {
            display: flex;
            justify-content: space-between;
            align-items: baseline;
        }

        .lp-label {
            display: block;
            margin-bottom: 6px;
            font-size: 13.5px;
            font-weight: 600;
            color: var(--lp-text);
        }

        .lp-input-wrap {
            position: relative;
        }

        .lp-input-icon {
            position: absolute;
            left: 14px;
            top: 50%;
            transform: translateY(-50%);
            width: 18px;
            height: 18px;
            color: var(--lp-text-3);
            pointer-events: none;
            transition: color .15s;
        }

        .lp .lp-input {
            width: 100%;
            height: 48px;
            padding: 0 14px 0 42px;
            font: inherit;
            font-size: 15px;
            color: var(--lp-text);
            background: var(--lp-surface);
            border: 1px solid var(--lp-border-strong);
            border-radius: var(--lp-radius);
            outline: none;
            box-shadow: none;
            transition: border-color .15s, box-shadow .15s;
            -webkit-appearance: none;
            appearance: none;
        }

            .lp .lp-input::placeholder {
                color: var(--lp-text-3);
            }

            .lp .lp-input:hover {
                border-color: #94a3b8;
            }

            .lp .lp-input:focus {
                border-color: var(--lp-primary);
                box-shadow: 0 0 0 4px var(--lp-ring);
            }

        .lp-input-wrap:focus-within .lp-input-icon {
            color: var(--lp-primary);
        }

        .lp .lp-input.has-toggle {
            padding-right: 48px;
        }

        .lp .lp-input.input-validation-error {
            border-color: var(--lp-danger);
        }

            .lp .lp-input.input-validation-error:focus {
                box-shadow: 0 0 0 4px rgba(220,38,38,.15);
            }

        .lp .lp-input:-webkit-autofill {
            -webkit-box-shadow: 0 0 0 1000px #fff inset;
            -webkit-text-fill-color: var(--lp-text);
        }

        .lp-toggle {
            position: absolute;
            right: 6px;
            top: 50%;
            transform: translateY(-50%);
            width: 36px;
            height: 36px;
            border: 0;
            border-radius: 8px;
            background: transparent;
            color: var(--lp-text-3);
            cursor: pointer;
            display: grid;
            place-items: center;
        }

            .lp-toggle:hover {
                color: var(--lp-text-2);
                background: #f1f5f9;
            }

            .lp-toggle:focus-visible {
                outline: 2px solid var(--lp-primary);
                outline-offset: 1px;
            }

            .lp-toggle svg {
                width: 18px;
                height: 18px;
            }

            .lp-toggle .ico-hide {
                display: none;
            }

            .lp-toggle[aria-pressed="true"] .ico-show {
                display: none;
            }

            .lp-toggle[aria-pressed="true"] .ico-hide {
                display: block;
            }

        .field-validation-error, .lp-error-text {
            display: block;
            margin-top: 6px;
            font-size: 13px;
            color: var(--lp-danger);
        }

        .field-validation-valid {
            display: none;
        }

        .lp-hint {
            display: none;
            align-items: center;
            gap: 6px;
            margin-top: 6px;
            font-size: 13px;
            color: var(--lp-warn);
        }

            .lp-hint.is-visible {
                display: flex;
            }

            .lp-hint svg {
                width: 14px;
                height: 14px;
            }

        /* Row: remember + forgot */
        .lp-row {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 12px;
            margin: 4px 0 24px;
            flex-wrap: wrap;
        }

        .lp-check {
            display: inline-flex;
            align-items: center;
            gap: 10px;
            cursor: pointer;
            user-select: none;
            font-size: 14px;
            color: var(--lp-text-2);
            margin: 0;
            font-weight: 500;
        }

            .lp-check input[type=checkbox] {
                -webkit-appearance: none;
                appearance: none;
                margin: 0;
                width: 18px;
                height: 18px;
                flex: none;
                cursor: pointer;
                border: 1.5px solid var(--lp-border-strong);
                border-radius: 5px;
                background: #fff;
                display: grid;
                place-items: center;
                transition: background .15s, border-color .15s;
            }

                .lp-check input[type=checkbox]::after {
                    content: "";
                    width: 9px;
                    height: 5px;
                    margin-top: -2px;
                    border-left: 2px solid #fff;
                    border-bottom: 2px solid #fff;
                    transform: rotate(-45deg) scale(0);
                    transition: transform .12s ease-out;
                }

                .lp-check input[type=checkbox]:checked {
                    background: var(--lp-primary);
                    border-color: var(--lp-primary);
                }

                    .lp-check input[type=checkbox]:checked::after {
                        transform: rotate(-45deg) scale(1);
                    }

                .lp-check input[type=checkbox]:focus-visible {
                    box-shadow: 0 0 0 4px var(--lp-ring);
                }

        .lp-link {
            border: 0;
            background: none;
            padding: 0;
            cursor: pointer;
            font: inherit;
            font-size: 14px;
            font-weight: 600;
            color: var(--lp-primary-700);
            text-decoration: none;
        }

            .lp-link:hover {
                color: var(--lp-primary-700);
                text-decoration: underline;
            }

            .lp-link:focus-visible {
                outline: 2px solid var(--lp-primary);
                outline-offset: 2px;
                border-radius: 4px;
            }

        /* Button */
        .lp-btn {
            position: relative;
            width: 100%;
            height: 48px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            border: 0;
            border-radius: var(--lp-radius);
            cursor: pointer;
            font: inherit;
            font-size: 15px;
            font-weight: 600;
            color: #fff;
            background: linear-gradient(180deg, var(--lp-primary) 0%, var(--lp-primary-700) 100%);
            box-shadow: 0 1px 2px rgba(15,23,42,.1), 0 8px 20px -6px rgba(var(--lp-primary-rgb),.55);
            transition: transform .08s, box-shadow .15s, filter .15s;
        }

            .lp-btn:hover {
                filter: brightness(1.05);
                box-shadow: 0 1px 2px rgba(15,23,42,.1), 0 12px 24px -6px rgba(var(--lp-primary-rgb),.6);
            }

            .lp-btn:active {
                transform: translateY(1px);
            }

            .lp-btn:focus-visible {
                outline: none;
                box-shadow: 0 0 0 4px var(--lp-ring);
            }

            .lp-btn[disabled] {
                cursor: progress;
                filter: saturate(.8);
            }

            .lp-btn svg {
                width: 18px;
                height: 18px;
            }

        .lp-spinner {
            display: none;
            width: 18px;
            height: 18px;
            border-radius: 50%;
            border: 2px solid rgba(255,255,255,.4);
            border-top-color: #fff;
            animation: lp-spin .7s linear infinite;
        }

        .lp-btn.is-loading .lp-spinner {
            display: inline-block;
        }

        .lp-btn.is-loading .lp-btn-arrow {
            display: none;
        }

        .lp-back {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            margin-top: 20px;
        }

            .lp-back svg {
                width: 16px;
                height: 16px;
            }

        .lp-panel[hidden] {
            display: none !important;
        }

        .lp-panel {
            animation: lp-in .25s ease-out;
        }

        .lp-secure {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 6px;
            margin-top: 28px;
            font-size: 12.5px;
            color: var(--lp-text-3);
        }

            .lp-secure svg {
                width: 14px;
                height: 14px;
            }

        .lp-foot {
            margin-top: 40px;
            text-align: center;
            font-size: 13px;
            color: var(--lp-text-3);
        }

            .lp-foot a {
                color: var(--lp-text-2);
                font-weight: 600;
                text-decoration: none;
            }

                .lp-foot a:hover {
                    color: var(--lp-primary-600);
                }

        @keyframes lp-spin {
            to {
                transform: rotate(360deg);
            }
        }

        @keyframes lp-in {
            from {
                opacity: 0;
                transform: translateY(6px);
            }

            to {
                opacity: 1;
                transform: none;
            }
        }

        /* ============ Responsive ============ */
        @media (max-width: 1199px) {
            .lp-brand {
                padding: 40px;
            }

            .lp-features {
                grid-template-columns: 1fr;
            }
        }

        @media (max-width: 991px) {
            .lp {
                grid-template-columns: 1fr;
            }

            .lp-brand {
                display: none;
            }

            .lp-main {
                justify-content: center;
                padding: 48px 20px 24px;
                position: relative;
                overflow: hidden;
                background-color: rgb(var(--lp-brand-dark-rgb));
            }

                .lp-main > .lp-bg {
                    display: block;
                }

                    .lp-main > .lp-bg .lp-bg-overlay {
                        background: linear-gradient(160deg, rgba(var(--lp-brand-rgb),.78) 0%, rgba(var(--lp-brand-dark-rgb),.88) 100%);
                    }

                .lp-main > .lp-card {
                    position: relative;
                    z-index: 1;
                }

            .lp-mobile-brand {
                display: flex;
            }

            .lp-card {
                background: var(--lp-surface);
                border: 1px solid var(--lp-border);
                border-radius: var(--lp-radius-lg);
                box-shadow: 0 24px 60px -12px rgba(2,20,30,.45);
                padding: 32px 28px;
            }

            .lp-foot {
                margin-top: 24px;
            }
        }

        @media (max-width: 480px) {
            .lp-main {
                padding: 20px 16px;
            }

            .lp-card {
                padding: 24px 18px;
                border-radius: 16px;
            }

            .lp-head h1 {
                font-size: 24px;
            }

            .lp-head p {
                margin-bottom: 22px;
            }

            .lp .lp-input {
                font-size: 16px;
            }
            /* prevents iOS zoom on focus */
        }

        @media (min-height: 900px) and (min-width: 992px) {
            .lp-brand {
                padding: 64px 72px;
            }
        }

        @media (prefers-reduced-motion: reduce) {
            *, *::before, *::after {
                animation: none !important;
                transition: none !important;
            }
        }

/* ============ FoodApp additions ============ */
.lp-logo-img { width: 26px; height: 26px; object-fit: contain; }

/* ---- OTP ---- */
.lp-otp-icon {
    width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center;
    background: #e9f9ef; color: #16a34a; margin-bottom: 18px;
}
.lp-otp-icon svg { width: 30px; height: 30px; }
.lp-otp-boxes { display: flex; gap: 10px; justify-content: space-between; margin: 6px 0 8px; }
.lp .lp-otp-box {
    width: 100%; max-width: 56px; height: 58px; text-align: center; font-size: 24px; font-weight: 700;
    border: 1px solid var(--lp-border-strong); border-radius: var(--lp-radius); background: var(--lp-surface);
    color: var(--lp-text); outline: none; transition: border-color .15s, box-shadow .15s; padding: 0;
}
.lp .lp-otp-box:focus { border-color: var(--lp-primary); box-shadow: 0 0 0 4px var(--lp-ring); }
.lp .lp-otp-box.is-filled { border-color: var(--lp-primary-600); background: var(--lp-primary-50); }
.lp-otp-boxes.is-error .lp-otp-box { border-color: var(--lp-danger); animation: lp-shake .35s; }
.lp-otp-meta { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 10px 0 22px; font-size: 13.5px; color: var(--lp-text-2); flex-wrap: wrap; }
.lp-otp-meta strong { color: var(--lp-text); font-variant-numeric: tabular-nums; }
.lp-link[disabled] { color: var(--lp-text-3); cursor: not-allowed; text-decoration: none; }
@keyframes lp-shake { 0%,100% { transform: translateX(0); } 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
