/* =========================================
   ZongoMall Premium CSS - Fully Polished
   Mobile-first + Perfect on iPhone 13 Pro
   Version 14.0 (Smaller cards + Transparent lightbox)
========================================= */

:root {
    /* Brand */
    --primary: #0e8f6f;
    --primary-dark: #0b7657;
    --primary-light: #14b892;
    --primary-tint: #eafaf5;

    /* Marketplace gold — the signature accent (price tags, ratings, CTA highlights) */
    --gold: #eb9c2e;
    --gold-dark: #c97f12;
    --gold-tint: #fdf3e1;

    /* Ghana flag accents — used sparingly as a local-context motif */
    --gh-red: #ce1126;
    --gh-gold: #fcd116;
    --gh-green: #006b3f;
    --gh-black: #14181f;

    /* Neutrals — warm, not cold slate */
    --dark: #14181f;
    --gray: #6b6f76;
    --gray-light: #9a9fa6;
    --border: #e4e2da;
    --light: #faf9f5;
    --surface-alt: #f4f2ec;
    --white: #ffffff;

    /* Feedback */
    --danger: #dc2626;
    --danger-tint: #fef2f2;

    --shadow: 0 4px 20px rgba(20, 24, 31, 0.06);
    --shadow-hover: 0 14px 32px rgba(20, 24, 31, 0.12);
    --radius: 16px;
    --radius-sm: 12px;

    --font-display: 'Sora', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background: var(--light);
    color: var(--dark);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .logo-text, .price, .price-large {
    font-family: var(--font-display);
}

a { color: inherit; }

/* Visible keyboard focus everywhere — accessible + intentional */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2.5px solid var(--gold);
    outline-offset: 2px;
    border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
    * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

/* Prevent iPhone zoom on input focus */
input, select, textarea, button {
    font-size: 16px !important;
}

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

/* ===== HEADER ===== */
.site-header {
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    gap: 10px;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--dark);
    text-decoration: none;
    letter-spacing: -0.5px;
}
.logo-text span {
    color: var(--primary);
}

/* Search */
.search-box {
    order: 3;
    width: 100%;
    margin-top: 2px;
}
.search-box form {
    display: flex;
}
.search-box input {
    flex: 1;
    padding: 13px 16px;
    border: 2px solid #e4e2da;
    border-radius: var(--radius) 0 0 var(--radius);
    outline: none;
    background: #faf9f5;
    transition: 0.2s;
}
.search-box input:focus {
    border-color: var(--primary);
    background: white;
}
.search-box button {
    padding: 0 20px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 0 var(--radius) var(--radius) 0;
    font-weight: 600;
    cursor: pointer;
}

/* Navigation buttons */
.nav-actions {
    display: flex;
    gap: 8px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    text-decoration: none;
    font-size: 0.9rem;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}
.btn-primary {
    background: var(--primary);
    color: white;
}
.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}
.btn-outline {
    background: transparent;
    border: 2px solid #e4e2da;
    color: var(--dark);
}
.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
}
.btn-large {
    padding: 16px 32px;
    font-size: 1.05rem;
    border-radius: 14px;
}
.btn-whatsapp {
    background: #25D366 !important;
    color: white !important;
    border: none !important;
}
.btn-whatsapp:hover {
    background: #20ba5a !important;
}

/* ===== HERO ===== */
.hero {
    position: relative;
    background: var(--dark);
    color: white;
    padding: 52px 0 46px;
    text-align: center;
    overflow: hidden;
}
/* Signature: a red-gold-green stripe under the hero — a subtle Ghanaian flag
   motif that reads as "local marketplace" without being a literal flag. */
.hero::after {
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--gh-red) 0 33.33%, var(--gh-gold) 33.33% 66.66%, var(--gh-green) 66.66% 100%);
    z-index: 2;
}

/* Small black star badge, echoing the flag's Black Star, tucked beside the headline */
.hero-star-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--gh-black);
    color: var(--gh-gold);
    font-size: 0.75rem;
    margin-right: 8px;
    vertical-align: middle;
    box-shadow: 0 0 0 3px rgba(252, 209, 22, 0.18);
}

