/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
    /* Base - Light Mode Default */
    --primary: #0ea5e9;
    /* Sky 500 (Light Blue) */
    --primary-dark: #0284c7;
    /* Sky 600 */
    --accent: #38bdf8;
    /* Sky 400 */

    --bg-body: #ffffff;
    --bg-card: #f8fafc;
    /* Slate 50 */
    --bg-glass: rgba(255, 255, 255, 0.85);
    /* More opaque for light mode */
    --border-color: #e2e8f0;
    /* Slate 200 */

    --text-main: #0f172a;
    /* Slate 900 (Blackish) */
    --text-muted: #64748b;
    /* Slate 500 */
    --text-inverse: #ffffff;

    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);

    --font-main: 'Outfit', sans-serif;
    --radius-lg: 16px;
    --radius-md: 8px;
    --transition: 0.3s ease;
}

/* Dark Mode Overrides */
[data-theme="dark"] {
    --bg-body: #020617;
    /* Slate 950 */
    --bg-card: #0f172a;
    /* Slate 900 */
    --bg-glass: rgba(15, 23, 42, 0.8);
    --border-color: #1e293b;
    /* Slate 800 */

    --text-main: #f8fafc;
    /* Slate 50 */
    --text-muted: #94a3b8;
    /* Slate 400 */
    --text-inverse: #ffffff;

    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.5);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.5);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.5);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.3s, color 0.3s;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* Utilities */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 10px 24px;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 0.95rem;
    font-family: inherit;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 12px -4px var(--primary);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 16px -4px var(--primary);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-main);
}

.btn-outline:hover {
    background: var(--bg-card);
    border-color: var(--text-muted);
}

/* Header */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: var(--bg-glass);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
    transition: background-color 0.3s, border-color 0.3s;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo span {
    color: var(--primary);
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.95rem;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Theme Toggle */
.theme-toggle {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle:hover {
    color: var(--primary);
    background: var(--bg-card);
}

/* Language Selector */
.lang-selector {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    padding: 0.4rem 0.8rem;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    cursor: pointer;
    font-family: inherit;
    outline: none;
}

/* Checkbox specific to login/register */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-main);
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 12px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    color: var(--text-main);
    outline: none;
    transition: var(--transition);
    font-family: inherit;
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}

/* Hero Section */
.hero {
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/home-hero.png');
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    z-index: -2;
}

.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(8, 15, 30, 0.4) 0%, rgba(8, 15, 30, 0.8) 100%);
    z-index: -1;
}

