@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
    /* Color Palette - Vibrant & Premium */
    --primary: #f97316; /* Orange 500 */
    --primary-dark: #ea580c; /* Orange 600 */
    --primary-glow: rgba(249, 115, 22, 0.2);

    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --bg-glass: rgba(255, 255, 255, 0.7);

    --text-main: #1e293b;
    --text-muted: #64748b;
    --text-white: #ffffff;

    --border: rgba(226, 232, 240, 0.8);
    --border-glass: rgba(255, 255, 255, 0.4);

    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;

    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 10px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1);

    --radius-md: 16px;
    --radius-lg: 24px;

    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    width: min(92%, 1280px);
    margin: 0 auto;
}

/* Glassmorphism Utilities */
.glass {
    background: var(--bg-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-glass);
    box-shadow: var(--shadow-md);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content:center;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-weight: 700;
    cursor: pointer;
    border: none;
    gap: 8px;
    transition: var(--transition);
    font-size: 0.95rem;
}

.btn-primary {
    background: var(--primary);
    color: var(--text-white);
    box-shadow: 0 8px 20px var(--primary-glow);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 12px 25px var(--primary-glow);
}

.btn-secondary {
    background: var(--bg-white);
    color: var(--text-main);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: var(--bg-light);
    transform: translateY(-2px);
}

/* Form Controls */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.form-control {
    width: 100%;
    padding: 14px 18px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    background: var(--bg-white);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-glow);
}

/* Cards */
.card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-fade {
    animation: fadeIn 0.6s ease-out forwards;
}

