/* =================================
   URBANBITE - MODERN WEBSITE DESIGN
================================= */

:root {
    --primary: #ff6b35;
    --primary-dark: #e95524;
    --dark: #111827;
    --text: #273244;
    --muted: #64748b;
    --light: #f7f8fc;
    --white: #ffffff;
    --border: #e8edf4;
    --shadow: 0 12px 30px rgba(17, 24, 39, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--light);
    color: var(--text);
    line-height: 1.6;
}

button,
input {
    font: inherit;
}

button {
    cursor: pointer;
}

/* =================================
   HEADER
================================= */

header {
    background: rgba(17, 24, 39, 0.97);
    color: var(--white);
    padding: 15px 7%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 5px 20px rgba(0,0,0,0.12);
    backdrop-filter: blur(12px);
}

.logo {
    color: var(--white);
    font-size: 27px;
    font-weight: 800;
    letter-spacing: -0.8px;
    white-space: nowrap;
}

nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 26px;
}

nav a {
    color: #f8fafc;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: color .2s ease;
}

nav a:hover,
nav a:focus-visible {
    color: #ffb08f;
}

/* =================================
   CART BUTTON
================================= */

.cart-button {
    background: var(--primary);
    color: var(--white);
    border: 0;
    padding: 12px 19px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    box-shadow: 0 5px 14px rgba(255,107,53,.25);
    transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}

.cart-button:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(255,107,53,.3);
}

/* =================================
   HERO SECTION
================================= */

.hero {
    min-height: 490px;
    display: flex;
    align-items: center;
    padding: 70px 9%;
    color: var(--white);

    background:
        linear-gradient(90deg, rgba(10,15,25,.88), rgba(10,15,25,.25)),
        url('https://images.unsplash.com/photo-1504674900247-0877df9cc836?w=1600')
        center/cover no-repeat;
}

.hero-content {
    max-width: 620px;
}

.hero-content h1 {
    font-size: clamp(38px, 5vw, 58px);
    line-height: 1.12;
    letter-spacing: -1.5px;
    margin-bottom: 18px;
    font-weight: 800;
}

.hero-content p {
    max-width: 560px;
    color: #f1f5f9;
    font-size: 17px;
    line-height: 1.8;
}

.hero-button {
    display: inline-block;
    margin-top: 25px;
    padding: 14px 25px;
    border-radius: 10px;
    background: var(--primary);
    color: var(--white);
    text-decoration: none;
    font-weight: 700;
    transition: transform .2s ease, background .2s ease;
}

.hero-button:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

/* =================================
   MENU SECTION
================================= */

.menu-section {
    padding: 72px 7%;
    text-align: center;
}

.section-heading {
    color: var(--dark);
    font-size: clamp(28px, 3vw, 38px);
    line-height: 1.25;
    font-weight: 800;
    letter-spacing: -.7px;
    margin-bottom: 10px;
}

.section-description {
    color: var(--muted);
    font-size: 15px;
    margin-bottom: 30px;
}

/* =================================
   CATEGORY BUTTONS
================================= */

.category-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 11px;
    margin-bottom: 36px;
}

.category-buttons button {
    background: var(--white);
    color: var(--dark);
    border: 1px solid var(--border);
    padding: 10px 21px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    transition: all .2s ease;
}

.category-buttons button:hover,
.category-buttons button:focus-visible {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
    transform: translateY(-1px);
}

/* =================================
   FOOD CARDS
================================= */

.food-container {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 26px;
    text-align: left;
}

.food-card {
    min-width: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: var(--white);
    border: 1px solid rgba(226,232,240,.8);
    border-radius: 18px;
    box-shadow: var(--shadow);
    transition: transform .25s ease, box-shadow .25s ease;
}

.food-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 38px rgba(17,24,39,.13);
}

.food-card img {
    display: block;
    width: 100%;
    height: 225px;
    object-fit: cover;
    background: #e2e8f0;
}

.food-info {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 19px;
}

.food-info h3 {
    color: var(--dark);
    font-size: 19px;
    font-weight: 700;
    margin-bottom: 7px;
}

.food-info p {
    min-height: 50px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.65;
    margin-bottom: 18px;
}

.food-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: auto;
}

.food-bottom span {
    color: var(--primary-dark);
    font-size: 20px;
    font-weight: 800;
    white-space: nowrap;
}

/* =================================
   ADD TO CART BUTTON
================================= */