@keyframes titleReveal {
    0% {
        opacity: 0;
        transform: translateY(50px) scale(0.9);
        filter: blur(10px);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

.hero-title-animate {
    animation: titleReveal 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.hero-delay-animate {
    opacity: 0;
    animation: titleReveal 1s cubic-bezier(0.2, 0.8, 0.2, 1) 0.6s forwards;
}

.hero-content {
    text-align: center;
    max-width: 800px;
    z-index: 1;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: #ffffff;
    letter-spacing: -2px;
}

.hero p {
    font-size: 1.1rem;
    color: #cbd5e1;
    margin-bottom: 2.5rem;
    font-weight: 300;
}

/* Search Box */
.search-container {
    background: rgba(15, 23, 42, 0.65);
    padding: 1rem 1.5rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    gap: 0;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
    flex-wrap: nowrap;
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    align-items: center;
    max-width: 900px;
    margin: 0 auto;
}

.search-input-group {
    flex: 1;
    position: relative;
    padding: 0 1.5rem;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.search-input-group:last-of-type {
    border-right: none;
    padding-right: 1.5rem;
}

.search-input-group i {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.6);
    pointer-events: none;
}

.search-input-group input,
.search-input-group select {
    width: 100%;
    padding: 12px 16px 12px 35px;
    background: transparent;
    border: none;
    color: #ffffff;
    font-family: inherit;
    font-size: 1rem;
    outline: none;
    border-radius: 0;
}

.search-input-group input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.search-input-group select {
    padding-left: 16px;
    cursor: pointer;
}

.search-input-group select option {
    background: var(--bg-card);
    color: var(--text-main);
}

/* Featured Section */
.section {
    padding: 5rem 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: end;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

.section-header p {
    color: var(--text-muted);
}

.listings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

/* Property Card */
.property-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: var(--transition);
    position: relative;
    box-shadow: var(--shadow-sm);
}

.property-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
}

.card-image-wrapper {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.property-card:hover .card-image {
    transform: scale(1.05);
}

.card-tag {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    color: white;
}

.card-price-tag {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    background: var(--primary);
    color: white;
    padding: 6px 14px;
    border-radius: 8px;
    font-weight: 600;
    box-shadow: var(--shadow-md);
}

.card-content {
    padding: 1.5rem;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-location {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid var(--border-color);
    padding-top: 1rem;
    margin-top: 1rem;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.meta-item i {
    color: var(--primary);
}

/* Footer */
footer {
    background: #0f172a;
    /* Navy Blue */
    border-top: 1px solid #1e293b;
    padding: 4rem 0 2rem;
    margin-top: 4rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-col .logo {
    color: #ffffff;
}

.footer-col p {
    color: #94a3b8;
    /* Lighter text for navy bg */
}

.footer-col h3 {
    margin-bottom: 1.5rem;
    color: #ffffff;
    /* White text for navy bg */
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: #94a3b8;
}

.footer-links a:hover {
    color: var(--primary);
}

.copyright {
    text-align: center;
    color: #94a3b8;
    padding-top: 2rem;
    border-top: 1px solid #1e293b;
}

/* Auth Cards (Login/Register) */
.auth-card {
    max-width: 450px;
    margin: 120px auto 4rem;
    background: var(--bg-glass);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(12px);
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-header h2 {
    font-size: 2rem;
    color: var(--text-main);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 0.8s ease forwards;
}

.delay-100 {
    animation-delay: 0.1s;
}

.delay-200 {
    animation-delay: 0.2s;
}

.delay-300 {
    animation-delay: 0.3s;
}

/* Call To Action (CTA) Section */
.cta-section {
    background-color: #e5e7eb;
    background-image: url('data:image/svg+xml,%3Csvg width="100" height="100" viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"%3E%3Cg fill="%239ca3af" fill-opacity="0.2" fill-rule="evenodd"%3E%3Ccircle cx="3" cy="3" r="3"/%3E%3Ccircle cx="13" cy="13" r="3"/%3E%3Ccircle cx="53" cy="53" r="3"/%3E%3Ccircle cx="63" cy="63" r="3"/%3E%3C/g%3E%3C/svg%3E'), linear-gradient(135deg, #f3f4f6 0%, #d1d5db 100%);
    position: relative;
    border-radius: var(--radius-lg);
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.05);
}

.cta-title {
    color: #111827;
}

.cta-text {
    color: #4b5563;
}

[data-theme="dark"] .cta-section {
    background-color: #1e293b;
    background-image: url('data:image/svg+xml,%3Csvg width="100" height="100" viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"%3E%3Cg fill="%23334155" fill-opacity="0.2" fill-rule="evenodd"%3E%3Ccircle cx="3" cy="3" r="3"/%3E%3Ccircle cx="13" cy="13" r="3"/%3E%3Ccircle cx="53" cy="53" r="3"/%3E%3Ccircle cx="63" cy="63" r="3"/%3E%3C/g%3E%3C/svg%3E'), linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border-color);
}

[data-theme="dark"] .cta-title {
    color: #f8fafc;
}

[data-theme="dark"] .cta-text {
    color: #94a3b8;
}

/* Why Choose Us Section */
.why-choose-section {
    position: relative;
    background-color: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 2rem 2rem;
    margin: 4rem auto;
    border: 1px solid var(--border-color);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.why-bg-texture {
    position: absolute;
    inset: 0;
    opacity: 0.4;
    z-index: 1;
    pointer-events: none;
    /* Light mode texture */
    background-image: url('data:image/svg+xml,%3Csvg width="40" height="40" viewBox="0 0 40 40" xmlns="http://www.w3.org/2000/svg"%3E%3Ccircle cx="2" cy="2" r="2" fill="%23cbd5e1" fill-opacity="0.5"/%3E%3C/svg%3E');
}

[data-theme="dark"] .why-bg-texture {
    opacity: 0.15;
    /* Dark mode texture */
    background-image: url('data:image/svg+xml,%3Csvg width="40" height="40" viewBox="0 0 40 40" xmlns="http://www.w3.org/2000/svg"%3E%3Ccircle cx="2" cy="2" r="2" fill="%23475569" fill-opacity="1"/%3E%3C/svg%3E');
}

.why-card {
    text-align: center;
    padding: 2.5rem 2rem;
    background: var(--bg-body);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.why-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transform: scaleX(0);
    transition: transform 0.4s ease;
    transform-origin: left;
}

.why-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.why-card:hover::before {
    transform: scaleX(1);
}

.why-icon-wrapper {
    width: 80px;
    height: 80px;
    background: rgba(14, 165, 233, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    position: relative;
    transition: all 0.4s ease;
}

.why-card:hover .why-icon-wrapper {
    background: var(--primary);
}

.why-icon {
    font-size: 2.5rem;
    color: var(--primary);
    transition: color 0.4s ease;
}

.why-card:hover .why-icon {
    color: #ffffff;
    animation: iconBounce 1s ease infinite alternate;
}

@keyframes iconBounce {
    0% {
        transform: translateY(0) scale(1);
    }

    100% {
        transform: translateY(-8px) scale(1.1);
    }
}

/* Dashboard Layout & Sidebar */
.user-layout {
    display: flex;
    min-height: 100vh;
    padding-top: 80px;
    position: relative;
    overflow-x: hidden;
}

.floating-shapes-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    background: radial-gradient(circle at top right, rgba(14, 165, 233, 0.05), transparent 40%),
        radial-gradient(circle at bottom left, rgba(56, 189, 248, 0.05), transparent 40%);
}

.floating-shape {
    position: absolute;
    background: rgba(14, 165, 233, 0.1);
    border-radius: 50%;
    animation: floatShapeAnim 15s infinite alternate ease-in-out;
}

@keyframes floatShapeAnim {
    0% {
        transform: translateY(0) rotate(0deg) scale(1);
    }

    100% {
        transform: translateY(-100px) rotate(360deg) scale(1.1);
    }
}

.user-sidebar {
    width: 280px;
    height: calc(100vh - 80px);
    position: fixed;
    transition: transform 0.3s ease;
    z-index: 99;
}

.user-content {
    flex: 1;
    margin-left: 280px;
    padding: 3rem;
    position: relative;
    z-index: 1;
}

.mobile-sidebar-toggle {
    display: none;
    position: fixed;
    top: 90px;
    right: 20px;
    background: var(--primary);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    font-size: 1.5rem;
    z-index: 100;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    cursor: pointer;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 1rem 2rem;
    color: var(--text-muted);
    font-weight: 500;
    border-left: 3px solid transparent;
    transition: all 0.3s ease;
}

.sidebar-link i {
    width: 20px;
    text-align: center;
    font-size: 1.1rem;
}

.sidebar-link:hover,
.sidebar-link.active {
    color: var(--primary);
    border-left-color: var(--primary);
    background: rgba(14, 165, 233, 0.05);
}

.profile-img-container img {
    transition: transform 0.5s ease;
}

.profile-img-container:hover img {
    transform: scale(1.1);
}

.animate-welcome-text {
    background: linear-gradient(45deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: textGlow 3s infinite alternate;
}

@keyframes textGlow {
    0% {
        filter: drop-shadow(0 0 2px rgba(14, 165, 233, 0.2));
    }

    100% {
        filter: drop-shadow(0 0 10px rgba(14, 165, 233, 0.6));
    }
}

/* Responsive */
.mobile-menu-btn {
    display: none;
}

.mobile-only {
    display: none !important;
}

@media (max-width: 992px) {
    .desktop-only {
        display: none !important;
    }

    .mobile-only {
        display: block !important;
    }

    nav {
        position: relative;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--bg-card);
        flex-direction: column;
        align-items: center;
        padding: 0;
        margin-top: 15px;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
        border: 1px solid var(--border-color);
        border-radius: var(--radius-md);
        display: none;
        z-index: 999;
    }

    [data-theme="dark"] .nav-links {
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.6);
        background: var(--bg-glass);
        backdrop-filter: blur(16px);
    }

    .nav-links.active {
        display: flex;
        animation: dropDown 0.3s ease-out forwards;
    }

    @keyframes dropDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .nav-links li {
        width: 100%;
        margin-bottom: 0px;
    }

    .nav-links a {
        display: block;
        padding: 15px 20px;
        width: 100%;
        font-size: 1.1rem;
        border-bottom: 1px solid var(--border-color);
        color: var(--text-main) !important;
        text-align: center;
    }

    .nav-links li:last-child a {
        border-bottom: none;
    }

    .nav-links a:hover {
        background: rgba(14, 165, 233, 0.1);
        color: var(--primary) !important;
    }

    .mobile-menu-btn {
        display: block !important;
    }

    .nav-actions {
        gap: 0.5rem;
    }

    .nav-actions .btn {
        padding: 8px 14px;
        font-size: 0.85rem;
    }

    .user-sidebar {
        transform: translateX(-100%);
        box-shadow: 4px 0 15px rgba(0, 0, 0, 0.1);
    }

    .user-sidebar.active {
        transform: translateX(0);
    }

    .user-content {
        margin-left: 0;
        padding: 1.5rem;
        width: 100%;
        max-width: 100vw;
    }

    .mobile-sidebar-toggle {
        display: block;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .search-container {
        flex-direction: column;
    }

    /* User Dashboard Mobile Responsive */
    .user-content {
        padding: 5rem 1rem 1rem 1rem !important;
        /* Space for the header */
        width: 100% !important;
        box-sizing: border-box;
    }

    .user-content>div {
        max-width: 100% !important;
        overflow-x: hidden;
    }

    .form-grid-2,
    .form-grid-3 {
        display: flex !important;
        flex-direction: column !important;
        gap: 1.5rem !important;
    }

    .user-dashboard-form {
        padding: 1.5rem !important;
    }

    .user-dashboard-form input,
    .user-dashboard-form select,
    .user-dashboard-form textarea {
        width: 100% !important;
        box-sizing: border-box;
    }

    .ad-card-item {
        flex-direction: column !important;
    }

    .ad-card-img {
        width: 100% !important;
        height: 200px !important;
    }

    .ad-card-content {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }
}

/* Auth Page Wrapper layout */
.auth-page-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    width: 100%;
    padding: 120px 20px 80px;
    /* Top padding clears header, bottom clears footer */
    margin-bottom: -4rem;
    /* Counteracts the footer margin-top */
    z-index: 0;
}

.auth-page-wrapper::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('../images/b7.jpeg') center/cover no-repeat fixed;
    z-index: -2;
    /* Set behind everything */
}

.auth-page-wrapper::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--bg-body);
    opacity: 0.85;
    /* Auto-adjusts with theme's bg-body */
    z-index: -1;
    transition: background-color 0.3s;
}

[data-theme="dark"] .auth-page-wrapper::after {
    background: rgba(2, 6, 23, 0.85);
    /* Solid dark overlay */
}

.auth-decorative-shape {
    position: absolute;
    width: 600px;
    height: 600px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.15;
    animation: floatShape 10s infinite alternate ease-in-out;
    z-index: -1;
}

@keyframes floatShape {
    0% {
        transform: translate(-50px, -50px) scale(0.9);
    }

    100% {
        transform: translate(50px, 50px) scale(1.1);
    }
}

.auth-content-panel {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 480px;
    background: var(--bg-glass);
    border: 1px solid rgba(148, 163, 184, 0.2);
    box-shadow: var(--shadow-lg);
    border-radius: 24px;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 3rem 2.5rem;
    margin: 0 auto;
}

.auth-card {
    width: 100%;
    background: transparent;
    padding: 0;
    border: none;
    box-shadow: none;
    margin: 0;
}