/* Fulfilix ERP Restaurant POS - Simple Login UI */
/* Path: assets/css/auth-login.css */

:root {
    --fx-bg: #f8f4ff;
    --fx-bg-2: #ffffff;
    --fx-text: #130f24;
    --fx-muted: #665d78;
    --fx-card: rgba(255, 255, 255, .82);
    --fx-card-strong: rgba(255, 255, 255, .94);
    --fx-border: rgba(123, 62, 176, .18);
    --fx-border-strong: rgba(171, 76, 255, .30);
    --fx-input: rgba(255, 255, 255, .78);
    --fx-primary: #8a35ff;
    --fx-purple: #a336ff;
    --fx-pink: #e941d0;
    --fx-icon-bg: rgba(154, 56, 255, .10);
    --fx-shadow: 0 34px 90px rgba(92, 48, 140, .14);
}

html[data-theme="dark"] {
    --fx-bg: #050417;
    --fx-bg-2: #090622;
    --fx-text: #ffffff;
    --fx-muted: #c9bfd7;
    --fx-card: rgba(17, 14, 48, .58);
    --fx-card-strong: rgba(17, 14, 48, .82);
    --fx-border: rgba(200, 90, 255, .20);
    --fx-border-strong: rgba(220, 90, 255, .36);
    --fx-input: rgba(7, 7, 28, .58);
    --fx-icon-bg: rgba(154, 56, 255, .14);
    --fx-shadow: 0 34px 100px rgba(0, 0, 0, .45);
}

* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
}

body {
    margin: 0;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    color: var(--fx-text);
    background:
        radial-gradient(circle at 78% 14%, rgba(185, 68, 255, .20), transparent 28%),
        radial-gradient(circle at 2% 100%, rgba(93, 71, 255, .14), transparent 37%),
        linear-gradient(135deg, var(--fx-bg), var(--fx-bg-2));
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select {
    font-family: inherit;
}

svg {
    width: 1em;
    height: 1em;
    fill: currentColor;
}

.fx-page {
    min-height: 100vh;
    position: relative;
    isolation: isolate;
    overflow: hidden;
}

.fx-glow {
    position: fixed;
    z-index: -1;
    pointer-events: none;
    border-radius: 50%;
}

.fx-glow-one {
    width: 560px;
    height: 560px;
    left: -220px;
    bottom: -220px;
    border: 1px solid rgba(177, 64, 255, .12);
    box-shadow:
        0 0 0 70px rgba(177, 64, 255, .035),
        0 0 0 135px rgba(177, 64, 255, .020);
}

.fx-glow-two {
    width: 440px;
    height: 440px;
    right: -130px;
    top: 80px;
    background: radial-gradient(circle, rgba(178, 64, 255, .16), transparent 62%);
}

.fx-header {
    height: 94px;
    padding: 30px 60px 0;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    position: relative;
    z-index: 10;
}

.fx-brand {
    display: inline-flex;
    align-items: center;
    gap: 16px;
}

.fx-brand-mark {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 34px;
    font-weight: 950;
    background: linear-gradient(135deg, var(--fx-purple), var(--fx-pink));
    box-shadow: 0 16px 40px rgba(180, 52, 255, .30);
}

.fx-brand-text {
    display: grid;
    line-height: 1;
}

.fx-brand-text strong {
    font-size: 30px;
    letter-spacing: .5px;
    font-weight: 950;
}

.fx-brand-text em {
    margin-top: 8px;
    font-size: 24px;
    color: var(--fx-purple);
    font-style: normal;
    font-weight: 950;
    letter-spacing: 1px;
}

.fx-top-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    color: var(--fx-muted);
}

.fx-help {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 18px;
    font-weight: 600;
}

.fx-help span {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    border: 1px solid var(--fx-border);
    font-weight: 900;
}

.fx-divider {
    width: 1px;
    height: 30px;
    background: var(--fx-border);
}

.fx-theme-area {
    display: flex;
    align-items: center;
    gap: 12px;
}

.fx-theme-icon {
    font-size: 24px;
}

.fx-theme-toggle {
    width: 58px;
    height: 30px;
    padding: 3px;
    border: 1px solid var(--fx-border-strong);
    border-radius: 999px;
    cursor: pointer;
    display: flex;
    justify-content: flex-end;
    background: linear-gradient(100deg, var(--fx-primary), var(--fx-pink));
    box-shadow: 0 0 22px rgba(188, 63, 255, .34);
}