.food-bottom button {
    border: 0;
    border-radius: 9px;
    padding: 11px 15px;
    background: var(--primary);
    color: var(--white);
    font-size: 13px;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(255,107,53,.2);
    transition: background .2s ease, transform .2s ease;
}

.food-bottom button:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

/* =================================
   ABOUT SECTION
================================= */

.about-section {
    background: var(--white);
    text-align: center;
    padding: 72px 10%;
}

.about-section h2,
.my-orders-section h2 {
    color: var(--dark);
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 18px;
}

.about-section p {
    max-width: 800px;
    margin: 14px auto;
    color: var(--muted);
    line-height: 1.85;
    font-size: 15px;
}

/* =================================
   MY ORDERS
================================= */

.my-orders-section {
    padding: 65px 8%;
}

.my-orders-section h2 {
    text-align: center;
    margin-bottom: 28px;
}

.order-card {
    max-width: 1000px;
    margin: 15px auto;
    padding: 22px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: 0 5px 18px rgba(17,24,39,.05);
}

/* =================================
   CART MODAL
================================= */

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    inset: 0;
    width: 100%;
    height: 100%;
    padding: 20px;
    overflow-y: auto;
    background: rgba(15,23,42,.68);
    justify-content: center;
    align-items: center;
}

.cart-box {
    position: relative;
    width: 100%;
    max-width: 550px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 30px;
    background: var(--white);
    border-radius: 18px;
    box-shadow: 0 25px 70px rgba(0,0,0,.25);
}

.cart-box h2 {
    color: var(--dark);
    font-size: 23px;
    margin-bottom: 18px;
    padding-right: 28px;
}

.cart-box h3 {
    color: var(--dark);
    margin-top: 16px;
}

.close {
    position: absolute;
    top: 12px;
    right: 20px;
    color: var(--muted);
    font-size: 30px;
    cursor: pointer;
}

.close:hover {
    color: var(--primary);
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}

.cart-item button {
    border: 0;
    border-radius: 6px;
    padding: 6px 10px;
    background: #ef4444;
    color: white;
}

/* =================================
   DELIVERY DETAILS
================================= */

.delivery-details {
    margin-top: 22px;
}

.delivery-details input {
    display: block;
    width: 100%;
    padding: 12px 13px;
    margin: 9px 0;
    border: 1px solid #dbe2ea;
    border-radius: 9px;
    outline: none;
    background: #fbfcfe;
    color: var(--text);
    font-size: 14px;
}

.delivery-details input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(255,107,53,.12);
}

.delivery-details p {
    color: var(--muted);
    font-size: 13px;
    margin-top: 7px;
}

/* =================================
   LOCATION AND CHECKOUT BUTTONS
================================= */

.location-button,
.checkout-button {
    width: 100%;
    margin-top: 12px;
    padding: 14px;
    border: 0;
    border-radius: 9px;
    color: white;
    font-weight: 700;
    transition: filter .2s ease, transform .2s ease;
}

.location-button {
    background: #2563eb;
}

.checkout-button {
    background: var(--primary);
    font-size: 15px;
}

.location-button:hover,
.checkout-button:hover {
    filter: brightness(.93);
    transform: translateY(-1px);
}

#location-status {
    font-size: 13px;
    color: var(--muted);
}

/* =================================
   FOOTER
================================= */

footer {
    background: var(--dark);
    color: white;
    padding: 35px 15px;
    text-align: center;
}

footer h3 {
    font-size: 23px;
    margin-bottom: 9px;
}

footer p {
    color: #cbd5e1;
    line-height: 1.8;
    font-size: 13px;
}

/* ==========================================
   URBANBITE - MODERN LOGIN PAGE
========================================== */

.login-page {
    min-height: 100vh;
    padding: 35px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #fff4ed;
    font-family: 'Poppins', Arial, sans-serif;
}

.login-wrapper {
    width: 100%;
    max-width: 1150px;
    min-height: 650px;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    overflow: hidden;
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(17, 24, 39, 0.13);
}

/* LEFT FOOD IMAGE */

.login-image-section {
    min-height: 650px;
    position: relative;
    display: flex;
    align-items: flex-end;
    padding: 55px;

    background:
        linear-gradient(
            0deg,
            rgba(12, 15, 22, 0.9),
            rgba(12, 15, 22, 0.08)
        ),
        url('https://images.unsplash.com/photo-1504674900247-0877df9cc836?w=1200')
        center/cover no-repeat;
}

