/* Base Styles for Auth Pages */
body, html { margin: 0; padding: 0; height: 100%; overflow: hidden; background: var(--base); }

/* Global Background Elements */
.global-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

/* Grid Pattern */
.blueprint-grid {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-size: 40px 40px;
    background-image: linear-gradient(to right, var(--ink) 1px, transparent 1px),
                      linear-gradient(to bottom, var(--ink) 1px, transparent 1px);
    opacity: 0.05;
}

/* Marquee */
.marquee-container {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    opacity: 0.03; 
}
.marquee-line {
    white-space: nowrap;
    font-size: 8rem;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 900;
    text-transform: uppercase;
    color: var(--ink);
    animation: scroll 35s linear infinite;
}
.marquee-line:nth-child(even) {
    animation-direction: reverse;
}
@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Gaussian Blur Orbs for aesthetic */
.blur-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    z-index: 0;
    pointer-events: none;
}
.orb-1 { width: 500px; height: 500px; background: var(--safety); top: -150px; left: -100px; opacity: 0.15; }
.orb-2 { width: 600px; height: 600px; background: var(--ink); bottom: -200px; right: -100px; opacity: 0.08; }

/* Split Screen Container */
.auth-split { 
    position: relative;
    z-index: 10;
    display: grid; 
    grid-template-columns: 1.1fr 1fr; 
    height: 100vh; 
}

/* Left Pane */
.auth-left { 
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 4rem;
}

/* Right Pane */
.auth-right {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: 2rem;
    overflow-y: auto;
}

/* Floating Elements */
.float-card {
    position: absolute;
    background: var(--surface);
    border: 2px solid var(--ink);
    border-radius: 8px; /* Slightly rounded for a modern brutalist feel */
    box-shadow: 4px 4px 0px var(--ink);
    padding: 1rem 1.2rem;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1rem;
    font-weight: 800;
    color: var(--ink);
    z-index: 2;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}
.float-card:hover { transform: translate(-2px, -2px) !important; box-shadow: 6px 6px 0px var(--ink); }
.fc-1 { top: 15%; left: 42%; --rot: 2deg; transform: rotate(var(--rot)); animation: floating 6s ease-in-out infinite 0.5s; filter: blur(1.5px); opacity: 0.8; pointer-events: none; }
.fc-2 { bottom: 20%; left: 10%; --rot: -3deg; transform: rotate(var(--rot)); animation: floating 7s ease-in-out infinite 2s; filter: blur(1.5px); opacity: 0.8; pointer-events: none; }
.fc-3 { top: 40%; left: 48%; --rot: -1deg; transform: rotate(var(--rot)); animation: floating 6s ease-in-out infinite 1s; background: var(--safety); color: #fff; border-color: #fff; box-shadow: 4px 4px 0px #fff; filter: blur(1.5px); opacity: 0.8; pointer-events: none; }

.fc-title { display: flex; align-items: center; gap: 0.4rem; text-transform: uppercase; letter-spacing: -0.02em; }
.fc-sub { font-family: 'JetBrains Mono', monospace; font-size: 0.75rem; font-weight: 400; color: var(--muted); }

/* Blurred Post Mockups (Background) */
.mockup-post {
    position: absolute;
    background: var(--surface);
    border: 2px solid var(--ink);
    border-radius: 12px;
    z-index: 0;
    filter: blur(3px);
    opacity: 0.7;
    pointer-events: none;
}
.mockup-ig {
    width: 250px; height: auto;
    top: -50px; left: 20%;
    --rot: -15deg;
    transform: rotate(var(--rot));
    animation: floating 8s ease-in-out infinite 0s;
    padding: 0;
    border-radius: 24px;
    background: transparent !important;
    border: none !important;
    filter: drop-shadow(0 10px 30px rgba(0,0,0,0.5)) blur(1px);
}
.mockup-yt {
    width: 320px; height: auto;
    bottom: -10px; left: 35%;
    --rot: 8deg;
    transform: rotate(var(--rot));
    animation: floating 7s ease-in-out infinite 1.5s;
    padding: 0;
    border-radius: 16px;
    background: transparent !important;
    border: none !important;
    filter: drop-shadow(0 10px 30px rgba(0,0,0,0.5)) blur(1px);
}
.mockup-ig2 {
    width: 280px; height: auto;
    top: -20px; right: 5%;
    --rot: 12deg;
    transform: rotate(var(--rot));
    animation: floating 7.5s ease-in-out infinite 0.8s;
    padding: 0;
    border-radius: 24px;
    background: transparent !important;
    border: none !important;
    filter: drop-shadow(0 10px 30px rgba(0,0,0,0.5)) blur(1px);
}

/* Abstract shapes & Animations */
.geo-shape { position: absolute; z-index: 1; }
.shape-star { bottom: -80px; right: 20px; font-size: 25rem; color: var(--safety); opacity: 0.15; line-height: 1; animation: rotate-slow 40s linear infinite; pointer-events: none; }
.shape-cross { top: 50px; left: 50px; font-size: 10rem; font-weight: 300; color: var(--ink); opacity: 0.05; line-height: 1; pointer-events: none; }
@keyframes rotate-slow { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
@keyframes floating {
    0% { transform: translateY(0px) rotate(var(--rot, 0deg)); }
    50% { transform: translateY(-12px) rotate(var(--rot, 0deg)); }
    100% { transform: translateY(0px) rotate(var(--rot, 0deg)); }
}

/* Foreground Text on Left */
.auth-left-content { position: relative; z-index: 10; }
.auth-left-title { font-family: 'Space Grotesk', sans-serif; font-size: 5rem; font-weight: 900; text-transform: uppercase; line-height: 1; color: var(--ink); margin-bottom: 0; max-width: 600px; }
.auth-left-subtitle { margin-top: 1.5rem; font-family: 'JetBrains Mono', monospace; font-size: 1.1rem; line-height: 1.5; color: var(--muted); max-width: 450px; }

/* Glassmorphism / Gaussian blur effect for the Login Box */
.cd-auth-box {
    background: rgba(var(--surface-rgb, 255, 255, 255), 0.7); /* Needs alpha for glass effect, fallback transparent */
    background: var(--surface); /* Fallback */
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 2px solid var(--ink); /* Enhancing brutalism over glassmorphism */
}
[data-theme="dark"] .cd-auth-box {
    background: rgba(22, 24, 28, 0.75); /* Dark mode translucent fallback */
}
[data-theme="light"] .cd-auth-box {
    background: rgba(255, 255, 255, 0.75);
}

@media (max-width: 900px) {
    body, html { height: auto; overflow: auto; }
    .auth-split { grid-template-columns: 1fr; height: auto; }
    .auth-left { padding: 4rem 2rem; min-height: 60vh; border-right: none; border-bottom: 4px solid var(--ink); }
    .auth-left-title { font-size: 3.5rem; }
    .fc-3 { display: none; }
    .marquee-line { font-size: 5rem; }
}

.right-header {
    width: 100%;
    max-width: 450px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2.5rem;
}

[data-theme="dark"] .fc-3 { color: #000; border-color: #000; box-shadow: 4px 4px 0px #000; }