.hero-locale-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: 999px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(252, 209, 22, 0.35);
    color: #f0ede4;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    margin-bottom: 16px;
    position: relative;
    z-index: 2;
}
.hero-locale-chip .flag-dot {
    width: 8px; height: 8px; border-radius: 50%;
    display: inline-block;
}
.hero-locale-chip .flag-dot.r { background: var(--gh-red); }
.hero-locale-chip .flag-dot.g { background: var(--gh-gold); }
.hero-locale-chip .flag-dot.gr { background: var(--gh-green); }

/* ===== HERO BACKGROUND SLIDER ===== */
.hero-slider {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}
.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transform: scale(1.08);
    transition: opacity 1.4s ease, transform 6s ease-out;
    will-change: opacity, transform;
}
.hero-slide.active {
    opacity: 1;
    transform: scale(1);
    z-index: 1;
}
.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg, rgba(16,21,28,0.82), rgba(16,21,28,0.9));
}
.hero-content {
    position: relative;
    z-index: 2;
}
@media (prefers-reduced-motion: reduce) {
    .hero-slide { transition: opacity 0.3s ease; transform: none; }
}

/* Hero slider arrows */
.hero-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.35);
    background: rgba(16,21,28,0.45);
    color: #fff;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    backdrop-filter: blur(4px);
    transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}
