@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&display=swap');

/* css/landing.css - Luxury Estate Landing & Authentication Styles */

:root {
    --brand-primary: #3b82f6;
    --brand-primary-hover: #2563eb;
    --brand-dark: #0b0f19;
    --brand-dark-surface: #111827;
    --brand-glass: rgba(17, 24, 39, 0.75);
    --brand-border: rgba(255, 255, 255, 0.1);
    --brand-text-muted: #94a3b8;
    --brand-resident: #38bdf8;
    --brand-staff: #10b981;
    --brand-admin: #f59e0b;
}

body.landing-page, 
body.landing-page h1, body.landing-page h2, body.landing-page h3, body.landing-page h4, body.landing-page h5, body.landing-page h6,
body.landing-page p, body.landing-page a, body.landing-page span, body.landing-page div, body.landing-page label,
button, input, select, textarea {
    font-family: 'Outfit', sans-serif !important;
}

body.landing-page .fa, body.landing-page .fas, body.landing-page .far, body.landing-page .fa-solid, body.landing-page .fa-regular, body.landing-page .fa-brands,
body.landing-page [class^="fa-"], body.landing-page [class*=" fa-"],
body.landing-page .fa::before, body.landing-page .fas::before, body.landing-page .far::before, body.landing-page .fa-solid::before, body.landing-page .fa-regular::before, body.landing-page .fa-brands::before,
body.landing-page [class^="fa-"]::before, body.landing-page [class*=" fa-"]::before {
    font-family: "Font Awesome 6 Free", "Font Awesome 6 Brands", "FontAwesome" !important;
    font-style: normal;
}

body.landing-page {
    background-color: var(--brand-dark) !important;
    color: #f8fafc;
    overflow-x: hidden;
    margin: 0;
    padding: 0 !important;
}

/* Glassmorphic Navbar */
.landing-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1rem 2rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    background: rgba(11, 15, 25, 0.7);
    border-bottom: 1px solid var(--brand-border);
}

.landing-nav .nav-container {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: #ffffff;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1.35rem;
    letter-spacing: -0.02em;
}

.nav-brand i {
    color: var(--brand-primary);
    font-size: 1.5rem;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links a {
    color: #cbd5e1;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.nav-links a:hover {
    color: #ffffff;
}

.nav-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, var(--brand-primary) 0%, #2563eb 100%);
    color: #ffffff !important;
    padding: 0.6rem 1.4rem;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(59, 130, 246, 0.35);
    transition: all 0.25s ease;
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.5);
}

/* Hero Section with Image Blend */
.hero-section {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8rem 2rem 5rem;
    background-image: 
        linear-gradient(180deg, rgba(11, 15, 25, 0.55) 0%, rgba(11, 15, 25, 0.85) 70%, #0b0f19 100%),
        radial-gradient(circle at 50% 30%, rgba(59, 130, 246, 0.2) 0%, transparent 60%),
        url('../images/hero_estate.jpg');
    background-size: cover;
    background-position: center 35%;
    background-repeat: no-repeat;
    overflow: hidden;
}

.hero-content {
    max-width: 960px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    border-radius: 9999px;
    background: rgba(59, 130, 246, 0.15);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: #93c5fd;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(8px);
}

.hero-badge i {
    color: #60a5fa;
}

.hero-title {
    font-family: 'Outfit', sans-serif;
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
    background: linear-gradient(180deg, #ffffff 30%, #cbd5e1 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.25rem;
    line-height: 1.6;
    color: #94a3b8;
    max-width: 720px;
    margin: 0 auto 2.5rem;
}

.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-hero-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: #ffffff;
    padding: 0.9rem 2rem;
    border-radius: 0.75rem;
    font-weight: 600;
    font-size: 1.05rem;
    text-decoration: none;
    box-shadow: 0 10px 25px -5px rgba(59, 130, 246, 0.5);
    transition: all 0.25s ease;
}

.btn-hero-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px -5px rgba(59, 130, 246, 0.65);
    color: #ffffff;
}

.btn-hero-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: rgba(255, 255, 255, 0.08);
    color: #f8fafc;
    padding: 0.9rem 2rem;
    border-radius: 0.75rem;
    font-weight: 600;
    font-size: 1.05rem;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
    transition: all 0.25s ease;
}

.btn-hero-secondary:hover {
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
    transform: translateY(-2px);
}

