/* ============================================
   Common Styles - Jamat e Islami Wah Cantt
   ============================================ */

/* --- Jameel Noori Nastaleeq (Urdu) Font --- */
@font-face {
    font-family: "JameelNooriNastaleeq";
    src: url(https://cdn.jsdelivr.net/npm/jameel-noori@1.1.2/fonts/jameel-noori-nastaleeq4.woff2) format('woff2');
}

.font-urdu {
    font-family: "JameelNooriNastaleeq", "Noto Nastaliq Urdu", "Amiri", serif;
}

/* Noto Nastaliq Urdu - primary Nastaliq font */
.font-nastaliq {
    font-family: "Noto Nastaliq Urdu", "JameelNooriNastaleeq", "Amiri", serif;
}

/* --- News Ticker --- */
.news-ticker-wrap {
    background: linear-gradient(90deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 0.5rem 0;
    overflow: hidden;
    direction: rtl;
    width: 100%;
}

.news-ticker-wrap .d-flex {
    width: 100%;
}

.news-ticker-label {
    background: rgba(0,0,0,.2);
    padding: 0.35rem 1rem;
    font-weight: 600;
    font-size: 0.9rem;
    white-space: nowrap;
}

.news-ticker-inner {
    margin-right: 1rem;
}

.news-ticker-content {
    display: inline-flex;
    animation: ticker-scroll 60s linear infinite;
}

.news-ticker-content:hover {
    animation-play-state: paused;
}

.news-ticker-item {
    white-space: nowrap;
    padding: 0 2rem;
    font-family: "JameelNooriNastaleeq", "Noto Nastaliq Urdu", serif;
    font-size: 1.15rem;
}

.news-ticker-item::after {
    content: '  •  ';
    opacity: 0.8;
}

.news-ticker-item:last-child::after {
    content: '';
}

/* Scroll right-to-left for Urdu/RTL */
@keyframes ticker-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* --- CSS Variables --- */
:root {
    --primary: #0d6efd;
    --primary-dark: #0a58ca;
    --accent: #198754;
    --dark: #1a1d21;
    --muted: #6c757d;
}

/* --- Content area min-height --- */
.content-area {
    min-height: 60vh;
}

/* --- Compact site view (smaller overall) --- */
html {
    font-size: 14px;
}

@media (min-width: 1200px) {
    .container {
        max-width: 1200px;
    }
}

/* --- Landing Page Styles --- */
body {
    font-family: 'Inter', sans-serif;
    color: var(--dark);
    overflow-x: hidden;
}

.landing-header {
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
    box-shadow: 0 2px 20px rgba(0,0,0,.08);
    position: sticky;
    top: 0;
    z-index: 1050;
    overflow: visible;
}

.landing-header .navbar {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

/* Mobile menu - ensure collapse is visible */
@media (max-width: 991.98px) {
    .landing-header .navbar-toggler {
        border-color: rgba(0,0,0,.3);
        padding: 0.35rem 0.6rem;
    }
    .landing-header .navbar-toggler-icon {
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(0,0,0,0.75)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
        width: 1.25em;
        height: 1.25em;
    }
    .landing-header .navbar-toggler:focus {
        box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
    }
    .landing-header .navbar-collapse {
        background: #fff;
        margin-top: 0.5rem;
        padding: 1rem;
        border-radius: 8px;
        box-shadow: 0 4px 12px rgba(0,0,0,.15);
        z-index: 1060;
    }
    .landing-header .navbar-collapse .navbar-nav {
        gap: 0;
    }
    .landing-header .navbar-collapse .nav-link {
        padding: 0.5rem 0;
        border-bottom: 1px solid #dee2e6;
        color: #212529;
    }
    .landing-header .navbar-collapse .nav-item:last-child .nav-link {
        border-bottom: none;
    }
}

.header-logo {
    height: 36px;
    width: auto;
    object-fit: contain;
}

.hero-section {
    background: linear-gradient(160deg, #0d6efd 0%, #0a58ca 50%, #084298 100%);
    color: white;
    padding: 2.5rem 0 3rem;
    position: relative;
    overflow: hidden;
}


.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.logo-box {
    width: 90px;
    height: 82px;
    background: rgba(255,255,255,.95);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0,0,0,.15);
    padding: 10px;
}

.logo-box-hero {
    width: 100px;
    height: 95px;
}

.hero-content {
    position: relative;
    z-index: 1;
}

[dir="rtl"] .hero-text {
    text-align: right;
}

.logo-box img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.section-title {
    font-weight: 700;
    font-size: 1.4rem;
    color: var(--dark);
    margin-bottom: 1.25rem;
    position: relative;
    padding-bottom: 0.4rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    inset-inline-start: 0;
    width: 50px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 2px;
}

/* Sidebar */
.sidebar-sticky {
    position: sticky;
    top: 75px;
}

.sidebar-card {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 1rem;
    box-shadow: 0 2px 12px rgba(0,0,0,.06);
}

.sidebar-title {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--dark);
    margin-bottom: 0.75rem;
    padding-bottom: 0.4rem;
    border-bottom: 3px solid var(--primary);
}

.sidebar .fb-feed-wrap {
    background: #fff !important;
}

/* Urdu / RTL body - Noto Nastaliq */
body.lang-ur {
    font-family: "Noto Nastaliq Urdu", "JameelNooriNastaleeq", "Amiri", serif;
}

/* News detail page */
.news-detail h1 {
    font-size: 1.5rem;
    line-height: 2.5;
}
.news-detail-image {
    max-height: 400px;
    object-fit: cover;
}

.news-detail-content {
    font-size: 1.1rem;
    line-height: 1.8;
}

.news-detail-content p {
    margin-bottom: 1rem;
}

.page-detail-content {
    font-size: 1.1rem;
    line-height: 1.8;
}

.page-detail-content p {
    margin-bottom: 1rem;
}

.page-detail-content h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 2rem 0 0.75rem;
    color: var(--dark);
    padding-bottom: 0.35rem;
    border-bottom: 2px solid var(--primary);
}

.page-detail-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 1.5rem 0 0.5rem;
    color: #334155;
}