.hero-arrow:hover {
    background: rgba(16,21,28,0.75);
    border-color: var(--gh-gold, #f0c419);
    transform: translateY(-50%) scale(1.08);
}
.hero-arrow-prev { left: 18px; }
.hero-arrow-next { right: 18px; }

/* Hero slider dot indicators */
.hero-dots {
    position: absolute;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    gap: 8px;
}
.hero-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.6);
    background: rgba(255,255,255,0.25);
    cursor: pointer;
    padding: 0;
    transition: background 0.25s ease, transform 0.25s ease;
}
.hero-dot.active {
    background: var(--gh-gold, #f0c419);
    border-color: var(--gh-gold, #f0c419);
    transform: scale(1.15);
}

@media (max-width: 640px) {
    .hero-arrow { width: 36px; height: 36px; font-size: 0.95rem; }
    .hero-arrow-prev { left: 8px; }
    .hero-arrow-next { right: 8px; }
}

.hero h1 {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 12px;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

/* ===== HERO CITY TYPEWRITER ===== */
/* Grid-stack technique: the hidden sizer (longest city name) and the visible
   typewriter text share the same grid cell, so the track always sizes to the
   longest word. This reserves space up front and prevents any layout shift
   or reflow as shorter/longer cities type in — at every viewport/font-size. */
.hero-cycle {
    display: inline-grid;
    vertical-align: bottom;
    color: var(--gold);
    text-align: left;
}
.hero-cycle-sizer,
.hero-cycle-visible {
    grid-area: 1 / 1;
    white-space: nowrap;
}
.hero-cycle-sizer {
    visibility: hidden;
    pointer-events: none;
}
.hero-cycle-visible {
    display: inline-flex;
    align-items: baseline;
}
.hero-cycle-cursor {
    display: inline-block;
    width: 3px;
    margin-left: 3px;
    height: 0.85em;
    background: var(--gold);
    animation: heroCursorBlink 0.9s step-end infinite;
}
@keyframes heroCursorBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.hero p {
    font-size: 1.05rem;
    color: #cfd3d9;
    margin-bottom: 28px;
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
}
.hero .btn-primary {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
    color: #1a1305;
    font-weight: 700;
    position: relative;
    z-index: 2;
    box-shadow: 0 10px 28px -8px rgba(235, 156, 46, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.hero .btn-primary:hover {
    background: linear-gradient(135deg, #f5ac47 0%, var(--gold) 100%);
    transform: translateY(-2px);
    box-shadow: 0 14px 34px -8px rgba(235, 156, 46, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}
.hero .btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 6px 16px -6px rgba(235, 156, 46, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* ===== SECTION ===== */
.section {
    padding: 40px 0 50px;
}
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}
.section-header h2 {
    font-size: 1.45rem;
    font-weight: 700;
}
.section-header a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
}

/* ===== AD CARDS ===== */
.listings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
}

.listing-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(20, 24, 31, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    height: 100%;
    border: 1px solid var(--surface-alt);
}

.listing-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.listing-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    background-color: var(--surface-alt);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.listing-image.no-image {
    background: linear-gradient(135deg, var(--border), #d8d4c8);
}

.placeholder-icon {
    font-size: 1.9rem;
    opacity: 0.35;
}

.listing-body {
    padding: 8px 9px 9px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.listing-body h3 {
    font-size: 0.8rem;
    font-weight: 600;
    margin: 0 0 4px 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: var(--dark);
}

/* Signature price-tag treatment — small gold ticket, not a generic bold number */
.price {
    display: inline-flex;
    align-items: center;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--gold-dark);
    margin-bottom: 4px;
    letter-spacing: -0.01em;
}

.meta {
    font-size: 0.66rem;
    color: var(--gray);
    margin-top: auto;
    display: flex;
    gap: 4px;
    align-items: center;
    flex-wrap: wrap;
}

/* Mobile — genuinely compact, not a shrunk desktop card */
@media (max-width: 640px) {
    .listings-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 7px;
    }

    .listing-card {
        border-radius: 8px;
    }

    .listing-body {
        padding: 6px 7px 7px;
    }

    .listing-body h3 {
        font-size: 0.7rem;
        margin-bottom: 2px;
        -webkit-line-clamp: 1;
    }

    .price {
        font-size: 0.76rem;
        margin-bottom: 2px;
    }

    .meta {
        font-size: 0.58rem;
        gap: 3px;
    }

    .placeholder-icon {
        font-size: 1.3rem;
    }
}

@media (max-width: 380px) {
    .listings-grid {
        gap: 6px;
    }
    .listing-body {
        padding: 5px 6px 6px;
    }
}

/* ===== SINGLE AD PAGE ===== */
.listing-single-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 40px;
    align-items: start;
}

.main-image {
    border-radius: 16px;
    overflow: hidden;
    background: #f4f2ec;
    aspect-ratio: 4/3;
    position: relative;
}

.main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.price-large {
    font-size: 1.85rem;
    font-weight: 800;
    color: var(--primary);
    margin: 10px 0 14px;
}

.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 22px 0;
}

.action-buttons .btn-large {
    padding: 10px 16px;
    font-size: 0.88rem;
}

/* Desktop / Mobile Call button */
.desktop-only { display: flex; }
.mobile-only  { display: none; }

@media (max-width: 768px) {
    .desktop-only { display: none !important; }
    .mobile-only  { display: flex !important; }
}

.call-btn {
    font-weight: 600;
    letter-spacing: 0.3px;
}

/* ===== LIGHTBOX - More Transparent ===== */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.72);          /* More transparent */
    backdrop-filter: blur(6px);                /* Nice frosted glass */
    z-index: 9999;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.lightbox img {
    max-width: 92%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 28px;
    color: white;
    font-size: 2.8rem;
    cursor: pointer;
    line-height: 1;
    opacity: 0.9;
}

.lightbox-nav {
    position: absolute;
    bottom: 40px;
    display: flex;
    gap: 20px;
}

.lightbox-nav button {
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(4px);
    border: none;
    color: white;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    font-size: 1.8rem;
    cursor: pointer;
    transition: 0.2s;
}

.lightbox-nav button:hover {
    background: rgba(255, 255, 255, 0.32);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
    .listing-single-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .main-image {
        aspect-ratio: 1 / 1;
        max-height: 450px;
    }
}

@media (max-width: 640px) {
    .container {
        padding: 0 12px;
    }

    .hero {
        padding: 34px 0 30px;
    }
    .hero h1 {
        font-size: 1.45rem;
    }
    .hero p {
        font-size: 0.92rem;
        margin-bottom: 20px;
    }

    .section {
        padding: 22px 0 30px;
    }
    .section-header {
        margin-bottom: 12px;
    }
    .section-header h2 {
        font-size: 1.1rem;
    }
    .section-header a {
        font-size: 0.85rem;
    }
}

/* ===== LEGAL / INFO PAGES (About, Privacy, Terms) ===== */
.legal-hero {
    position: relative;
    background: var(--dark);
    color: white;
    padding: 44px 0 34px;
    text-align: center;
    overflow: hidden;
}
.legal-flag-bar {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--gh-red) 0 33.33%, var(--gh-gold) 33.33% 66.66%, var(--gh-green) 66.66% 100%);
}
.legal-hero h1 {
    font-family: var(--font-display);
    font-size: 1.9rem;
    font-weight: 800;
    margin-bottom: 8px;
}
.legal-hero p { color: #cfd3d9; }

.legal-container {
    max-width: 780px;
}
.legal-content h2 {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 28px 0 10px;
    color: var(--dark);
}
.legal-content h2:first-child { margin-top: 0; }
.legal-content p {
    color: #3d424b;
    margin-bottom: 12px;
    line-height: 1.7;
}
.legal-list {
    margin: 0 0 12px 20px;
    color: #3d424b;
    line-height: 1.8;
}
.legal-list li { margin-bottom: 4px; }

@media (max-width: 640px) {
    .legal-hero { padding: 30px 0 24px; }
    .legal-hero h1 { font-size: 1.4rem; }
}

/* ===== PAGINATION (/ads) ===== */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    margin-top: 32px;
}
.pagination-link {
    padding: 9px 18px;
    border-radius: 8px;
    background: var(--dark);
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: background 0.2s;
}
.pagination-link:hover { background: #2a323d; }
.pagination-current {
    color: var(--gray);
    font-size: 0.9rem;
    font-weight: 500;
}

/* ===== FOOTER ===== */
.site-footer {
    position: relative;
    background: var(--dark);
    color: #9a9fa6;
    text-align: center;
    padding: 32px 16px 26px;
    margin-top: 20px;
    font-size: 0.85rem;
    line-height: 1.7;
}
.footer-flag-bar {
    display: block;
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--gh-red) 0 33.33%, var(--gh-gold) 33.33% 66.66%, var(--gh-green) 66.66% 100%);
}
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.footer-logo { height: 64px; opacity: 0.9; }
.footer-tagline { color: #e4e2da; font-weight: 600; margin-top: 4px; }
.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 22px;
}
.footer-links a {
    color: #cfd3d9;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}
.footer-links a:hover { color: var(--gh-gold); }

.footer-whatsapp-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    border-radius: 999px;
    background: #25D366;
    color: #0b3b1e;
    font-weight: 700;
    font-size: 0.88rem;
    text-decoration: none;
    box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.18);
    transition: background 0.2s, transform 0.15s;
}
.footer-whatsapp-btn i { font-size: 1rem; }
.footer-whatsapp-btn:hover {
    background: #1fbd5a;
    transform: translateY(-1px);
}

