: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(430px, 0.78fr);

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

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

.auth-presentation {
    position: relative;
    min-height: 650px;
    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: -120px;
    bottom: -145px;

    width: 380px;
    height: 380px;

    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;
}



/* =========================================================
   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: 28px;

    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 #panelDescription {
    margin-top: 6px;

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

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

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

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

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

.label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.text-button {
    margin-bottom: 8px;

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

    background: transparent;
    cursor: pointer;
}

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

.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);
}

.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);
}

.field-help {
    display: block;
    margin-top: 7px;

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

/* =========================================================
   REMEMBER OPTION
   ========================================================= */

.remember-option {
    width: fit-content;
    margin-bottom: 18px;

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

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

    cursor: pointer;
}

.remember-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;
}

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

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

.remember-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 {
    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);
}

.back-button {
    width: 100%;
    margin-top: 17px;
    padding: 11px;

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

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

    background: transparent;
    cursor: pointer;
}

.back-button:hover {
    color: var(--fc-orange);
}

/* =========================================================
   VERIFICATION
   ========================================================= */

.verification-help {
    margin-top: 17px;
    padding: 14px;

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

    background: var(--fc-orange-soft);
    border: 1px solid var(--fc-orange-border);
    border-radius: 12px;
}

.verification-icon {
    width: 35px;
    height: 35px;
    flex-shrink: 0;

    display: grid;
    place-items: center;

    color: white;
    font-size: 13px;

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

.verification-help strong {
    color: var(--fc-heading);
    font-size: 11px;
}

.verification-help p {
    margin-top: 3px;

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

.resend-btn {
    margin-top: 8px;

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

    background: transparent;
    cursor: pointer;
}

.resend-btn:hover {
    text-decoration: underline;
}

.resend-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* =========================================================
   SEPARATOR
   ========================================================= */

.auth-separator {
    margin: 24px 0 17px;

    display: flex;
    align-items: center;
    gap: 12px;

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

.auth-separator::before,
.auth-separator::after {
    content: "";

    height: 1px;
    flex: 1;

    background: var(--fc-border);
}

.customer-note {
    margin-top: 13px;

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

/* =========================================================
   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: 680px;
    }

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

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

    .auth-form-section {
        max-width: 560px;
        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;
    }
}

/* =========================================================
   CUSTOMER ACCOUNT REACTIVATION
   ========================================================= */

.reactivation-box {
    margin-bottom: 18px;
    padding: 18px;
    border: 1px solid #ffe0c9;
    border-radius: 14px;
    background: #fff7f1;
    text-align: center;
}

.reactivation-icon {
    width: 46px;
    height: 46px;
    margin: 0 auto 12px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    background: #ffffff;
    color: #f78021;
    box-shadow: 0 5px 16px rgba(247, 128, 33, 0.13);
}

.reactivation-box h3 {
    margin-bottom: 5px;
    color: #1c2434;
    font-size: 16px;
}

.reactivation-box p {
    color: #667085;
    font-size: 11px;
    line-height: 1.6;
}

.reactivation-code-area {
    margin-top: 18px;
}

.reactivation-resend {
    width: 100%;
    margin-top: 10px;
    text-align: center;
}

@media (max-width: 520px) {
    .reactivation-box {
        padding: 15px;
    }
}

/* FOODCONNECT LOGIN 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 LOGIN 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;
}
