/* =========================================
   RESET
========================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


/* =========================================
   HTML
========================================= */

html {
    width: 100%;
    min-height: 100%;

    /*
        IMPORTANT:
        Force the entire page outside the
        login card to use a soft dark color.
    */
    background-color: #221e1a !important;

    background-image:
        radial-gradient(
            ellipse 900px 650px at 15% 50%,
            rgba(120, 74, 28, 0.24) 0%,
            rgba(72, 47, 28, 0.14) 35%,
            transparent 70%
        ),
        linear-gradient(
            135deg,
            #221e1a 0%,
            #2a2521 50%,
            #302a25 100%
        ) !important;
}


/* =========================================
   BODY
========================================= */

body {
    width: 100%;
    min-height: 100vh;

    overflow-x: hidden;

    font-family: var(--font-sans);

    color: #ffffff;

    /*
        IMPORTANT:
        This replaces the bright red background.
    */
    background-color: #221e1a !important;

    background-image:
        radial-gradient(
            ellipse 900px 650px at 15% 50%,
            rgba(120, 74, 28, 0.24) 0%,
            rgba(72, 47, 28, 0.14) 35%,
            transparent 70%
        ),
        radial-gradient(
            ellipse 700px 550px at 90% 20%,
            rgba(72, 46, 28, 0.14) 0%,
            transparent 70%
        ),
        linear-gradient(
            135deg,
            #221e1a 0%,
            #2a2521 50%,
            #302a25 100%
        ) !important;
}


/* =========================================
   MAIN LOGIN CARD
========================================= */

.login-page {
    position: relative;

    width: min(980px, calc(100% - 48px));

    min-height: 560px;
    height: auto;

    display: flex;
    align-items: stretch;

    margin: 40px auto;

    overflow: hidden;

    border-radius: 17px;

    /*
        Soft shadow so the card separates
        naturally from the background.
    */
    box-shadow:
        0 25px 70px rgba(0, 0, 0, 0.45),
        0 8px 25px rgba(0, 0, 0, 0.25);

    background:
        linear-gradient(
            135deg,
            #241511 0%,
            #301813 50%,
            #251310 100%
        );
}


/* =========================================
   LEFT SECTION (promotional / gradient)
========================================= */

.left-section {
    position: relative;

    /*
        Narrower so it frames the form
        instead of competing with it.
    */
    width: 34%;
    flex-shrink: 0;

    overflow: hidden;

    padding: 60px 34px;

    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;

    /*
        Toned-down warm gradient: still red / orange,
        but lower saturation and opacity so the login
        form stays the primary focus.
    */
    background:
        radial-gradient(
            ellipse 420px 560px at -8% 62%,
            rgba(216, 138, 36, 0.42) 0%,
            rgba(182, 80, 22, 0.32) 24%,
            rgba(126, 36, 16, 0.30) 48%,
            transparent 74%
        ),
        radial-gradient(
            ellipse 420px 400px at 60% 0%,
            rgba(110, 28, 12, 0.5) 0%,
            rgba(82, 16, 10, 0.36) 42%,
            transparent 80%
        ),
        linear-gradient(
            125deg,
            #2a140d 0%,
            #3f180c 42%,
            #511812 76%,
            #481420 100%
        );
}


/* =========================================
   SOFT YELLOW GLOW
========================================= */

.background-glow {
    position: absolute;

    width: 460px;
    height: 460px;

    left: -260px;
    bottom: 70px;

    background: #ffb000;

    border-radius: 50%;

    filter: blur(150px);

    opacity: 0.16;

    pointer-events: none;
}


/* =========================================
   LEFT TEXT
========================================= */

.left-content {
    position: relative;

    z-index: 2;

    width: 100%;
}

/* The panel's promotional quote -- display typography, like the landing
   hero. The form beside it stays in Inter. */
.left-content h1 {
    font-family: var(--font-display);

    color: #ffffff;

    font-size: clamp(23px, 1.9vw, 31px);

    line-height: 1.22;

    font-weight: 700;

    letter-spacing: -0.4px;

    text-shadow:
        0 2px 12px rgba(0, 0, 0, 0.3);
}


/* Catering food image as a full-bleed base for the panel: anchored to the
   bottom edge, spanning the full width, with its top fading into the warm
   gradient so it reads as one composition with the branding rather than a
   pasted-in photo. Sits below .left-content (z-index 2) so the heading
   stays readable. */