.fx-theme-toggle span {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: block;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .28);
}

html[data-theme="light"] .fx-theme-toggle {
    justify-content: flex-start;
}

.fx-layout {
    min-height: calc(100vh - 94px);
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.fx-left {
    position: relative;
    padding: 78px 60px 64px;
    border-right: 1px solid var(--fx-border);
}

.fx-left-inner {
    max-width: 610px;
}

.fx-hero h1 {
    margin: 0;
    font-size: clamp(48px, 5vw, 68px);
    line-height: 1.05;
    letter-spacing: -2.6px;
    font-weight: 950;
}

.fx-hero h1 span {
    background: linear-gradient(92deg, #6f45ff 0%, #a235ff 48%, #e941d0 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.fx-hero i {
    display: block;
    width: 64px;
    height: 4px;
    margin: 22px 0 27px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--fx-primary), var(--fx-pink));
    box-shadow: 0 0 25px rgba(211, 61, 255, .50);
}

.fx-hero p {
    margin: 0;
    max-width: 565px;
    color: var(--fx-muted);
    font-size: 20px;
    line-height: 1.55;
}

.fx-feature-list {
    margin-top: 45px;
    max-width: 560px;
}

.fx-feature-row {
    display: grid;
    grid-template-columns: 78px 1fr;
    gap: 22px;
    align-items: center;
    min-height: 104px;
    border-bottom: 1px solid var(--fx-border);
}

.fx-feature-row:last-child {
    border-bottom: 0;
}

.fx-feature-icon {
    width: 66px;
    height: 66px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    color: #d762ff;
    background: var(--fx-icon-bg);
    border: 1px solid var(--fx-border);
    font-size: 36px;
    box-shadow: inset 0 0 22px rgba(199, 66, 255, .10);
}

.fx-feature-row h3 {
    margin: 0 0 8px;
    font-size: 22px;
    line-height: 1.1;
    font-weight: 850;
}

.fx-feature-row p {
    margin: 0;
    color: var(--fx-muted);
    font-size: 16px;
}

.fx-right {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 34px 64px 66px;
}

.fx-login-card {
    width: 100%;
    max-width: 650px;
    min-height: 760px;
    border: 1px solid var(--fx-border-strong);
    border-radius: 22px;
    background: var(--fx-card-strong);
    box-shadow: var(--fx-shadow);
    backdrop-filter: blur(18px);
    padding: 44px 54px 36px;
}

.fx-shop-icon {
    width: 108px;
    height: 108px;
    margin: 0 auto 22px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: #df67ff;
    font-size: 58px;
    border: 1px solid var(--fx-border-strong);
    background: radial-gradient(circle, rgba(167, 56, 255, .18), transparent 67%);
    box-shadow: 0 0 36px rgba(181, 62, 255, .22);
}

.fx-login-title {
    text-align: center;
    margin-bottom: 34px;
}

.fx-login-title h2 {
    margin: 0;
    font-size: 36px;
    line-height: 1.1;
    font-weight: 950;
    letter-spacing: -1px;
}

.fx-login-title p {
    margin: 12px 0 0;
    color: var(--fx-muted);
    font-size: 18px;
}

.alert {
    border-radius: 14px;
    padding: 12px 14px;
    margin: 0 0 16px;
    font-weight: 700;
}

.alert.error {
    background: rgba(239, 68, 68, .13);
    border: 1px solid rgba(239, 68, 68, .24);
    color: #fecaca;
}

.alert.success {
    background: rgba(34, 197, 94, .13);
    border: 1px solid rgba(34, 197, 94, .22);
    color: #bbf7d0;
}

html[data-theme="light"] .alert.error {
    color: #991b1b;
    background: #fee2e2;
}

html[data-theme="light"] .alert.success {
    color: #166534;
    background: #dcfce7;
}

.fx-field {
    margin-bottom: 24px;
}

.fx-field label {
    display: block;
    margin: 0 0 11px;
    font-size: 16px;
    font-weight: 800;
}

.fx-input {
    height: 58px;
    display: flex;
    align-items: center;
    gap: 14px;
    border-radius: 10px;
    padding: 0 17px;
    border: 1px solid var(--fx-border);
    background: var(--fx-input);
    transition: .18s ease;
}

