/* ======================================================
   BAKERY FAIR EXHIBITOR PORTAL LOGIN

   BACKGROUND IMAGE:
   Place login_background.jpg in the same directory
   as login.php and login.css.

   To use another filename, change only this line:
   --bf-background-image: url("login_background.jpg");
====================================================== */

:root {
    --bf-background-image: url("login_background.jpg");

    --bf-navy-dark: #03123f;
    --bf-navy: #071d61;

    --bf-blue-deep: #123c9c;
    --bf-blue: #1768cf;
    --bf-blue-bright: #2695ed;

    --bf-cyan: #0dd9ed;
    --bf-cyan-light: #7cf4ff;
    --bf-cyan-soft: #eafcff;

    --bf-violet: #7137d7;
    --bf-purple: #9528dc;
    --bf-magenta: #ce1bd2;

    --bf-gold: #ffd52d;
    --bf-gold-dark: #f5a000;
    --bf-orange: #ff7800;

    --bf-white: #ffffff;
    --bf-white-soft: #f8fbff;

    --bf-text: #14213d;
    --bf-muted: #68758e;

    --bf-border: rgba(38, 149, 237, 0.25);
    --bf-shadow: rgba(3, 18, 63, 0.38);
}

* {
    box-sizing: border-box;
}

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

body {
    margin: 0;
    background: var(--bf-navy-dark);
}

/* ======================================================
   FULL-PAGE BACKGROUND IMAGE
====================================================== */

