* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&family=Quicksand:wght@500;700&display=swap');

:root {
    --deep-forest: #1b3022;
    --sage: #588157;
    --moss: #a3b18a;
    --cream: #f8f9f1;
    --wood: #8c5e3c;
    --glass-white: rgba(255, 255, 255, 0.15);
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--cream);
    color: var(--deep-forest);
    overflow-x: hidden;
}

/* 2. NAVIGATION */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 8%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
}

.logo { font-family: 'Quicksand', sans-serif; font-size: 1.5rem; font-weight: 700; color: var(--deep-forest); }

nav a {
    text-decoration: none;
    color: var(--deep-forest);
    margin-left: 25px;
    font-weight: 500;
    transition: 0.3s;
}

nav a:hover { color: var(--sage); }

/* 3. AUTH PAGES (Login/Register/Success) */
.auth-container {
    min-height: 100vh;
    width: 100vw;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), 
                url('https://images.unsplash.com/photo-1448375240586-882707db888b?auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 20px;
}

.glass-auth-card {
    background: var(--glass-white);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 40px;
    border-radius: 30px;
    width: 100%;
    max-width: 450px; /* Keeps the card from getting too wide */
    text-align: center;
    color: white;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}

.glass-auth-card h2 {
    font-family: 'Quicksand', sans-serif;
    font-size: 2.2rem;
    margin-bottom: 10px;
}

/* 4. FORM ELEMENTS */
.glass-auth-card input {
    width: 100%; /* Forces inputs to fill the card width */
    background: rgba(255, 255, 255, 0.95);
    border: none;
    border-radius: 12px;
    padding: 14px 18px;
    margin-bottom: 15px;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    color: var(--deep-forest);
    display: block;
}

.btn-glow {
    width: 100%;
    padding: 16px;
    background: var(--moss);
    color: var(--deep-forest);
    border: none;
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: 0.3s ease;
    margin-top: 10px;
}

.btn-glow:hover {
    background: var(--sage);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(88, 129, 87, 0.4);
}

/* 5. ROLE SELECTOR (Register Page Only) */
.role-selector {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.role-selector label { flex: 1; cursor: pointer; }
.role-selector input { display: none; }

.role-option {
    background: rgba(255, 255, 255, 0.1);
    padding: 12px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    transition: 0.3s;
    text-align: center;
}

input:checked + .role-option {
    background: var(--moss);
    color: var(--deep-forest);
    font-weight: bold;
    border-color: var(--moss);
}

/* 6. LANDING PAGE GRID */
.container { padding: 50px 8%; }

.shop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

.shop-card {
    background: white;
    padding: 25px;
    border-radius: 20px;
    border-bottom: 5px solid var(--sage);
    transition: 0.4s;
    color: var(--deep-forest);
}

.shop-card:hover { transform: translateY(-10px); box-shadow: 0 15px 30px rgba(0,0,0,0.08); }