.fx-input:focus-within {
    border-color: rgba(216, 73, 255, .70);
    box-shadow: 0 0 0 4px rgba(171, 63, 255, .14);
}

.fx-input > svg {
    flex: 0 0 24px;
    font-size: 24px;
    color: #c78cff;
}

.fx-input input,
.fx-input select {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--fx-text);
    font-size: 17px;
}

.fx-input input::placeholder {
    color: color-mix(in srgb, var(--fx-muted) 76%, transparent);
}

.fx-input select {
    appearance: none;
    cursor: pointer;
}

.fx-select {
    position: relative;
}

.fx-select:after {
    content: "⌄";
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-54%);
    font-size: 27px;
    color: var(--fx-muted);
    pointer-events: none;
}

.fx-eye {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    flex: 0 0 32px;
    border: 0;
    background: transparent;
    color: var(--fx-muted);
    cursor: pointer;
    padding: 0;
}

.fx-eye svg {
    font-size: 23px;
}

.fx-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin: 3px 0 30px;
}

.fx-check {
    display: flex;
    align-items: center;
    gap: 11px;
    font-size: 16px;
    font-weight: 650;
}

.fx-check input {
    width: 20px;
    height: 20px;
    accent-color: var(--fx-purple);
}

.fx-forgot {
    color: #e060ff;
    font-size: 16px;
    font-weight: 700;
}

.fx-primary-btn,
.fx-demo-btn {
    width: 100%;
    height: 66px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    font-size: 20px;
    font-weight: 850;
}

.fx-primary-btn {
    border: 0;
    color: #fff;
    cursor: pointer;
    background: linear-gradient(100deg, #6d3dff 0%, #9a30ff 52%, #e43bd2 100%);
    box-shadow: 0 18px 45px rgba(169, 45, 255, .30);
}

.fx-demo-btn {
    margin-top: 18px;
    border: 1px solid rgba(211, 72, 255, .72);
    color: #d967ff;
    background: rgba(16, 10, 40, .14);
}

html[data-theme="light"] .fx-demo-btn {
    background: rgba(255, 255, 255, .44);
    color: #9c2fea;
}

.fx-demo-btn svg {
    font-size: 25px;
}

.fx-secure {
    margin-top: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: var(--fx-muted);
    font-size: 16px;
}

.fx-secure svg {
    font-size: 22px;
    color: #bda3ff;
}

@media (max-width: 1120px) {
    .fx-layout {
        grid-template-columns: 1fr;
    }

    .fx-left {
        border-right: 0;
        padding-bottom: 20px;
    }

    .fx-left-inner {
        max-width: 100%;
    }

    .fx-feature-list {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        max-width: 100%;
        gap: 14px;
    }

    .fx-feature-row {
        border: 1px solid var(--fx-border);
        border-radius: 14px;
        padding: 18px;
        min-height: auto;
    }

    .fx-right {
        padding-top: 20px;
    }
}

@media (max-width: 720px) {
    .fx-header {
        height: 78px;
        padding: 18px 18px 0;
    }

    .fx-brand-mark {
        width: 46px;
        height: 46px;
        font-size: 28px;
    }

    .fx-brand-text strong {
        font-size: 22px;
    }

    .fx-brand-text em {
        font-size: 18px;
    }

    .fx-help,
    .fx-divider {
        display: none;
    }

    .fx-left {
        padding: 42px 22px 10px;
    }

    .fx-hero h1 {
        font-size: 42px;
    }

    .fx-feature-list {
        grid-template-columns: 1fr;
    }

    .fx-right {
        padding: 22px 18px 42px;
    }

    .fx-login-card {
        min-height: auto;
        padding: 30px 22px;
    }

    .fx-shop-icon {
        width: 90px;
        height: 90px;
        font-size: 46px;
    }

    .fx-login-title h2 {
        font-size: 30px;
    }

    .fx-row {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }
}
.fx-brand-image {
    display: inline-flex;
    align-items: center;
    width: 240px;
    height: 72px;
}

.fx-brand-logo {
    width: 100%;
    max-height: 72px;
    object-fit: contain;
    object-position: left center;
    display: block;
    filter: drop-shadow(0 0 18px rgba(196, 58, 255, .35));
}

html[data-theme="light"] .fx-brand-logo {
    filter: drop-shadow(0 12px 24px rgba(139, 52, 255, .18));
}