/* Quick Estate Stats Strip */
.estate-stats-strip {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 3.5rem;
    padding-top: 2.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-family: 'Outfit', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: #ffffff;
}

.stat-label {
    font-size: 0.85rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 0.25rem;
}

/* Portal Selection Section */
.portals-section {
    padding: 6rem 2rem;
    max-width: 1480px;
    margin: 0 auto;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--brand-primary);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.75rem;
}

.section-title {
    font-family: 'Outfit', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #94a3b8;
    max-width: 600px;
    margin: 0 auto;
}

.portals-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}

.portal-card {
    background: var(--brand-dark-surface);
    border: 1px solid var(--brand-border);
    border-radius: 1.25rem;
    padding: 2.25rem 1.4rem;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    backdrop-filter: blur(12px);
}

.portal-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: transparent;
    transition: background 0.3s ease;
}

.portal-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 35px -10px rgba(0, 0, 0, 0.6);
}

/* Card Role Theming */
.portal-card.resident-card::before { background: linear-gradient(90deg, #38bdf8, #2563eb); }
.portal-card.staff-card::before { background: linear-gradient(90deg, #10b981, #059669); }
.portal-card.zone-card::before { background: linear-gradient(90deg, #c084fc, #9333ea); }
.portal-card.admin-card::before { background: linear-gradient(90deg, #f59e0b, #d97706); }

.portal-card.resident-card:hover { border-color: rgba(56, 189, 248, 0.4); }
.portal-card.staff-card:hover { border-color: rgba(16, 185, 129, 0.4); }
.portal-card.zone-card:hover { border-color: rgba(192, 132, 252, 0.4); }
.portal-card.admin-card:hover { border-color: rgba(245, 158, 11, 0.4); }

.portal-icon-wrapper {
    width: 56px;
    height: 56px;
    border-radius: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
}

.portal-card.resident-card .portal-icon-wrapper {
    background: rgba(56, 189, 248, 0.12);
    color: #38bdf8;
    border: 1px solid rgba(56, 189, 248, 0.25);
}

.portal-card.staff-card .portal-icon-wrapper {
    background: rgba(16, 185, 129, 0.12);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.25);
}

.portal-card.zone-card .portal-icon-wrapper {
    background: rgba(168, 85, 247, 0.12);
    color: #c084fc;
    border: 1px solid rgba(168, 85, 247, 0.25);
}

.portal-card.admin-card .portal-icon-wrapper {
    background: rgba(245, 158, 11, 0.12);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.25);
}

.portal-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    margin-bottom: 0.75rem;
    align-self: flex-start;
}

.portal-card.resident-card .portal-tag { background: rgba(56, 189, 248, 0.15); color: #38bdf8; }
.portal-card.staff-card .portal-tag { background: rgba(16, 185, 129, 0.15); color: #10b981; }
.portal-card.zone-card .portal-tag { background: rgba(168, 85, 247, 0.15); color: #c084fc; }
.portal-card.admin-card .portal-tag { background: rgba(245, 158, 11, 0.15); color: #f59e0b; }

.portal-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.35rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.65rem;
}

.portal-desc {
    color: #94a3b8;
    font-size: 0.88rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
    min-height: 4.8rem;
}

.portal-features {
    list-style: none;
    padding: 0;
    margin: 0 0 1.75rem;
    flex-grow: 1;
}

.portal-features li {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    color: #cbd5e1;
    font-size: 0.85rem;
    line-height: 1.4;
    margin-bottom: 0.65rem;
}

.portal-features li i {
    font-size: 0.82rem;
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.portal-card.resident-card .portal-features li i { color: #38bdf8; }
.portal-card.staff-card .portal-features li i { color: #10b981; }
.portal-card.zone-card .portal-features li i { color: #c084fc; }
.portal-card.admin-card .portal-features li i { color: #f59e0b; }

.portal-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem 1.25rem;
    border-radius: 0.75rem;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.25s ease;
    white-space: nowrap;
}

.portal-card.resident-card .portal-btn {
    background: rgba(56, 189, 248, 0.15);
    color: #38bdf8;
    border: 1px solid rgba(56, 189, 248, 0.3);
}
.portal-card.resident-card .portal-btn:hover {
    background: #38bdf8;
    color: #0b0f19;
}

.portal-card.staff-card .portal-btn {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
}
.portal-card.staff-card .portal-btn:hover {
    background: #10b981;
    color: #0b0f19;
}

.portal-card.zone-card .portal-btn {
    background: rgba(168, 85, 247, 0.15);
    color: #c084fc;
    border: 1px solid rgba(168, 85, 247, 0.3);
}
.portal-card.zone-card .portal-btn:hover {
    background: #9333ea;
    color: #ffffff;
}

.portal-card.admin-card .portal-btn {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.3);
}
.portal-card.admin-card .portal-btn:hover {
    background: #f59e0b;
    color: #0b0f19;
}

/* Features Showcase Section */
.features-section {
    padding: 6rem 2rem;
    background: rgba(15, 23, 42, 0.6);
    border-top: 1px solid var(--brand-border);
    border-bottom: 1px solid var(--brand-border);
}

.features-grid {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.feature-box {
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 1rem;
    padding: 2rem;
    transition: transform 0.25s ease;
}

.feature-box:hover {
    transform: translateY(-4px);
    background: rgba(30, 41, 59, 0.8);
}

.feature-icon {
    font-size: 2rem;
    color: var(--brand-primary);
    margin-bottom: 1.25rem;
}

.feature-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.feature-text {
    color: #94a3b8;
    font-size: 0.92rem;
    line-height: 1.6;
}

/* Governance & Rules Section */
.rules-section {
    padding: 5rem 2rem;
    max-width: 1100px;
    margin: 0 auto;
}

.rules-card {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.7) 0%, rgba(15, 23, 42, 0.9) 100%);
    border: 1px solid var(--brand-border);
    border-radius: 1.25rem;
    padding: 2.5rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
}

.rules-col h4 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: #f8fafc;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.rules-content {
    color: #94a3b8;
    font-size: 0.92rem;
    line-height: 1.6;
    white-space: pre-line;
}

/* Footer */
.landing-footer {
    background: #070a11;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 4rem 2rem 2rem;
}

.footer-container {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.4rem;
    color: #ffffff;
    margin-bottom: 0.75rem;
}

.footer-brand p {
    color: #64748b;
    font-size: 0.9rem;
    line-height: 1.6;
    max-width: 320px;
}

.footer-col h5 {
    color: #f8fafc;
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col ul li {
    margin-bottom: 0.6rem;
}

.footer-col ul a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.footer-col ul a:hover {
    color: #ffffff;
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    color: #94a3b8;
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
}

.footer-contact-item i {
    color: var(--brand-primary);
    margin-top: 0.25rem;
}

.footer-bottom {
    max-width: 1280px;
    margin: 0 auto;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #64748b;
    font-size: 0.85rem;
    flex-wrap: wrap;
    gap: 1rem;
}

/* ==========================================================================
   Dedicated Login Pages Styling (Resident, Staff, Admin)
   ========================================================================== */

.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    position: relative;
    background-size: cover;
    background-position: center;
}

.auth-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(11, 15, 25, 0.92) 0%, rgba(15, 23, 42, 0.88) 100%);
    backdrop-filter: blur(8px);
}

.auth-card {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 460px;
    background: rgba(30, 41, 59, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 1.5rem;
    padding: 2.75rem 2.5rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(16px);
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.85rem;
    border-radius: 9999px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.auth-badge.badge-resident { background: rgba(56, 189, 248, 0.15); color: #38bdf8; border: 1px solid rgba(56, 189, 248, 0.3); }
.auth-badge.badge-staff { background: rgba(16, 185, 129, 0.15); color: #10b981; border: 1px solid rgba(16, 185, 129, 0.3); }
.auth-badge.badge-admin { background: rgba(245, 158, 11, 0.15); color: #f59e0b; border: 1px solid rgba(245, 158, 11, 0.3); }
.auth-badge.badge-zone { background: rgba(192, 132, 252, 0.15); color: #c084fc; border: 1px solid rgba(192, 132, 252, 0.3); }

.auth-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.85rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.auth-subtitle {
    color: #94a3b8;
    font-size: 0.95rem;
}

/* Auth Role Pills Switcher */
.role-pills {
    display: flex;
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem;
    padding: 0.35rem;
    margin-top: 1.5rem;
    margin-bottom: 1.75rem;
    gap: 0.25rem;
}

.role-pill {
    flex: 1;
    text-align: center;
    padding: 0.55rem 0.35rem;
    border-radius: 0.5rem;
    color: #94a3b8;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    border: 1px solid transparent;
    background: transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

.role-pill:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.06);
}

.role-pill.active {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.role-pill.active.pill-admin {
    background: rgba(245, 158, 11, 0.18);
    color: #f59e0b;
    border-color: rgba(245, 158, 11, 0.35);
}

.role-pill.active.pill-zone {
    background: rgba(192, 132, 252, 0.18);
    color: #c084fc;
    border-color: rgba(192, 132, 252, 0.35);
}

.role-pill.active.pill-resident {
    background: rgba(56, 189, 248, 0.18);
    color: #38bdf8;
    border-color: rgba(56, 189, 248, 0.35);
}

.role-pill.active.pill-staff {
    background: rgba(16, 185, 129, 0.18);
    color: #10b981;
    border-color: rgba(16, 185, 129, 0.35);
}

.auth-input-group {
    margin-bottom: 1.25rem;
}

.auth-input-group label {
    display: block;
    color: #cbd5e1;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.auth-input-wrapper {
    position: relative;
}

.auth-input-wrapper i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
    font-size: 1rem;
}

.auth-input {
    width: 100%;
    padding: 0.85rem 1rem 0.85rem 2.75rem;
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 0.75rem;
    color: #f8fafc;
    font-size: 0.95rem;
    outline: none;
    box-sizing: border-box;
    transition: all 0.2s ease;
}

.auth-input:focus {
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25);
    background: rgba(15, 23, 42, 0.95);
}

.auth-btn {
    width: 100%;
    padding: 0.9rem;
    border-radius: 0.75rem;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    margin-top: 0.5rem;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.auth-btn-resident {
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(2, 132, 199, 0.4);
}
.auth-btn-resident:hover {
    background: linear-gradient(135deg, #0369a1 0%, #075985 100%);
    transform: translateY(-1px);
}

.auth-btn-staff {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(5, 150, 105, 0.4);
}
.auth-btn-staff:hover {
    background: linear-gradient(135deg, #047857 0%, #065f46 100%);
    transform: translateY(-1px);
}

.auth-btn-admin {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.4);
}
.auth-btn-admin:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
    transform: translateY(-1px);
}

.auth-btn-zone {
    background: linear-gradient(135deg, #a855f7 0%, #7e22ce 100%);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(168, 85, 247, 0.4);
}
.auth-btn-zone:hover {
    background: linear-gradient(135deg, #9333ea 0%, #6b21a8 100%);
    transform: translateY(-1px);
}

.auth-switcher {
    margin-top: 1.75rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
    font-size: 0.88rem;
    color: #94a3b8;
}

.auth-switcher a {
    color: #38bdf8;
    text-decoration: none;
    font-weight: 600;
}

.auth-switcher a:hover {
    text-decoration: underline;
}

.auth-back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
    transition: color 0.2s;
}

.auth-back-link:hover {
    color: #ffffff;
}

.auth-error {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.35);
    color: #fca5a5;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.88rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* ==========================================================================
   MATURE EXECUTIVE MOBILE SHOWCASE & MULTI-DEVICE RESPONSIVE SUITE
   Tailored across all phone viewports (320px - 768px+)
   ========================================================================== */

/* Keyframe for Active Live Pulse Indicator */
@keyframes livePulseGlow {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 7px rgba(16, 185, 129, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

.mobile-hero-wrapper {
    width: 100%;
    max-width: 540px;
    margin: 0 auto;
    padding: 0.5rem 0.25rem 1.5rem;
    box-sizing: border-box;
}

.mobile-hero-showcase {
    position: relative;
    background: linear-gradient(165deg, rgba(17, 24, 39, 0.92) 0%, rgba(11, 15, 25, 0.98) 100%);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 26px;
    padding: 1.85rem 1.4rem;
    box-shadow: 0 24px 50px -12px rgba(0, 0, 0, 0.75), inset 0 1px 0 0 rgba(255, 255, 255, 0.15);
    overflow: hidden;
    text-align: left;
}

/* Subtle Ambient Glow inside Card */
.mobile-hero-showcase::before {
    content: '';
    position: absolute;
    top: -40px;
    right: -40px;
    width: 160px;
    height: 160px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.22) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

.mobile-hero-showcase > * {
    position: relative;
    z-index: 1;
}

/* 1. Verified Estate Badge */
.mobile-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.38rem 0.85rem;
    border-radius: 9999px;
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.28);
    color: #34d399;
    font-size: 0.76rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    margin-bottom: 1.15rem;
}

.live-pulse-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #10b981;
    display: inline-block;
    animation: livePulseGlow 2s infinite;
}

/* 2. Mature Headline */
.mobile-hero-title {
    font-family: 'Outfit', sans-serif !important;
    font-size: clamp(1.45rem, 5.8vw, 2.05rem);
    font-weight: 800;
    line-height: 1.22;
    letter-spacing: -0.025em;
    margin-bottom: 0.75rem;
    background: linear-gradient(180deg, #ffffff 45%, #cbd5e1 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* 3. Mature Subtitle */
.mobile-hero-subtitle {
    font-size: 0.88rem;
    line-height: 1.55;
    color: #94a3b8;
    margin-bottom: 1.35rem;
}

.mobile-hero-subtitle strong {
    color: #f1f5f9;
}

/* 4. Action Buttons */
.mobile-hero-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.mobile-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: #ffffff !important;
    padding: 0.82rem 1.35rem;
    border-radius: 14px;
    font-weight: 600;
    font-size: 0.92rem;
    text-decoration: none;
    flex: 1;
    min-width: 140px;
    box-shadow: 0 8px 20px -4px rgba(59, 130, 246, 0.45);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.mobile-btn-primary:active {
    transform: scale(0.97);
}

.mobile-btn-glass {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.06);
    color: #f1f5f9 !important;
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 0.82rem 1.25rem;
    border-radius: 14px;
    font-weight: 600;
    font-size: 0.92rem;
    text-decoration: none;
    flex: 1;
    min-width: 130px;
    backdrop-filter: blur(8px);
    transition: background 0.2s ease, transform 0.2s ease;
}

.mobile-btn-glass:active {
    transform: scale(0.97);
    background: rgba(255, 255, 255, 0.12);
}

/* 5. Mobile Micro-Stats Strip (2x2 Grid) */
.mobile-hero-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.65rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.35rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.mobile-stat-chip {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 14px;
    padding: 0.65rem 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.stat-chip-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    flex-shrink: 0;
}

.stat-icon-emerald { background: rgba(16, 185, 129, 0.15); color: #34d399; }
.stat-icon-sky { background: rgba(56, 189, 248, 0.15); color: #38bdf8; }
.stat-icon-indigo { background: rgba(99, 102, 241, 0.15); color: #818cf8; }
.stat-icon-amber { background: rgba(245, 158, 11, 0.15); color: #fbbf24; }

.stat-chip-text {
    display: flex;
    flex-direction: column;
}

.stat-chip-text strong {
    font-size: 0.95rem;
    font-weight: 700;
    color: #f8fafc;
    line-height: 1.15;
}

.stat-chip-text span {
    font-size: 0.68rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-top: 1px;
}

/* 6. Direct Portal Quick Launcher for Mobile */
.mobile-portal-launcher {
    text-align: left;
}

.launcher-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #94a3b8;
    margin-bottom: 0.75rem;
}

.launcher-grid {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.launcher-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0.95rem;
    border-radius: 14px;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.2s ease;
}

.launcher-item:hover, .launcher-item:active {
    background: rgba(255, 255, 255, 0.08);
    transform: translateX(3px);
}

.launcher-resident { border-left: 3.5px solid #38bdf8 !important; }
.launcher-resident .launcher-icon { background: rgba(56, 189, 248, 0.15); color: #38bdf8; }

.launcher-staff { border-left: 3.5px solid #10b981 !important; }
.launcher-staff .launcher-icon { background: rgba(16, 185, 129, 0.15); color: #10b981; }

.launcher-zone { border-left: 3.5px solid #c084fc !important; }
.launcher-zone .launcher-icon { background: rgba(168, 85, 247, 0.15); color: #c084fc; }

.launcher-admin { border-left: 3.5px solid #f59e0b !important; }
.launcher-admin .launcher-icon { background: rgba(245, 158, 11, 0.15); color: #f59e0b; }

.launcher-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.launcher-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1;
}

.launcher-name {
    font-size: 0.92rem;
    font-weight: 700;
    color: #f8fafc;
    line-height: 1.2;
}

.launcher-sub {
    font-size: 0.74rem;
    color: #94a3b8;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.launcher-arrow {
    font-size: 0.75rem;
    color: #64748b;
    margin-left: auto;
    flex-shrink: 0;
}

/* ==========================================================================
   FINE-TUNED RESPONSIVE ADAPTATIONS (Across different phone screen sizes)
   ========================================================================== */

/* 1. Large Screen to Laptop (1080px) */
@media (max-width: 1080px) {
    .portals-grid { grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
}

/* 2. Tablet & Large Mobile (992px) */
@media (max-width: 992px) {
    .hero-section {
        padding: 5.5rem 1.25rem 3.5rem;
        min-height: auto;
    }
    .hero-title { font-size: 2.75rem; }
    .rules-card { grid-template-columns: 1fr; gap: 1.5rem; }
    .footer-container { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

/* 3. Phablets & Small Tablets (576px - 768px) */
@media (min-width: 576px) and (max-width: 768px) {
    .portals-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }
}

/* 4. General Mobile (<= 768px) */
@media (max-width: 768px) {
    .landing-nav {
        padding: 0.75rem 1rem;
    }
    .landing-nav .nav-links {
        display: none;
    }
    .nav-brand {
        font-size: 1.15rem;
        gap: 0.5rem;
    }
    .nav-brand span {
        max-width: 170px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .nav-cta {
        padding: 0.48rem 0.95rem;
        font-size: 0.82rem;
    }
    .hero-section {
        padding: 5rem 0.75rem 2.5rem;
    }
    .portals-section {
        padding: 3.5rem 1rem;
    }
    .section-title {
        font-size: 1.85rem;
    }
    .section-subtitle {
        font-size: 0.92rem;
    }
    .portal-card {
        padding: 1.5rem 1.2rem;
        border-radius: 1.1rem;
    }
    .portal-desc {
        min-height: auto;
        margin-bottom: 1.1rem;
        font-size: 0.85rem;
    }
    .portal-features {
        margin-bottom: 1.25rem;
    }
    .features-section {
        padding: 3.5rem 1rem;
    }
    .feature-box {
        padding: 1.5rem 1.2rem;
    }
    .footer-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 0.75rem;
        text-align: center;
    }
}

/* 5. Standard Mobile Viewports (375px - 480px, e.g. iPhone 13/14/15/16, Galaxy S22/S23) */
@media (max-width: 480px) {
    .hero-section {
        padding: 4.75rem 0.5rem 2rem;
    }
    .portals-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    .mobile-hero-showcase {
        padding: 1.5rem 1.15rem;
        border-radius: 22px;
    }
    .mobile-hero-title {
        font-size: 1.55rem;
    }
    .mobile-stat-chip {
        padding: 0.55rem 0.65rem;
        gap: 0.5rem;
    }
    .stat-chip-icon {
        width: 30px;
        height: 30px;
        font-size: 0.85rem;
    }
    .stat-chip-text strong {
        font-size: 0.88rem;
    }
    .stat-chip-text span {
        font-size: 0.65rem;
    }
    .launcher-item {
        padding: 0.7rem 0.85rem;
    }
    .launcher-icon {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }
    .launcher-name {
        font-size: 0.88rem;
    }
}

/* 6. Ultra-Compact Phones (<= 360px, e.g. iPhone SE 1st Gen, Galaxy A-series small, KaiOS) */
@media (max-width: 360px) {
    .nav-brand span {
        max-width: 120px;
        font-size: 1rem;
    }
    .nav-cta {
        padding: 0.42rem 0.75rem;
        font-size: 0.75rem;
    }
    .mobile-hero-showcase {
        padding: 1.25rem 0.85rem;
        border-radius: 18px;
    }
    .mobile-hero-badge {
        font-size: 0.7rem;
        padding: 0.3rem 0.65rem;
    }
    .mobile-hero-title {
        font-size: 1.35rem;
    }
    .mobile-hero-subtitle {
        font-size: 0.82rem;
    }
    .mobile-hero-actions {
        flex-direction: column;
        gap: 0.5rem;
    }
    .mobile-btn-primary, .mobile-btn-glass {
        width: 100%;
        padding: 0.75rem 1rem;
        font-size: 0.85rem;
    }
    .mobile-hero-stats {
        grid-template-columns: 1fr;
        gap: 0.45rem;
    }
    .launcher-sub {
        display: none;
    }
}