.footer-copy { color: #7d828a; }
.footer-star { color: var(--gh-gold); }

@media (max-width: 640px) {
    .footer-logo { height: 75px; }
}

/* =====================================================
   ZONGOMALL AUTH MODAL — Branded, compact, mobile-first
   ===================================================== */

.auth-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99999;
    align-items: center;
    justify-content: center;
    padding: 16px;
}
.auth-modal.active {
    display: flex !important;
}
.auth-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 13, 18, 0.62);
    backdrop-filter: blur(4px);
}
.auth-modal-content {
    position: relative;
    background: #fff;
    width: 100%;
    max-width: 400px;
    border-radius: 20px;
    padding: 28px 28px 24px;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.3);
    max-height: 90vh;
    overflow-y: auto;
    border-top: 4px solid #0e8f6f;
}
.auth-close {
    position: absolute;
    top: 14px;
    right: 14px;
    background: #f3f4f6;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 20px;
    line-height: 1;
    color: #4b5563;
    cursor: pointer;
    transition: background 0.2s;
}
.auth-close:hover { background: #e5e7eb; }

/* Branded logo header inside the modal */
.auth-modal-brand {
    text-align: center;
    margin-bottom: 18px;
}
.auth-modal-logo {
    height: 42px;
    width: auto;
    display: inline-block;
    margin-bottom: 6px;
}
.auth-modal-tagline {
    margin: 0;
    font-size: 0.8rem;
    font-weight: 600;
    color: #9a9fa6;
    letter-spacing: 0.02em;
}

/* Tabs */
.auth-tabs {
    display: flex;
    gap: 6px;
    margin-bottom: 20px;
    background: #f3f4f6;
    padding: 5px;
    border-radius: 14px;
}
.auth-tab {
    flex: 1;
    padding: 11px 10px;
    border: none;
    background: transparent;
    border-radius: 11px;
    font-weight: 600;
    font-size: 0.92rem;
    cursor: pointer;
    color: #6b7280;
    transition: all 0.2s ease;
}
.auth-tab.active {
    background: #ffffff;
    color: #0e8f6f;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* Forms */
.auth-form { display: none; }
.auth-form.active { display: block; }
.auth-form h3 {
    margin: 0 0 6px 0;
    font-size: 1.4rem;
    font-weight: 700;
    color: #111827;
}
.auth-subtitle {
    color: #6b7280;
    margin: 0 0 20px 0;
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Form groups */
.form-group { margin-bottom: 14px; }
.form-group label {
    display: block;
    font-size: 0.83rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: #374151;
}
.form-group input {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid #e5e7eb;
    border-radius: 11px;
    font-size: 0.95rem;
    color: #111;
    background: #fff;
    transition: all 0.2s;
}
.form-group input:focus {
    outline: none;
    border-color: #0e8f6f;
    box-shadow: 0 0 0 4px rgba(14, 143, 111, 0.12);
}
.form-group input::placeholder { color: #9ca3af; }

/* Password wrapper */
.password-wrapper { position: relative; }
.password-wrapper input { padding-right: 44px; }
.toggle-password {
    position: absolute;
    right: 13px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 1.05rem;
    user-select: none;
    opacity: 0.7;
    transition: opacity 0.2s;
}
.toggle-password:hover { opacity: 1; }

/* Options row */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
    font-size: 0.83rem;
}
.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #4b5563;
    cursor: pointer;
}
.forgot-link {
    color: #0e8f6f;
    text-decoration: none;
    font-weight: 500;
}
.forgot-link:hover { text-decoration: underline; }

/* Main button */
.auth-btn {
    width: 100%;
    padding: 13px;
    background: #0e8f6f;
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 0.98rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 12px rgba(14, 143, 111, 0.25);
}
.auth-btn:hover {
    background: #0b7657;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(14, 143, 111, 0.3);
}
.auth-btn:active { transform: translateY(0); }
.auth-btn:disabled { opacity: 0.65; cursor: not-allowed; transform: none; }

/* Switch text */
.auth-switch {
    text-align: center;
    margin: 18px 0 0 0;
    font-size: 0.87rem;
    color: #6b7280;
}
.auth-switch a { color: #0e8f6f; font-weight: 600; text-decoration: none; }
.auth-switch a:hover { text-decoration: underline; }

/* Message box */
.auth-message {
    margin-top: 14px;
    padding: 11px 14px;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 500;
    display: none;
    text-align: center;
}
.auth-message.error {
    display: block; background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca;
}
.auth-message.success {
    display: block; background: #eafaf5; color: #0b7657; border: 1px solid #bbf7d0;
}

/* ===== Responsive — real phones (not just the browser preview) ===== */
@media (max-width: 480px) {
    .auth-modal { padding: 10px; align-items: flex-end; }
    .auth-modal-content {
        max-width: 100%;
        padding: 18px 18px 16px;
        border-radius: 18px 18px 16px 16px;
        max-height: 94vh;
    }
    .auth-close { top: 10px; right: 10px; width: 28px; height: 28px; font-size: 17px; }
    .auth-modal-brand { margin-bottom: 12px; }
    .auth-modal-logo { height: 32px; margin-bottom: 4px; }
    .auth-modal-tagline { font-size: 0.7rem; }
    .auth-tabs { margin-bottom: 14px; padding: 4px; }
    .auth-tab { padding: 9px 8px; font-size: 0.84rem; }
    .auth-form h3 { font-size: 1.15rem; }
    .auth-subtitle { font-size: 0.8rem; margin-bottom: 14px; }
    .form-group { margin-bottom: 10px; }
    .form-group label { font-size: 0.78rem; margin-bottom: 4px; }
    .form-group input { padding: 10px 12px; font-size: 0.9rem; border-radius: 9px; }
    .form-options { margin-bottom: 12px; font-size: 0.78rem; }
    .auth-btn { padding: 11px; font-size: 0.9rem; border-radius: 10px; }
    .auth-switch { font-size: 0.78rem; margin-top: 12px; }
    .auth-message { font-size: 0.78rem; padding: 9px 12px; margin-top: 10px; }
}

@media (max-width: 360px) {
    .auth-modal-content { padding: 14px 14px 12px; }
    .auth-modal-logo { height: 28px; }
    .form-group input { padding: 9px 11px; font-size: 0.87rem; }
}
