:root {
    --fc-orange: #f78021;
    --fc-orange-dark: #dc5e08;
    --fc-orange-soft: #fff2e8;
    --fc-orange-border: #ffd3b3;

    --fc-green: #4caf50;

    --fc-heading: #1c2434;
    --fc-text: #475467;
    --fc-muted: #667085;

    --fc-surface: #ffffff;
    --fc-background: #f8f9fb;
    --fc-input: #fafbfc;
    --fc-border: #e4e7ec;

    --fc-success: #15803d;
    --fc-success-bg: #f0fdf4;
    --fc-success-border: #bbf7d0;

    --fc-error: #dc2626;
    --fc-error-bg: #fef2f2;
    --fc-error-border: #fecaca;

    --shadow-large:
        0 28px 70px rgba(28, 36, 52, 0.13);

    --shadow-orange:
        0 13px 28px rgba(247, 128, 33, 0.25);
}

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

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;

    display: flex;
    flex-direction: column;

    color: var(--fc-text);
    font-family: "Poppins", Arial, sans-serif;

    background:
        radial-gradient(
            circle at 8% 12%,
            rgba(247, 128, 33, 0.12),
            transparent 29%
        ),
        linear-gradient(
            135deg,
            #fff7f0 0%,
            #ffffff 48%,
            #f7f8fa 100%
        );

    opacity: 0;
    transition: opacity 0.35s ease;
}

body.loaded {
    opacity: 1;
}

button,
input {
    font: inherit;
}

button {
    border: none;
}

a {
    color: inherit;
    text-decoration: none;
}

.hidden {
    display: none !important;
}

.brand-food {
    color: var(--fc-orange);
}

.brand-connect {
    color: var(--fc-green);
}

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