.page-detail-content h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 1.25rem 0 0.5rem;
    color: #475569;
}

.page-detail-content ul,
.page-detail-content ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.page-detail-content a {
    color: var(--primary);
    text-decoration: none;
}

.page-detail-content a:hover {
    text-decoration: underline;
}

.project-card {
    border: 1px solid #e9ecef;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    background: #fff;
}

.project-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(0,0,0,.12);
    border-color: transparent;
}

.project-logo-wrap {
    height: 70px;
}

.project-logo-wrap img {
    max-height: 70px;
    object-fit: contain;
}

.news-card {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,.08);
    transition: all 0.3s ease;
    height: 100%;
    background: #fff;
}

.news-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 36px rgba(0,0,0,.14);
}

.news-card .card-img-top {
    height: 160px;
    object-fit: cover;
}

.news-card .news-placeholder {
    height: 160px;
}

.news-card .card-body {
    padding: 1rem;
}

/* Leadership cards */
.leader-card {
    border: 1px solid #e9ecef;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    background: #fff;
}

.leader-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 36px rgba(0,0,0,.1);
    border-color: transparent;
}

.leader-photo-wrap {
    width: 100px;
    height: 100px;
}

.leader-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.leader-photo-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: #adb5bd;
}

/* Union councils table */
.union-councils-table {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,.06);
}

.union-councils-table thead {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
}

.union-councils-table thead th {
    border: none;
    padding: 1rem;
    font-weight: 600;
}

.union-councils-table tbody tr:hover {
    background-color: rgba(13, 110, 253, 0.05);
}

/* Member registration banner - full image visible, no cropping */
.member-banner-wrap {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    overflow: hidden;
    display: block;
}