/* Layout Specifics */
.navbar {
    height: 80px;
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Badge */
.badge {
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-pending { background: #fef3c7; color: #92400e; }
.badge-approved { background: #d1fae5; color: #065f46; }
.badge-rejected { background: #fee2e2; color: #991b1b; }
.badge-suspended { background: #fef3c7; color: #92400e; }

/* Responsive Grid */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

@media (max-width: 768px) {
    .grid {
        grid-template-columns: 1fr;
    }

    h1 { font-size: 2rem; }
}

/* Shared authentication pages */
.auth-page-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(300px, 0.9fr) minmax(420px, 1.1fr);
  background: #fffaf5;
}
.auth-brand-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100vh;
  padding: clamp(32px, 6vw, 72px);
  color: white;
  overflow: hidden;
  background: linear-gradient(145deg, #ff6b0b, #c2410c);
}
.auth-brand-panel::after {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  right: -170px;
  bottom: -170px;
  border: 70px solid rgba(255,255,255,.12);
  border-radius: 50%;
}
.auth-brand-panel.admin { background: linear-gradient(145deg, #1e293b, #020617); }
.auth-brand-logo { display: flex; align-items: center; gap: 12px; color: white; font-size: 1.25rem; font-weight: 800; z-index: 1; }
.auth-brand-copy { position: relative; z-index: 1; max-width: 480px; }
.auth-brand-copy h1 { color: white; font-size: clamp(2rem, 4vw, 3.6rem); line-height: 1.05; margin-bottom: 18px; }
.auth-brand-copy p { font-size: 1.05rem; line-height: 1.7; opacity: .88; }
.auth-brand-foot { position: relative; z-index: 1; font-size: .8rem; opacity: .75; }
.auth-form-panel { display: flex; align-items: center; justify-content: center; padding: 32px 20px; }
.auth-form-wrap { width: min(100%, 430px); }
.auth-back { display: inline-flex; margin-bottom: 32px; color: var(--text-muted); font-size: .85rem; font-weight: 700; }
.auth-back:hover { color: var(--primary); }
.auth-heading { margin-bottom: 28px; }
.auth-heading h2 { font-size: 2rem; margin-bottom: 8px; }
.auth-card-clean { background: white; padding: clamp(24px, 5vw, 38px); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
.auth-submit { width: 100%; padding: 14px 18px; }
.auth-alert { padding: 12px 14px; border-radius: var(--radius-md); margin-bottom: 20px; font-size: .86rem; font-weight: 600; }
.auth-alert-error { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }
.auth-options { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--border); display: grid; gap: 10px; text-align: center; font-size: .88rem; }
.auth-options a { color: var(--primary); font-weight: 700; }
.auth-helper { margin-top: 8px; color: var(--text-muted); font-size: .78rem; line-height: 1.5; }
.otp-code { text-align: center; font-size: 1.5rem; letter-spacing: 7px; font-weight: 800; font-variant-numeric: tabular-nums; }
.demo-code { padding: 14px; margin-bottom: 20px; text-align: center; background: #fef3c7; color: #92400e; border: 1px solid #fcd34d; border-radius: var(--radius-md); font-size: .85rem; }
@media (max-width: 820px) {
  .auth-page-shell { display: block; background: white; }
  .auth-brand-panel { min-height: auto; padding: 24px 20px; }
  .auth-brand-copy, .auth-brand-foot { display: none; }
  .auth-form-panel { padding: 28px 20px 48px; }
  .auth-back { margin-bottom: 24px; }
  .auth-card-clean { box-shadow: none; padding: 0; border: 0; }
}
.site-logo-image {
  width: 42px;
  height: 42px;
  display: block;
  object-fit: contain;
  flex: 0 0 auto;
}
.auth-brand-logo .site-logo-image { width: 46px; height: 46px; }
.admin-nav .site-logo-image { width: 40px; height: 40px; }
@media (max-width: 768px) {
  .site-logo-image { width: 38px; height: 38px; }
}
/* Customer account flow inspired by familiar two-step marketplace sign-in */
.customer-auth-body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 36px 18px;
  background: #f5f6f7;
}
.customer-auth-shell { width: min(100%, 460px); text-align: center; }
.customer-auth-brand { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 28px; color: var(--primary); font-size: 1.25rem; font-weight: 800; }
.customer-auth-brand .site-logo-image { width: 52px; height: 52px; }
.customer-auth-card { padding: 38px 36px 32px; background: white; border: 1px solid #e5e7eb; border-radius: 8px; box-shadow: 0 3px 14px rgba(15,23,42,.08); text-align: left; }
.customer-auth-icon { width: 64px; height: 64px; display: grid; place-items: center; margin: 0 auto 22px; border-radius: 50%; background: #fff1e8; color: var(--primary); font-size: 1.7rem; }
.customer-auth-heading { text-align: center; margin-bottom: 28px; }
.customer-auth-heading h1 { font-size: 1.55rem; margin-bottom: 10px; color: #1f2937; }
.customer-auth-heading p { color: #6b7280; font-size: .9rem; line-height: 1.55; }
.customer-auth-card .form-control { min-height: 50px; border-radius: 6px; }
.customer-auth-continue { width: 100%; min-height: 50px; border-radius: 6px; text-transform: uppercase; letter-spacing: .025em; box-shadow: none; }
.customer-auth-note { margin-top: 20px; color: #6b7280; font-size: .74rem; line-height: 1.55; text-align: center; }
.customer-auth-security { display: flex; justify-content: center; align-items: center; gap: 6px; margin-top: 18px; color: #64748b; font-size: .76rem; }
.customer-auth-secondary { margin-top: 24px; padding-top: 20px; border-top: 1px solid #e5e7eb; text-align: center; font-size: .83rem; color: #64748b; }
.customer-auth-secondary a { color: var(--primary); font-weight: 700; }
.customer-auth-home { display: inline-block; margin-top: 22px; color: #64748b; font-size: .82rem; font-weight: 600; }
.customer-auth-home:hover { color: var(--primary); }
@media (max-width: 520px) {
  .customer-auth-body { padding: 0; align-items: stretch; background: white; }
  .customer-auth-shell { width: 100%; padding: 28px 20px; }
  .customer-auth-card { padding: 24px 0; border: 0; box-shadow: none; }
}