.auth-page {
    position: relative;
    isolation: isolate;
    overflow: hidden;

    min-height: 100vh;
    min-height: 100svh;

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

    padding:
        28px
        18px
        28px
        clamp(24px, 6vw, 110px);

    background-color: var(--bf-navy-dark);

    background-image:
        linear-gradient(
            115deg,
            rgba(3, 18, 63, 0.88) 0%,
            rgba(18, 60, 156, 0.72) 42%,
            rgba(23, 104, 207, 0.48) 68%,
            rgba(113, 55, 215, 0.48) 100%
        ),
        var(--bf-background-image);

    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

/* Color-lighting overlay */

.auth-page::before {
    content: "";
    position: absolute;
    inset: 0;

    z-index: -2;
    pointer-events: none;

    background:
        radial-gradient(
            800px 540px at 8% 8%,
            rgba(13, 217, 237, 0.32),
            transparent 68%
        ),
        radial-gradient(
            900px 600px at 94% 12%,
            rgba(38, 149, 237, 0.24),
            transparent 70%
        ),
        radial-gradient(
            760px 560px at 5% 100%,
            rgba(206, 27, 210, 0.38),
            transparent 68%
        ),
        radial-gradient(
            800px 580px at 90% 95%,
            rgba(113, 55, 215, 0.34),
            transparent 70%
        );
}

/* Subtle brightness veil */

.auth-page::after {
    content: "";
    position: absolute;
    inset: 0;

    z-index: -1;
    pointer-events: none;

    background:
        linear-gradient(
            120deg,
            rgba(3, 18, 63, 0.15) 0%,
            rgba(255, 255, 255, 0.03) 42%,
            rgba(124, 244, 255, 0.08) 55%,
            rgba(113, 55, 215, 0.10) 100%
        );
}

/* ======================================================
   MAIN WRAPPER
====================================================== */

.auth-shell-inner {
    position: relative;
    z-index: 2;

    width: 100%;
    max-width: 1060px;

    margin-left: 0;
    margin-right: auto;
}

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

.glass-card {
    position: relative;
    overflow: hidden;

    border: 1px solid rgba(124, 244, 255, 0.38);
    border-radius: 28px;

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

    box-shadow:
        0 34px 90px rgba(3, 18, 63, 0.54),
        0 0 0 1px rgba(255, 213, 45, 0.10),
        0 0 48px rgba(13, 217, 237, 0.16);

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

/* Multicolor top accent */

.glass-card::before {
    content: "";
    position: absolute;

    top: 0;
    left: 4%;
    right: 4%;

    height: 4px;
    z-index: 5;

    border-radius: 0 0 999px 999px;

    background:
        linear-gradient(
            90deg,
            var(--bf-cyan),
            var(--bf-blue-bright),
            var(--bf-violet),
            var(--bf-magenta),
            var(--bf-gold)
        );

    box-shadow:
        0 0 24px rgba(13, 217, 237, 0.65),
        0 0 26px rgba(255, 213, 45, 0.24);
}

.glass-card::after {
    content: "";
    position: absolute;

    right: -170px;
    bottom: -190px;

    width: 340px;
    height: 340px;

    border-radius: 50%;
    pointer-events: none;

    background:
        radial-gradient(
            circle,
            rgba(206, 27, 210, 0.14),
            transparent 68%
        );
}

.glass-card .row {
    position: relative;
    z-index: 1;

    min-height: 590px;
}

/* ======================================================
   LEFT BRAND PANEL
====================================================== */

.auth-left {
    position: relative;
    overflow: hidden;

    color: var(--bf-white);

    background:
        linear-gradient(
            150deg,
            rgba(3, 18, 63, 0.93) 0%,
            rgba(18, 60, 156, 0.86) 38%,
            rgba(23, 104, 207, 0.75) 68%,
            rgba(113, 55, 215, 0.78) 100%
        );
}

.auth-left::before {
    content: "";
    position: absolute;
    inset: 0;

    pointer-events: none;

    background:
        radial-gradient(
            590px 330px at 15% 0%,
            rgba(124, 244, 255, 0.34),
            transparent 66%
        ),
        radial-gradient(
            540px 340px at 100% 20%,
            rgba(38, 149, 237, 0.34),
            transparent 68%
        ),
        radial-gradient(
            560px 390px at 5% 100%,
            rgba(206, 27, 210, 0.44),
            transparent 68%
        ),
        radial-gradient(
            460px 380px at 88% 95%,
            rgba(113, 55, 215, 0.34),
            transparent 70%
        );
}

.auth-left::after {
    content: "";
    position: absolute;

    left: 0;
    right: 0;
    bottom: 0;

    height: 5px;
    pointer-events: none;

    background:
        linear-gradient(
            90deg,
            var(--bf-magenta),
            var(--bf-violet),
            var(--bf-cyan),
            var(--bf-gold)
        );
}

.auth-left-content {
    position: relative;
    z-index: 2;
}

/* ======================================================
   LOGO

   No circular container.
   Maximum desktop width: 250px.
====================================================== */

.auth-logo-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;

    margin: 0 auto 28px;
}

.auth-logo {
    display: block;

    width: 250px;
    max-width: 100%;
    height: auto;

    object-fit: contain;

    filter:
        drop-shadow(
            0 18px 25px
            rgba(3, 18, 63, 0.42)
        )
        drop-shadow(
            0 0 18px
            rgba(124, 244, 255, 0.20)
        );
}

/* ======================================================
   PORTAL TITLE
====================================================== */

.portal-title {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 10px;
    flex-wrap: wrap;

    text-align: center;
}

.portal-title h1 {
    margin: 0;

    color: var(--bf-white);

    font-weight: 900;
    letter-spacing: -0.025em;

    text-shadow:
        0 7px 24px rgba(3, 18, 63, 0.52),
        0 0 18px rgba(13, 217, 237, 0.17);
}

.beta-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 0.31rem 0.65rem;

    border: 1px solid rgba(255, 255, 255, 0.48);
    border-radius: 999px;

    background:
        linear-gradient(
            135deg,
            rgba(13, 217, 237, 0.88),
            rgba(149, 40, 220, 0.88)
        );

    color: var(--bf-white);

    font-size: 0.68rem;
    font-weight: 900;

    letter-spacing: 0.13em;
    text-transform: uppercase;

    box-shadow:
        0 8px 22px rgba(3, 18, 63, 0.26),
        0 0 18px rgba(13, 217, 237, 0.22);
}

.portal-description {
    max-width: 28rem;

    margin: 15px auto 0;

    color: rgba(255, 255, 255, 0.88);

    text-align: center;
    line-height: 1.65;

    text-shadow:
        0 3px 14px
        rgba(3, 18, 63, 0.34);
}

/* ======================================================
   SECURITY NOTE
====================================================== */

.auth-note-container {
    display: flex;
    justify-content: center;
}

.auth-note {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 9px;

    padding: 9px 15px;

    border: 1px solid rgba(124, 244, 255, 0.28);
    border-radius: 999px;

    background: rgba(3, 18, 63, 0.26);

    color: rgba(255, 255, 255, 0.89);

    font-size: 0.87rem;

    box-shadow:
        inset 0 1px 0
        rgba(255, 255, 255, 0.08);
}

.auth-note i {
    color: var(--bf-gold);
}

/* ======================================================
   RIGHT LOGIN PANEL
====================================================== */

.auth-right {
    position: relative;
    overflow: hidden;

    color: var(--bf-text);

    border-left: 1px solid rgba(38, 149, 237, 0.18);

    background:
        linear-gradient(
            155deg,
            rgba(255, 255, 255, 0.985) 0%,
            rgba(241, 251, 255, 0.97) 48%,
            rgba(248, 243, 255, 0.97) 100%
        );
}