.member-banner-img {
    width: 100%;
    height: auto;
    display: block;
    vertical-align: middle;
}

@media (max-width: 575.98px) {
    .member-banner-wrap {
        width: 100vw;
        min-width: 100vw;
        margin-left: calc(50% - 50vw);
        margin-right: calc(50% - 50vw);
        border-radius: 0;
    }
    .member-banner-img {
        width: 100%;
        height: auto;
    }
}

.news-card .card-title {
    font-weight: 600;
    font-size: 1rem;
    line-height: 2.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-date {
    font-size: 0.85rem;
    color: var(--muted);
}

.btn-landing {
    padding: 0.5rem 1.25rem;
    font-weight: 500;
    border-radius: 8px;
}

.footer-page-link {
    color: rgba(255,255,255,.85);
    text-decoration: none;
    font-size: 0.9rem;
}

.footer-page-link:hover {
    color: #fff;
    text-decoration: underline;
}

.footer-col-title {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(255,255,255,.95);
    margin-bottom: 1rem;
}

.footer-links-list li {
    margin-bottom: 0.5rem;
}

.footer-links-list li:last-child {
    margin-bottom: 0;
}

.footer-address {
    font-size: 0.9rem;
    color: rgba(255,255,255,.85);
    line-height: 1.6;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.15);
}

.footer-landing {
    background: var(--dark);
    color: rgba(255,255,255,.8);
    padding: 1.5rem 0;
    margin-top: 2.5rem;
    font-size: 0.85rem;
}