.login-image-overlay {
    color: #ffffff;
    max-width: 480px;
}

.login-image-overlay h1 {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 35px;
}

.login-image-overlay h2 {
    font-size: clamp(32px, 4vw, 48px);
    line-height: 1.2;
    margin-bottom: 18px;
    font-weight: 800;
}

.login-image-overlay p {
    color: #f1f5f9;
    font-size: 16px;
    line-height: 1.8;
}

/* RIGHT LOGIN FORM */

.login-form-section {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 45px;
    background: #ffffff;
}

.login-container {
    width: 100%;
    max-width: 390px;
}

.login-container h1 {
    color: #111827;
    font-size: 30px;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 12px;
}

.login-subtitle {
    color: #64748b;
    font-size: 14px;
    margin-bottom: 30px;
}

/* LOGIN INPUT FIELDS */

.login-container #loginForm input:not([type="checkbox"]) {
    display: block;
    width: 100%;
    padding: 15px;
    margin: 15px 0;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    outline: none;
    background: #f8fafc;
    color: #111827;
    font-size: 14px;
    transition: 0.2s ease;
}

.login-container #loginForm input:not([type="checkbox"]):focus {
    border-color: #ff6b35;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.12);
}

/* SHOW PASSWORD */

.login-show-password {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 17px 0;
    color: #64748b;
    font-size: 13px;
    cursor: pointer;
}

.login-show-password input {
    width: 16px;
    height: 16px;
    accent-color: #ff6b35;
    cursor: pointer;
}

/* LOGIN BUTTON */

.login-container #submitButton {
    width: 100%;
    padding: 15px;
    margin-top: 12px;
    border: none;
    border-radius: 10px;
    background: #ff6b35;
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.2s ease;
}

.login-container #submitButton:hover {
    background: #e95524;
    transform: translateY(-2px);
    box-shadow: 0 7px 18px rgba(255, 107, 53, 0.25);
}

.login-container #submitButton:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* REGISTER TOGGLE */

.login-toggle {
    margin-top: 25px;
    text-align: center;
    color: #64748b;
    font-size: 14px;
}

.login-toggle a {
    color: #ff6b35;
    font-weight: 700;
    text-decoration: none;
    margin-left: 5px;
}

.login-toggle a:hover {
    text-decoration: underline;
}

/* STATUS MESSAGE */

.login-container #message {
    min-height: 22px;
    margin-top: 18px;
    text-align: center;
    font-size: 13px;
}

/* HIDDEN FIELD */

.login-hidden {
    display: none !important;
}

/* =================================
   RESPONSIVE DESIGN
================================= */

@media (max-width: 950px) {

    .food-container {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    header {
        flex-wrap: wrap;
    }

    nav {
        gap: 16px;
    }
}

@media (max-width: 800px) {

    .login-wrapper {
        max-width: 550px;
        grid-template-columns: 1fr;
    }

    .login-image-section {
        min-height: 280px;
        padding: 35px;
    }

    .login-image-overlay h1 {
        margin-bottom: 18px;
        font-size: 26px;
    }

    .login-image-overlay h2 {
        font-size: 32px;
    }

    .login-form-section {
        padding: 40px 30px;
    }
}

@media (max-width: 620px) {

    header {
        flex-direction: column;
        padding: 14px 5%;
    }

    nav {
        justify-content: center;
        flex-wrap: wrap;
        gap: 12px 17px;
    }

    nav a {
        font-size: 13px;
    }

    .cart-button {
        padding: 10px 14px;
    }

    .hero {
        min-height: 390px;
        padding: 48px 7%;
        background-position: center;
    }

    .hero-content h1 {
        font-size: 38px;
    }

    .hero-content p {
        font-size: 15px;
    }

    .menu-section {
        padding: 52px 5%;
    }

    .food-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .food-card img {
        height: 230px;
    }

    .about-section {
        padding: 52px 7%;
    }

    .my-orders-section {
        padding: 50px 5%;
    }

    .cart-box {
        padding: 25px 18px;
    }
}

@media (max-width: 480px) {

    .login-page {
        padding: 15px;
    }

    .login-wrapper {
        border-radius: 16px;
    }

    .login-image-section {
        min-height: 230px;
        padding: 25px;
    }

    .login-image-overlay h2 {
        font-size: 27px;
    }

    .login-image-overlay p {
        font-size: 13px;
    }

    .login-form-section {
        padding: 30px 22px;
    }

    .login-container h1 {
        font-size: 25px;
    }
}