@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
    --primary: #4f46e5;
    --primary-hover: #4338ca;
    --bg: #f8fafc;
    --card: #ffffff;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --border: #e2e8f0;
    --success: #10b981;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg);
    color: var(--text-main);
    margin: 0;
    line-height: 1.5;
}

/* Modern Navbar */
nav {
    background: var(--card);
    border-bottom: 1px solid var(--border);
    padding: 1rem 10%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    margin-left: 1.5rem;
}

/* Centered Auth Containers */
.auth-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 90vh;
}

.auth-card {
    background: var(--card);
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
    width: 100%;
    max-width: 400px;
    border: 1px solid var(--border);
}

h1, h2 { font-weight: 700; color: #0f172a; margin-bottom: 0.5rem; }

/* Form Styling */
label { font-size: 0.875rem; font-weight: 500; color: var(--text-muted); }
input {
    width: 100%;
    padding: 0.75rem 1rem;
    margin: 0.5rem 0 1.25rem 0;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 1rem;
    transition: border 0.2s;
}
input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

button {
    width: 100%;
    background: var(--primary);
    color: white;
    padding: 0.875rem;
    border-radius: 8px;
    border: none;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}
button:hover { background: var(--primary-hover); }

/* User Dashboard Cards */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    padding: 2rem 10%;
}

.p-card {
    background: white;
    border-radius: 12px;
    border: 1px solid var(--border);
    overflow: hidden;
    transition: transform 0.2s;
}
.p-card:hover { transform: translateY(-4px); }
.p-content { padding: 1.5rem; }

.logo { font-weight: 800; font-size: 1.25rem; color: var(--primary); letter-spacing: -0.5px; }
.section-title { margin-top: 2rem; font-size: 1.5rem; font-weight: 700; }
.balance-card {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    color: white;
    padding: 2.5rem;
    border-radius: 20px;
    margin-top: 2rem;
    box-shadow: 0 20px 25px -5px rgba(79, 70, 229, 0.2);
}
.balance-card h1 { font-size: 3.5rem; margin: 0.5rem 0; letter-spacing: -1px; }
.product-img { width: 100%; height: 180px; object-fit: cover; border-bottom: 1px solid var(--border); }
.price { font-size: 1.25rem; font-weight: 700; color: var(--text-main); margin: 1rem 0; }
.btn-disabled { background: #e2e8f0; color: #94a3b8; width: 100%; padding: 0.875rem; border-radius: 8px; border: none; cursor: not-allowed; }
.auth-bg { background: radial-gradient(circle at top left, #f8fafc, #e2e8f0); }