.social-link-btn {
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: white;
    font-size: 1.25rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-link-btn:hover {
    color: white;
    transform: scale(1.1);
}

.social-link-btn.facebook { background: #1877f2; }
.social-link-btn.twitter { background: #1da1f2; }
.social-link-btn.instagram { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.social-link-btn.youtube { background: #ff0000; }
.social-link-btn.linkedin { background: #0a66c2; }
.social-link-btn.whatsapp { background: #25d366; }
.social-link-btn.link { background: #6c757d; }

.social-link-btn.social-link-btn-sm {
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
}

.logo-fallback {
    display: none;
}

/* --- JI CMS Styles --- */
body.admin-body {
    font-family: 'Nunito', sans-serif;
    min-height: 100vh;
}

.admin-sidebar {
    min-height: calc(100vh - 56px);
    background: #212529;
}

.admin-sidebar .nav-link {
    color: rgba(255,255,255,.75);
    padding: 0.75rem 1rem;
    border-radius: 0.25rem;
}

.admin-sidebar .nav-link:hover {
    color: #fff;
    background: rgba(255,255,255,.1);
}

.admin-sidebar .nav-link.active {
    color: #fff;
    background: rgba(255,255,255,.15);
}

.admin-sidebar .nav-link svg,
.admin-sidebar .nav-link i {
    margin-right: 0.5rem;
    opacity: 0.8;
}

/* Dashboard stat cards (used in home/dashboard) */
.stat-card .stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1e293b;
}

.stat-card .stat-label {
    font-size: 0.9rem;
    color: #64748b;
}

/* --- Events Calendar --- */
.events-calendar {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,.08);
    overflow: hidden;
}
.calendar-header {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    font-weight: 600;
    font-size: 0.85rem;
}
.calendar-day-name {
    padding: 0.75rem;
    text-align: center;
}
.calendar-body {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    min-height: 400px;
}
.calendar-cell {
    min-height: 80px;
    padding: 0.5rem;
    border: 1px solid #eee;
    font-size: 0.85rem;
}
.calendar-cell-empty {
    background: #f8f9fa;
}
.calendar-cell-today {
    background: rgba(13, 110, 253, 0.08);
}
.calendar-date {
    font-weight: 600;
    margin-bottom: 0.25rem;
}
.calendar-event {
    display: block;
    padding: 0.2rem 0.4rem;
    margin-bottom: 0.2rem;
    border-radius: 4px;
    font-size: 0.75rem;
    color: var(--dark);
    text-decoration: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.calendar-event:hover {
    opacity: 0.9;
}
.calendar-more {
    font-size: 0.7rem;
    color: var(--muted);
}
.event-date-badge {
    width: 60px;
    padding: 0.5rem;
    border-radius: 8px;
}
.event-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,.1) !important;
}
.event-invitation-img {
    width: 100%;
    max-width: 200px;
    min-height: 120px;
    overflow: hidden;
}
.event-invitation-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
@media (min-width: 768px) {
    .event-invitation-img {
        width: 200px;
        min-height: 140px;
    }
}

/* --- Membership Card --- */
@font-face {
    font-family: 'Jameel Noori Nastaleeq';
    src: url('https://cdn.jsdelivr.net/gh/tariq-abdullah/urdu-web-font-CDN@main/JameelNooriNastaleeq.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: block;
}
.membership-card-wrapper {
    display: flex;
    justify-content: center;
    perspective: 1000px;
    margin-bottom: 2rem;
}
.membership-card-interactive {
    width: 100%;
    max-width: 520px;
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(0,0,0,0.04);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    font-family: 'Jameel Noori Nastaleeq', 'Noto Nastaliq Urdu', Tahoma, Arial, sans-serif;
    word-wrap: normal;
    letter-spacing: normal;
    position: relative;
    transform: translateZ(0);
}
.membership-card-interactive:hover {
    transform: translateY(-4px) scale(1.01);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(0,0,0,0.06);
}
.mcard-banner {
    width: 100%;
    overflow: hidden;
    line-height: 0;
    background: #f8fafc;
}
.mcard-banner-img {
    width: 100%;
    height: auto;
    min-height: 140px;
    max-height: 200px;
    object-fit: contain;
    object-position: center center;
    display: block;
}
.mcard-body {
    padding: 28px 28px;
    position: relative;
}
.mcard-body-inner {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 28px;
    max-width: 100%;
}
.mcard-rtl .mcard-body-inner { flex-direction: row-reverse; }
.mcard-rtl .mcard-info-grid { direction: rtl; }
.mcard-photo-wrap {
    flex-shrink: 0;
    width: 110px;
    height: 110px;
    border-radius: 14px;
    overflow: hidden;
    border: 2px solid #e2e8f0;
    background: #f8fafc;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.mcard-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.mcard-photo-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-size: 2.5rem;
}
.mcard-details {
    flex: 1;
    min-width: 0;
    contain: layout;
}
.mcard-name-block {
    margin-bottom: 14px;
}
.mcard-name {
    color: #1e293b;
    font-size: 1.35rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.35;
    font-family: 'Jameel Noori Nastaleeq', 'Noto Nastaliq Urdu', Tahoma, Arial, sans-serif;
}
.mcard-jiyouth-badge {
    display: inline-flex;
    align-items: center;
    background: #d97706;
    color: #fff;
    font-family: 'Jameel Noori Nastaleeq', 'Noto Nastaliq Urdu', Tahoma, Arial, sans-serif;
    font-size: 1rem;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 6px;
    letter-spacing: 0;
    box-shadow: 0 2px 6px rgba(217, 119, 6, 0.4);
    white-space: nowrap;
    direction: rtl;
}
.mcard-info-grid {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 8px 16px;
    align-items: baseline;
}
.mcard-row {
    display: contents;
}
.mcard-row .mcard-label,
.mcard-row .mcard-value {
    font-size: 0.95rem;
    font-family: 'Jameel Noori Nastaleeq', 'Noto Nastaliq Urdu', Tahoma, Arial, sans-serif;
    line-height: 1.5;
}
.mcard-label {
    color: #64748b;
    font-size: 0.9rem;
    white-space: nowrap;
}
.mcard-value {
    color: #1e293b;
    font-weight: 500;
    font-size: 0.95rem;
    font-family: 'Jameel Noori Nastaleeq', 'Noto Nastaliq Urdu', Tahoma, Arial, sans-serif;
    line-height: 1.5;
    min-width: 0;
}
.mcard-mono { font-family: 'Consolas', 'Monaco', monospace; letter-spacing: 0.5px; direction: ltr; unicode-bidi: embed; }
.mcard-email { word-break: break-all; }
.mcard-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 28px;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    font-size: 0.85rem;
    color: #475569;
    font-family: 'Jameel Noori Nastaleeq', 'Noto Nastaliq Urdu', Tahoma, Arial, sans-serif;
    gap: 16px;
}
.mcard-footer-logo {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}
.mcard-logo-img { height: 40px; max-width: 100px; object-fit: contain; }
.mcard-org-name { color: #1e293b; font-weight: 700; font-size: 0.9rem; }
.mcard-footer-center {
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px 12px;
}
.mcard-ref { font-weight: 600; }
.mcard-footer-right {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}
.mcard-leader-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
}
.mcard-leader-img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #e2e8f0;
}
.mcard-leader-name {
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}
.mcard-year { font-weight: 600; font-size: 0.85rem; }

/* Membership card - mobile view */
@media (max-width: 575.98px) {
    .membership-card-wrapper { padding: 0 0.5rem; }
    .mcard-body { padding: 20px 16px; }
    .mcard-body-inner {
        flex-direction: column !important;
        align-items: center;
        gap: 20px;
    }
    .mcard-photo-wrap {
        margin: 0 auto;
    }
    .mcard-details {
        width: 100%;
        text-align: center;
    }
    .mcard-name-block { text-align: center; }
    .mcard-info-grid {
        max-width: 100%;
        margin: 0 auto;
    }
    .mcard-footer {
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px;
        padding: 12px 16px;
    }
    .mcard-footer-logo,
    .mcard-footer-center,
    .mcard-footer-right {
        justify-content: center;
    }
}

/* --- Print Styles --- */
@media print {
    .member-card-section .card-actions, .card, nav, aside, .alert, footer { display: none !important; }
    .membership-card-wrapper { display: flex !important; }
    .membership-card-interactive { max-width: 100% !important; box-shadow: none !important; transform: none !important; }
    .landing-header, .footer-landing, .navbar, .btn, .qurbani-receipt .btn { display: none !important; }
    /* Hide hero on all pages when printing */
    .hero-section, section.hero-section { display: none !important; visibility: hidden !important; }
    .receipt-card { box-shadow: none !important; border: 1px solid #ddd !important; }
    body { padding: 0 !important; }
    /* Receipt: show card and content when printing */
    .qurbani-receipt .receipt-card,
    .qurbani-receipt .card { display: block !important; visibility: visible !important; }
    .qurbani-receipt .alert { display: block !important; visibility: visible !important; }
}

/* --- Login Page --- */
.login-page {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 50%, #084298 100%);
    background-attachment: fixed;
}
.login-container {
    width: 100%;
    max-width: 420px;
}
.login-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    overflow: hidden;
}
.login-header {
    background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);
    color: #fff;
    padding: 2rem;
    text-align: center;
}
.login-logo {
    width: 64px;
    height: 64px;
    margin: 0 auto 1rem;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
}
.login-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 0.25rem;
}
.login-subtitle {
    font-size: 0.9rem;
    opacity: 0.9;
    margin: 0;
}
.login-body {
    padding: 2rem;
}
.login-form .form-control {
    border-radius: 10px;
    border: 1px solid #e2e8f0;
}
.login-form .form-control:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.15);
}
.login-form .btn-primary {
    border-radius: 10px;
    font-weight: 600;
    padding: 0.75rem 1rem;
}

/* --- Membership registration form - larger inputs for readable text --- */
.member-register .form-control,
.member-register .form-select {
    font-size: 1.0625rem;
    padding: 0.625rem 0.75rem;
    min-height: 46px;
    line-height: 1.5;
}
.member-register .form-label {
    font-size: 0.95rem;
}