.left-image {
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    z-index: 1;

    width: 100%;
    height: 58%;

    object-fit: cover;
    object-position: center 46%;

    pointer-events: none;

    /* Fade the top of the photo into the warm gradient so it reads as one
       surface with the branding, not a pasted-in image. Applies to every
       auth page that uses .left-image (login, register, forgot-password). */
    -webkit-mask-image:
        linear-gradient(to top, #000 40%, rgba(0, 0, 0, 0.5) 68%, transparent 100%);
    mask-image:
        linear-gradient(to top, #000 40%, rgba(0, 0, 0, 0.5) 68%, transparent 100%);
}

/* The register / forgot-password pages use the plated pizza photo, which
   frames better a little higher so less of the plate rim shows. */
.left-image[src*="FORLOGINIMAGE-PIZZA"] {
    object-position: center 32%;
}

/* Customer login: the grilled chicken teriyaki photo was shot bright and
   cool (white plate, grey cloth), unlike the other photos on dark
   backgrounds. Two layers pull it into the panel's warm, low-key lighting:
     1. the photo itself is dimmed and warmed, so the plate reads as warm
        stoneware instead of a white cut-out;
     2. .left-image-tone multiplies the panel's own reds and ambers over it,
        darkest at the edges, so it falls off into the gradient like the
        rest of the panel is lit from the lower left. */
.left-image--chicken {
    object-position: 36% 40%;
    /* Crop in on the glazed slices so the plate rim and garnish at the
       photo's left edge fall outside the panel. */
    transform: scale(1.3);
    transform-origin: 62% 70%;
    filter: brightness(0.78) contrast(1.12) saturate(1.2) sepia(0.16);
}

.left-image-tone {
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    z-index: 1;

    height: 58%;

    pointer-events: none;

    background:
        radial-gradient(
            ellipse 80% 75% at 55% 75%,
            transparent 30%,
            rgba(58, 22, 12, 0.55) 75%,
            rgba(42, 20, 13, 0.9) 100%
        ),
        linear-gradient(
            to top,
            rgba(150, 70, 30, 0.55) 0%,
            rgba(170, 90, 40, 0.45) 100%
        );
    mix-blend-mode: multiply;

    -webkit-mask-image:
        linear-gradient(to top, #000 40%, rgba(0, 0, 0, 0.5) 68%, transparent 100%);
    mask-image:
        linear-gradient(to top, #000 40%, rgba(0, 0, 0, 0.5) 68%, transparent 100%);
}

/* Admin login: the western roast is already low-key (dark stoneware on a
   dark table), so it needs only a nudge -- the cool grey plate is warmed a
   little, and the tone layer runs at half strength so it vignettes the
   edges without muddying the meat. */
.left-image--roast {
    /* Framed high enough that the plate's light rim stays out of the
       bottom corner. */
    object-position: 58% 50%;
    filter: brightness(0.92) contrast(1.06) saturate(1.05) sepia(0.14);
}

.left-image--roast + .left-image-tone {
    opacity: 0.55;
}

/* Operational login: the glazed pork medallions sit on a near-black
   background already; the pineapple is the brightest thing in the panel,
   so it is held back slightly to read as the panel's gold accent rather
   than a hot spot. */
.left-image--pork-pineapple {
    object-position: 50% 42%;
    filter: brightness(0.88) contrast(1.05) saturate(0.95) sepia(0.12);
}

.left-image--pork-pineapple + .left-image-tone {
    opacity: 0.5;
}


/* =========================================
   LOGIN SECTION (form panel)
========================================= */

.login-section {
    position: relative;

    flex: 1;
    min-width: 0;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    padding: 58px 44px;

    /*
        Dark neutral panel.

        Not pure black and not bright red.
    */
    background:
        radial-gradient(
            ellipse 600px 700px at 0% 45%,
            rgba(120, 62, 30, 0.16) 0%,
            rgba(64, 32, 20, 0.08) 35%,
            transparent 70%
        ),
        linear-gradient(
            135deg,
            #1c1a18 0%,
            #211d1b 50%,
            #262220 100%
        );

    border-left: 1px solid rgba(255, 195, 110, 0.10);
}


/* =========================================
   CLOSE BUTTON
========================================= */

.close-btn {
    position: absolute;

    top: 20px;
    right: 22px;

    width: 36px;
    height: 36px;

    display: flex;
    align-items: center;
    justify-content: center;

    /*
        FORCE NO BORDER
    */
    border: none !important;
    outline: none;

    /* Subtle circle so it reads as a control without shouting. */
    background: rgba(255, 255, 255, 0.05) !important;

    border-radius: 50% !important;

    color: #e6e6e6;

    font-size: 26px;

    font-weight: 300;

    cursor: pointer;

    line-height: 1;

    z-index: 5;

    padding: 0;

    transition:
        color 0.2s ease,
        background 0.2s ease,
        transform 0.2s ease;
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.14) !important;

    color: #ffffff;

    transform: scale(1.06);
}


/* =========================================
   LOGIN CONTAINER
========================================= */

.login-container {
    width: 100%;
    max-width: 400px;
}


/* =========================================
   LOGIN HEADER
========================================= */

.login-container h2 {
    color: #f5f5f5;

    text-align: center;

    font-size: 26px;

    line-height: 1.25;

    font-weight: 700;

    margin-bottom: 30px;
}


/* =========================================
   INPUT GROUP
========================================= */

.input-group {
    position: relative;

    width: 100%;

    margin-bottom: 22px;
}


/* =========================================
   LABEL
========================================= */

.input-group label {
    position: absolute;

    top: -7px;
    left: 10px;

    padding: 0 5px;

    color: #a2a2a2;

    /*
        Must match the login panel.
    */
    background: #211d1b !important;

    font-size: 11px;

    line-height: 14px;

    z-index: 2;

    pointer-events: none;
}


/* =========================================
   INPUT
========================================= */

.input-group input {
    display: block;

    width: 100%;

    height: 50px;

    padding: 7px 14px;

    border: 1px solid #5f5754;

    border-radius: 6px;

    outline: none;

    background: rgba(255, 255, 255, 0.05);

    color: #ffffff;

    font-size: 13px;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}

.input-group input:hover {
    border-color: #7d716c;
}

.input-group input:focus {
    border-color: #b6784f;

    background: rgba(255, 255, 255, 0.08);

    box-shadow:
        0 0 0 2px rgba(200, 120, 66, 0.12);
}


/* =========================================
   LOGIN BUTTON
========================================= */

.login-btn {
    display: block;

    width: 100%;

    height: 50px;

    margin-top: 4px;

    border: none;

    border-radius: 6px;

    /*
        Controlled burgundy.

        Red is only used here as an accent,
        not as the page background.
    */
    background:
        linear-gradient(
            135deg,
            #8f2024 0%,
            #9f2529 100%
        );

    color: #ffffff;

    font-size: 13px;

    font-weight: 600;

    cursor: pointer;

    transition:
        background 0.2s ease,
        transform 0.15s ease,
        box-shadow 0.2s ease;
}

.login-btn:hover {
    background:
        linear-gradient(
            135deg,
            #a52a2e 0%,
            #b33337 100%
        );

    box-shadow:
        0 6px 20px rgba(90, 10, 10, 0.30);
}

.login-btn:active {
    transform: scale(0.99);
}


/* =========================================
   SIGN UP TEXT
========================================= */

.signup-text {
    margin-top: 18px;

    text-align: center;

    color: #948e89;

    font-size: 11px;
}

.signup-text a {
    color: #c6c0bb;

    font-weight: 500;

    text-decoration: underline;

    transition: color 0.2s ease;
}

.signup-text a:hover {
    color: #ffffff;
}


/* =========================================
   DEV QUICK LOGIN (local environment only)
   Rendered behind @if (app()->environment('local'))
   so it never reaches a production build.
========================================= */

.dev-login {
    margin-top: 24px;

    padding-top: 18px;

    border-top: 1px dashed #574c45;

    text-align: center;
}

.dev-login-tag {
    display: inline-block;

    margin-bottom: 10px;

    padding: 3px 10px;

    border: 1px solid rgba(214, 138, 30, 0.4);

    border-radius: 999px;

    color: #d68a1e;

    font-size: 9px;

    font-weight: 700;

    letter-spacing: 1px;

    text-transform: uppercase;
}

.dev-login-btn {
    display: block;

    width: 100%;

    height: 44px;

    border: 1px solid #4a4038;

    border-radius: 6px;

    background: #2a2523;

    color: #cfc7c0;

    font-size: 12px;

    font-weight: 600;

    cursor: pointer;

    transition:
        background 0.2s ease,
        border-color 0.2s ease;
}

.dev-login-btn:hover {
    background: #332d2a;

    border-color: #5c5148;
}

.dev-login-note {
    margin-top: 8px;

    font-size: 9px;

    color: #7d746c;

    line-height: 1.4;
}


/* =========================================
   LARGE SCREENS
========================================= */

@media (min-width: 1500px) {

    .login-page {
        width: 1040px;

        min-height: 600px;
    }

    .login-container h2 {
        font-size: 27px;
    }
}


/* =========================================
   TABLET
========================================= */

@media (max-width: 1000px) {

    .login-page {
        min-height: 520px;
    }

    .left-section {
        width: 38%;

        padding: 54px 26px;
    }

    .login-section {
        padding: 54px 34px;
    }

    .left-content h1 {
        font-size: 24px;
    }
}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 700px) {

    html {
        background-color: #171513 !important;
    }

    body {
        background-color: #221e1a !important;

        background:
            radial-gradient(
                ellipse 500px 500px at 0% 25%,
                rgba(160, 82, 26, 0.18) 0%,
                transparent 65%
            ),
            linear-gradient(
                135deg,
                #221e1a 0%,
                #2a2521 50%,
                #302a25 100%
            ) !important;
    }


    .login-page {
        width: 100%;

        min-height: 100vh;

        height: auto;

        margin: 0;

        border-radius: 0;

        box-shadow: none;
    }


    .left-section {
        display: none;
    }


    .login-section {
        width: 100%;

        min-height: 100vh;

        padding: 64px 22px 40px;

        background:
            radial-gradient(
                ellipse 500px 550px at 0% 35%,
                rgba(220, 100, 20, 0.14) 0%,
                rgba(120, 26, 10, 0.07) 35%,
                transparent 70%
            ),
            linear-gradient(
                135deg,
                #1c1a18 0%,
                #211d1b 50%,
                #262220 100%
            );
    }


    .login-container {
        max-width: 420px;
    }


    .login-container h2 {
        font-size: 24px;

        margin-bottom: 26px;
    }


    .input-group {
        margin-bottom: 20px;
    }


    .close-btn {
        top: 16px;

        right: 16px;
    }
}


/* =========================================
   SMALL MOBILE
========================================= */

@media (max-width: 400px) {

    .login-section {
        padding: 58px 16px 32px;
    }

    .login-container h2 {
        font-size: 22px;
    }

    .close-btn {
        right: 12px;

        top: 12px;
    }
}

/* Customer Log In / Sign Up / Forgot Password: event photos instead of
   food (defense feedback -- the platform books events, not just dishes).
   Same full-bleed, top-faded placement as before; dimmed and warmed a
   little so the white linen and flowers sit in the panel's low-key gold
   light and never compete with the form beside it. */
.left-image--event {
    object-position: 30% 60%;
    filter: brightness(0.8) contrast(1.06) saturate(1.05) sepia(0.12);
}

.left-image--event + .left-image-tone {
    opacity: 0.6;
}

.left-image--event-table {
    object-position: center 62%;
    filter: brightness(0.8) contrast(1.06) saturate(1.0) sepia(0.14);
}

/* Admin, Operational and Staff Log In: event photos instead of food, the same
   way the customer pages were changed (defense feedback). Same full-bleed,
   top-faded placement and dimmed, warmed treatment as .left-image--event, so
   the photo sits in the panel's gold light behind the heading and form. */
.left-image--event-venue {
    object-position: 50% 62%;
    filter: brightness(0.82) contrast(1.06) saturate(1.0) sepia(0.12);
}

.left-image--event-venue + .left-image-tone {
    opacity: 0.55;
}

.left-image--event-aisle {
    object-position: 46% 55%;
    filter: brightness(0.78) contrast(1.06) saturate(1.0) sepia(0.14);
}

/* Operational login: the sweetheart-table arch, framed on the arch and its neon sign. */
.left-image--event-arch {
    object-position: 42% 48%;
    filter: brightness(0.84) contrast(1.06) saturate(1.0) sepia(0.12);
}

.left-image--event-arch + .left-image-tone {
    opacity: 0.55;
}