.auth-header {
    width: min(1180px, calc(100% - 40px));
    min-height: 88px;
    margin: 0 auto;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.auth-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.auth-brand img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.auth-brand strong {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.8px;
}

.home-link {
    display: inline-flex;
    align-items: center;
    gap: 9px;

    color: var(--fc-muted);
    font-size: 13px;
    font-weight: 600;

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

.home-link i {
    color: var(--fc-orange);
}

.home-link:hover {
    color: var(--fc-orange);
    transform: translateX(-3px);
}

/* =========================================================
   PAGE LAYOUT
   ========================================================= */

.auth-page {
    width: min(1180px, calc(100% - 40px));
    flex: 1;
    margin: 20px auto 58px;

    display: grid;
    grid-template-columns:
        minmax(0, 1fr)
        minmax(460px, 0.82fr);

    align-items: center;
    gap: 72px;
}

/* =========================================================
   PRESENTATION
   ========================================================= */

.auth-presentation {
    position: relative;
    min-height: 690px;
    padding: 54px;

    overflow: hidden;

    display: flex;
    align-items: center;

    color: white;

    background:
        radial-gradient(
            circle at 78% 20%,
            rgba(247, 128, 33, 0.30),
            transparent 34%
        ),
        linear-gradient(
            145deg,
            #1c2434 0%,
            #263548 58%,
            #303d4d 100%
        );

    border-radius: 32px;

    box-shadow:
        0 30px 75px rgba(28, 36, 52, 0.18);
}

.auth-presentation::before {
    content: "";

    position: absolute;
    right: -125px;
    bottom: -150px;

    width: 390px;
    height: 390px;

    border: 70px solid rgba(247, 128, 33, 0.09);
    border-radius: 50%;
}

.presentation-content {
    position: relative;
    z-index: 2;

    max-width: 590px;
}

.presentation-badge {
    width: fit-content;
    margin-bottom: 22px;
    padding: 9px 14px;

    display: inline-flex;
    align-items: center;
    gap: 8px;

    color: #ffe5d0;
    font-size: 12px;
    font-weight: 700;

    background: rgba(247, 128, 33, 0.15);
    border: 1px solid rgba(247, 128, 33, 0.32);
    border-radius: 999px;
}

.presentation-badge i {
    color: var(--fc-orange);
}

.presentation-content h1 {
    max-width: 600px;

    font-size: clamp(38px, 5vw, 61px);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -2.7px;
}

.presentation-description {
    max-width: 570px;
    margin-top: 22px;

    color: #cbd2dc;
    font-size: 15px;
    line-height: 1.8;
}

.presentation-features {
    margin-top: 34px;

    display: grid;
    gap: 16px;
}

.presentation-feature {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.feature-icon {
    width: 43px;
    height: 43px;
    flex-shrink: 0;

    display: grid;
    place-items: center;

    color: white;
    font-size: 15px;

    background: var(--fc-orange);
    border-radius: 13px;
}

.presentation-feature h2 {
    color: white;
    font-size: 14px;
}

.presentation-feature p {
    margin-top: 4px;

    color: #aeb8c5;
    font-size: 12px;
    line-height: 1.6;
}

.customer-access-note {
    margin-top: 31px;
    padding: 14px 15px;

    display: flex;
    align-items: flex-start;
    gap: 11px;

    color: #ced5de;
    font-size: 11px;
    line-height: 1.65;

    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 13px;
}

.customer-access-note i {
    margin-top: 3px;

    color: var(--fc-orange);
    flex-shrink: 0;
}

/* =========================================================
   FORM CARD
   ========================================================= */

.auth-form-section {
    width: 100%;
}

.auth-card {
    width: 100%;
    padding: 34px;

    background: var(--fc-surface);
    border: 1px solid var(--fc-border);
    border-radius: 25px;

    box-shadow: var(--shadow-large);
}

.auth-card-header {
    margin-bottom: 27px;

    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.auth-card-icon {
    width: 46px;
    height: 46px;
    flex-shrink: 0;

    display: grid;
    place-items: center;

    color: white;
    font-size: 17px;

    background: var(--fc-orange);
    border-radius: 14px;

    box-shadow:
        0 10px 22px rgba(247, 128, 33, 0.24);
}

.auth-card-kicker {
    color: var(--fc-orange-dark);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.auth-card-header h2 {
    margin-top: 3px;

    color: var(--fc-heading);
    font-size: 27px;
    line-height: 1.2;
    letter-spacing: -0.8px;
}

.auth-card-header > div > p:last-child {
    margin-top: 6px;

    color: var(--fc-muted);
    font-size: 12px;
    line-height: 1.55;
}

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

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: inline-block;
    margin-bottom: 8px;

    color: var(--fc-heading);
    font-size: 12px;
    font-weight: 600;
}

.input-wrapper {
    position: relative;
}

.input-wrapper > i {
    position: absolute;
    top: 50%;
    left: 15px;

    color: var(--fc-orange);
    font-size: 13px;

    transform: translateY(-50%);
    pointer-events: none;
}

.input-wrapper input {
    width: 100%;
    height: 50px;
    padding: 0 47px 0 43px;

    color: var(--fc-heading);
    font-size: 13px;

    background: var(--fc-input);
    border: 1px solid var(--fc-border);
    border-radius: 11px;
    outline: none;

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

.input-wrapper input::placeholder {
    color: #98a2b3;
}

.input-wrapper input:hover {
    border-color: #d0d5dd;
}

.input-wrapper input:focus {
    background: white;
    border-color: var(--fc-orange);

    box-shadow:
        0 0 0 4px rgba(247, 128, 33, 0.11);
}

.password-wrapper input {
    padding-right: 49px;
}

.toggle-password {
    position: absolute;
    top: 50%;
    right: 10px;

    width: 35px;
    height: 35px;

    display: grid;
    place-items: center;

    color: #98a2b3;

    background: transparent;
    border-radius: 8px;
    cursor: pointer;

    transform: translateY(-50%);

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

.toggle-password:hover {
    color: var(--fc-orange);
    background: var(--fc-orange-soft);
}

/* =========================================================
   PASSWORD FEEDBACK
   ========================================================= */

.password-requirements {
    margin-top: 9px;
    padding: 11px 12px;

    display: grid;
    gap: 5px;

    background: #fafafa;
    border: 1px solid var(--fc-border);
    border-radius: 9px;
}

.password-requirements > p {
    margin-bottom: 2px;

    color: var(--fc-heading);
    font-size: 10px;
    font-weight: 600;
}

.password-requirement {
    display: flex;
    align-items: center;
    gap: 7px;

    color: var(--fc-muted);
    font-size: 9px;
}

.password-requirement i {
    color: #c7cdd4;
    font-size: 6px;
}

.password-requirement.valid {
    color: var(--fc-success);
}

.password-requirement.valid i {
    color: var(--fc-success);
}

.password-match-message {
    min-height: 15px;
    margin-top: 7px;

    font-size: 10px;
}

.password-match-message.valid {
    color: var(--fc-success);
}

.password-match-message.invalid {
    color: var(--fc-error);
}

/* =========================================================
   AGREEMENT
   ========================================================= */

.agreement-option {
    margin: 4px 0 18px;

    display: flex;
    align-items: flex-start;
    gap: 9px;

    color: var(--fc-muted);
    font-size: 10px;
    line-height: 1.6;

    cursor: pointer;
}

.agreement-option input {
    position: absolute;

    width: 1px;
    height: 1px;

    opacity: 0;
    pointer-events: none;
}

.custom-checkbox {
    width: 19px;
    height: 19px;
    flex-shrink: 0;

    display: grid;
    place-items: center;

    color: transparent;
    font-size: 10px;

    background: white;
    border: 1px solid #d0d5dd;
    border-radius: 5px;

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

.agreement-option:hover .custom-checkbox {
    border-color: var(--fc-orange);
}

.agreement-option input:focus-visible + .custom-checkbox {
    box-shadow:
        0 0 0 4px rgba(247, 128, 33, 0.12);
}

.agreement-option input:checked + .custom-checkbox {
    color: white;
    background: var(--fc-orange);
    border-color: var(--fc-orange);
}

/* =========================================================
   MESSAGES
   ========================================================= */

.form-message {
    display: none;

    margin-bottom: 17px;
    padding: 12px 13px;

    font-size: 11px;
    line-height: 1.55;

    border-radius: 10px;
}

.form-message.error {
    display: block;

    color: var(--fc-error);
    background: var(--fc-error-bg);
    border: 1px solid var(--fc-error-border);
}

.form-message.success {
    display: block;

    color: var(--fc-success);
    background: var(--fc-success-bg);
    border: 1px solid var(--fc-success-border);
}

/* =========================================================
   BUTTONS
   ========================================================= */

.primary-button,
.secondary-button {
    width: 100%;
    min-height: 51px;
    padding: 0 19px;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;

    font-size: 13px;
    font-weight: 700;

    border-radius: 11px;

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

.primary-button {
    color: white;

    background: var(--fc-orange);
    cursor: pointer;

    box-shadow: var(--shadow-orange);
}

.primary-button:hover {
    background: var(--fc-orange-dark);
    transform: translateY(-2px);

    box-shadow:
        0 16px 31px rgba(247, 128, 33, 0.30);
}

.primary-button:disabled {
    opacity: 0.68;
    cursor: not-allowed;
    transform: none;
}

.secondary-button {
    margin-top: 20px;

    color: var(--fc-orange-dark);

    background: white;
    border: 1px solid var(--fc-orange-border);
}

.secondary-button:hover {
    color: white;
    background: var(--fc-orange);
    border-color: var(--fc-orange);

    transform: translateY(-1px);
}

/* =========================================================
   SUCCESS VIEW
   ========================================================= */

.email-inbox-button {
    margin-top: 20px;
}

.signup-success {
    padding: 20px 5px 4px;

    text-align: center;
}

.success-icon {
    width: 67px;
    height: 67px;
    margin: 0 auto 17px;

    display: grid;
    place-items: center;

    color: white;
    font-size: 25px;

    background: var(--fc-orange);
    border-radius: 20px;

    box-shadow: var(--shadow-orange);
}

.signup-success h3 {
    color: var(--fc-heading);
    font-size: 24px;
    letter-spacing: -0.6px;
}

.signup-success p {
    max-width: 380px;
    margin: 11px auto 0;

    color: var(--fc-muted);
    font-size: 11px;
    line-height: 1.7;
}

.text-action {
    margin-top: 15px;

    color: var(--fc-orange);
    font-size: 10px;
    font-weight: 700;

    background: transparent;
    cursor: pointer;
}

.text-action:hover {
    color: var(--fc-orange-dark);
    text-decoration: underline;
}

/* =========================================================
   LOGIN PROMPT
   ========================================================= */

.login-prompt {
    margin-top: 23px;
    padding-top: 18px;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;

    color: var(--fc-muted);
    font-size: 11px;

    border-top: 1px solid var(--fc-border);
}

.login-prompt a {
    color: var(--fc-orange);
    font-weight: 700;
}

.login-prompt a:hover {
    color: var(--fc-orange-dark);
    text-decoration: underline;
}

/* =========================================================
   FOOTER
   ========================================================= */

.auth-footer {
    padding: 0 20px 27px;

    color: var(--fc-muted);
    font-size: 11px;
    text-align: center;
}

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

@media (max-width: 1000px) {
    .auth-page {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .auth-presentation {
        min-height: auto;
        padding: 46px;
    }

    .presentation-content {
        max-width: 700px;
    }

    .presentation-features {
        grid-template-columns: repeat(3, 1fr);
    }

    .presentation-feature {
        flex-direction: column;
    }

    .auth-form-section {
        max-width: 590px;
        margin: 0 auto;
    }
}

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

@media (max-width: 700px) {
    .auth-header {
        width: min(100% - 28px, 1180px);
        min-height: 78px;
    }

    .auth-brand img {
        width: 42px;
        height: 42px;
    }

    .auth-brand strong {
        font-size: 21px;
    }

    .home-link {
        width: 42px;
        height: 42px;

        justify-content: center;

        background: white;
        border: 1px solid var(--fc-border);
        border-radius: 11px;
    }

    .home-link span {
        display: none;
    }

    .auth-page {
        width: min(100% - 28px, 1180px);
        margin-top: 8px;
    }

    .auth-presentation {
        padding: 31px 24px;
        border-radius: 23px;
    }

    .presentation-content h1 {
        font-size: 34px;
        letter-spacing: -1.7px;
    }

    .presentation-description {
        font-size: 13px;
    }

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

    .presentation-feature {
        flex-direction: row;
    }

    .auth-card {
        padding: 25px 20px;
        border-radius: 20px;
    }

    .auth-card-header h2 {
        font-size: 24px;
    }
}

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

@media (max-width: 420px) {
    .auth-presentation {
        display: none;
    }

    .auth-page {
        display: block;
        margin-top: 18px;
    }

    .auth-card {
        padding: 24px 18px;
    }

    .auth-card-icon {
        width: 42px;
        height: 42px;
    }
}

/* FOODCONNECT SIGNUP THEME START */
html[data-theme="dark"] body[data-fc-page="customer-auth"] {
  --fc-heading: #f5f7fa;
  --fc-text: #d0d5dd;
  --fc-muted: #98a2b3;
  --fc-surface: #181b20;
  --fc-background: #101216;
  --fc-input: #20242a;
  --fc-border: #30343b;
}

html[data-theme="dark"] body[data-fc-page="customer-auth"] {
  background:
    radial-gradient(circle at 8% 12%, rgba(247,128,33,.11), transparent 29%),
    linear-gradient(135deg,#0f1115 0%,#12151a 48%,#101216 100%);
  color: var(--fc-text);
}

html[data-theme="dark"] body[data-fc-page="customer-auth"] :is(
  .auth-card,
  .login-card,
  .signup-card,
  .form-card,
  .modal-content
) {
  background: var(--fc-surface);
  color: var(--fc-heading);
  border-color: var(--fc-border);
}

html[data-theme="dark"] body[data-fc-page="customer-auth"] :is(
  input,
  select,
  textarea
) {
  background: var(--fc-input);
  color: var(--fc-heading);
  border-color: var(--fc-border);
}
/* FOODCONNECT SIGNUP THEME END */

/* FoodConnect official brand logo standard */
img[src*="logofoodconnect-Photoroom.png"] {
    width: 50px;
    height: 50px;
    object-fit: contain;
    display: block;
}

/* Keep the logo balanced in smaller navigation areas */
.sidebar img[src*="logofoodconnect-Photoroom.png"],
.admin-sidebar img[src*="logofoodconnect-Photoroom.png"] {
    width: 42px;
    height: 42px;
}

.footer img[src*="logofoodconnect-Photoroom.png"] {
    width: 45px;
    height: 45px;
}


/* =========================================================
   CUSTOMER USERNAME
   ========================================================= */

.username-help {
    margin-top: 7px;
    color: var(--fc-muted);
    font-size: 10px;
    line-height: 1.5;
}


/* FOODCONNECT SIGNUP DARK MODE FIX */
html[data-theme="dark"]
body[data-fc-page="customer-auth"]
.password-requirements {
    background: #20242a;
    border-color: #343941;
}

html[data-theme="dark"]
body[data-fc-page="customer-auth"]
.password-requirements > p {
    color: #f5f7fa;
}

html[data-theme="dark"]
body[data-fc-page="customer-auth"]
.password-requirement {
    color: #a2aab7;
}

html[data-theme="dark"]
body[data-fc-page="customer-auth"]
.password-requirement i {
    color: #697386;
}

html[data-theme="dark"]
body[data-fc-page="customer-auth"]
.input-wrapper input:focus {
    background: #20242a;
}

html[data-theme="dark"]
body[data-fc-page="customer-auth"]
.custom-checkbox {
    background: #20242a;
    border-color: #4a515c;
}