.auth-right::before {
    content: "";
    position: absolute;

    top: -220px;
    right: -150px;

    width: 370px;
    height: 370px;

    border-radius: 50%;
    pointer-events: none;

    background:
        radial-gradient(
            circle,
            rgba(13, 217, 237, 0.18),
            transparent 68%
        );
}

.auth-right::after {
    content: "";
    position: absolute;

    left: -220px;
    bottom: -240px;

    width: 350px;
    height: 350px;

    border-radius: 50%;
    pointer-events: none;

    background:
        radial-gradient(
            circle,
            rgba(149, 40, 220, 0.13),
            transparent 68%
        );
}

.auth-right-content {
    position: relative;
    z-index: 2;

    display: flex;
    justify-content: center;
}

.auth-form-wrap {
    width: 100%;
    max-width: 430px;
}

/* ======================================================
   FORM HEADING
====================================================== */

.form-eyebrow {
    display: inline-flex;
    align-items: center;

    gap: 8px;

    margin-bottom: 10px;

    color: var(--bf-blue);

    font-size: 0.72rem;
    font-weight: 900;

    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.form-eyebrow::before {
    content: "";

    width: 32px;
    height: 3px;

    border-radius: 999px;

    background:
        linear-gradient(
            90deg,
            var(--bf-gold),
            var(--bf-orange)
        );
}

.auth-form-wrap h2 {
    margin-bottom: 6px;

    color: var(--bf-blue-deep);

    font-weight: 900;
    letter-spacing: -0.035em;
}

.auth-subtitle {
    color: var(--bf-muted);
    line-height: 1.55;
}

/* ======================================================
   FLOATING INPUTS
====================================================== */

.modern-input {
    position: relative;
}

.modern-input > i {
    position: absolute;

    left: 17px;
    top: 50%;

    z-index: 2;

    transform: translateY(-50%);

    color: var(--bf-blue);

    font-size: 15px;

    pointer-events: none;

    transition:
        color 0.22s ease,
        transform 0.22s ease;
}

.modern-input input {
    width: 100%;

    padding:
        19px
        17px
        14px
        48px;

    border: 1px solid rgba(38, 149, 237, 0.32);
    border-radius: 16px;

    outline: none;

    background: rgba(255, 255, 255, 0.95);
    color: var(--bf-text);

    font-size: 15px;

    box-shadow:
        0 7px 20px
        rgba(18, 60, 156, 0.06);

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

.modern-input input::placeholder {
    color: transparent;
}

.modern-input input:hover {
    border-color: rgba(23, 104, 207, 0.52);
    background: var(--bf-white);
}

.modern-input input:focus {
    border-color: var(--bf-cyan);
    background: var(--bf-white);

    box-shadow:
        0 0 0 4px rgba(13, 217, 237, 0.14),
        0 14px 32px rgba(18, 60, 156, 0.11);

    transform: translateY(-1px);
}

.modern-input:focus-within > i {
    color: var(--bf-violet);

    transform:
        translateY(-50%)
        scale(1.06);
}

.modern-input label {
    position: absolute;

    left: 48px;
    top: 50%;

    transform: translateY(-50%);

    color: var(--bf-muted);

    font-size: 14px;

    pointer-events: none;

    transition:
        top 0.20s ease,
        transform 0.20s ease,
        color 0.20s ease,
        font-size 0.20s ease,
        letter-spacing 0.20s ease;
}

.modern-input input:focus + label,
.modern-input input:not(:placeholder-shown) + label {
    top: 7px;

    transform: none;

    color: var(--bf-blue-deep);

    font-size: 10.5px;
    font-weight: 800;

    letter-spacing: 0.07em;
    text-transform: uppercase;
}

/* ======================================================
   CHECKBOX AND LINKS
====================================================== */

.form-check-input {
    border-color: rgba(23, 104, 207, 0.50);
    background-color: var(--bf-white);

    cursor: pointer;
}

.form-check-input:checked {
    border-color: var(--bf-blue);
    background-color: var(--bf-blue);

    box-shadow:
        0 0 0 3px
        rgba(13, 217, 237, 0.10);
}

.form-check-input:focus {
    border-color: var(--bf-cyan);

    box-shadow:
        0 0 0 0.20rem
        rgba(13, 217, 237, 0.14);
}

.form-check-label {
    color: var(--bf-muted);
    cursor: pointer;
}

.auth-right a {
    color: var(--bf-blue) !important;

    font-weight: 700;
    text-decoration: none;

    transition: color 0.20s ease;
}

.auth-right a:hover {
    color: var(--bf-purple) !important;
    text-decoration: underline;
}

/* ======================================================
   SIGN-IN BUTTON
====================================================== */

.btn-glass {
    position: relative;
    overflow: hidden;

    min-height: 52px;

    border: 1px solid rgba(255, 255, 255, 0.36);
    border-radius: 16px;

    background:
        linear-gradient(
            115deg,
            var(--bf-blue-deep) 0%,
            var(--bf-blue) 33%,
            var(--bf-cyan) 68%,
            var(--bf-violet) 100%
        );

    background-size: 180% 180%;

    color: var(--bf-white);

    font-weight: 900;
    letter-spacing: 0.01em;

    padding: 0.84rem 1rem;

    box-shadow:
        0 17px 36px rgba(18, 60, 156, 0.25),
        0 8px 22px rgba(13, 217, 237, 0.18);

    transition:
        transform 0.22s ease,
        box-shadow 0.22s ease,
        background-position 0.35s ease;
}

.btn-glass::before {
    content: "";
    position: absolute;

    top: -50%;
    left: -80%;

    width: 55%;
    height: 200%;

    transform: rotate(22deg);

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(255, 255, 255, 0.32),
            transparent
        );

    transition: left 0.50s ease;
}

.btn-glass::after {
    content: "";
    position: absolute;

    left: 14%;
    right: 14%;
    bottom: 0;

    height: 3px;

    border-radius: 999px 999px 0 0;

    background:
        linear-gradient(
            90deg,
            transparent,
            var(--bf-gold),
            transparent
        );
}

.btn-glass:hover {
    color: var(--bf-white);

    background-position: 100% 50%;

    transform: translateY(-2px);

    box-shadow:
        0 22px 44px rgba(18, 60, 156, 0.31),
        0 10px 30px rgba(13, 217, 237, 0.24),
        0 0 20px rgba(255, 213, 45, 0.12);
}

.btn-glass:hover::before {
    left: 130%;
}

.btn-glass:focus {
    color: var(--bf-white);

    box-shadow:
        0 0 0 4px rgba(13, 217, 237, 0.18),
        0 17px 36px rgba(18, 60, 156, 0.25);
}

.btn-glass:active {
    color: var(--bf-white);

    transform: translateY(0);
}

/* ======================================================
   ERROR MESSAGE
====================================================== */

.alert-danger {
    border: 1px solid rgba(206, 27, 210, 0.25);
    border-left: 4px solid var(--bf-magenta);

    border-radius: 14px;

    background:
        linear-gradient(
            135deg,
            rgba(255, 244, 255, 0.98),
            rgba(242, 248, 255, 0.98)
        );

    color: #8b185e;

    box-shadow:
        0 9px 24px
        rgba(113, 55, 215, 0.09);
}

/* ======================================================
   SUPPORT INFORMATION
====================================================== */

.login-support {
    padding-top: 18px;

    border-top: 1px solid rgba(38, 149, 237, 0.14);

    color: var(--bf-muted);

    font-size: 0.875rem;
    line-height: 1.55;
}

.login-support i {
    color: var(--bf-violet);
}

/* ======================================================
   RESPONSIVE DESIGN
====================================================== */

@media (max-width: 1199.98px) {
    .auth-page {
        justify-content: center;

        padding-left: 18px;
        padding-right: 18px;
    }

    .auth-shell-inner {
        max-width: 980px;

        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 991.98px) {
    .auth-page {
        align-items: flex-start;

        padding: 18px 12px;

        background-attachment: scroll;
    }

    .glass-card .row {
        min-height: auto;
    }

    .auth-left {
        min-height: 500px;
    }

    .auth-right {
        border-top: 1px solid rgba(38, 149, 237, 0.18);
        border-left: 0;
    }

    .auth-logo {
        width: 230px;
    }
}

@media (max-width: 575.98px) {
    .auth-page {
        padding: 12px 9px;
    }

    .glass-card {
        border-radius: 20px;
    }

    .auth-left {
        min-height: 440px;
    }

    .auth-logo {
        width: 200px;
    }

    .portal-title h1 {
        font-size: 1.42rem;
    }

    .portal-description {
        font-size: 0.92rem;
    }

    .auth-note {
        font-size: 0.78rem;
    }

    .auth-form-wrap h2 {
        font-size: 1.55rem;
    }

    .login-options {
        align-items: flex-start !important;
        flex-direction: column;
    }
}