@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
    --primary-gradient: linear-gradient(135deg, #a78bfa 0%, #818cf8 100%);
    --text-main: #1f2937;
    --text-muted: #6b7280;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.8);
    --input-border: #e5e7eb;
    --input-focus: #818cf8;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    height: 100vh;
    overflow: hidden;
    /* No scroll on desktop */
    display: flex;
    background: white;
    margin: 0;
}

/* --- Left Panel (Form) --- */
.left-panel {
    flex: 0 0 50%;
    /* Changed to 50% for equal split */
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 8%;
    background: white;
    z-index: 10;
    overflow: hidden;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 22px;
    margin-bottom: 24px;
    /* Reduced from 40px */
    color: var(--text-main);
}

.form-content {
    max-width: 440px;
    width: 100%;
    margin: 0 auto;
}

h1 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 8px;
    /* Reduced from 12px */
    line-height: 1.2;
}

p.subtitle {
    color: var(--text-muted);
    font-size: 16px;
    margin-bottom: 24px;
    /* Reduced from 32px */
}

.form-group {
    margin-bottom: 16px;
    /* Reduced from 20px */
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 6px;
    /* Reduced from 8px */
    color: #374151;
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    /* Reduced padding from 14px */
    border: 1px solid var(--input-border);
    border-radius: 12px;
    font-size: 15px;
    outline: none;
    transition: all 0.2s ease;
    background: #f9fafb;
}

.form-group input:focus {
    border-color: var(--input-focus);
    background: white;
    box-shadow: 0 0 0 4px rgba(129, 140, 248, 0.1);
}

.btn-create {
    width: 100%;
    background: var(--primary-gradient);
    color: white;
    border: none;
    padding: 16px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(167, 139, 250, 0.3);
    transition: transform 0.2s, box-shadow 0.2s;
    margin-top: 4px;
    /* Reduced from 8px */
    margin-bottom: 20px;
    /* Reduced from 24px */
}

.btn-create:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 25px rgba(167, 139, 250, 0.4);
}

.policy-text {
    font-size: 12px;
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 16px;
}

.footer-link {
    text-align: center;
    margin-top: 10px;
    /* Reduced from 24px */
    font-size: 14px;
    color: var(--text-muted);
}

.footer-link a {
    color: #818cf8;
    text-decoration: none;
    font-weight: 600;
}

/* --- Right Panel (Visual) --- */
.right-panel {
    flex: 1;
    height: 100vh;
    background: radial-gradient(circle at center, #f5f3ff 0%, #eef2ff 100%);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Decorative blurry blobs */
.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.6;
}

.blob-1 {
    top: -10%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: #c4b5fd;
}

.blob-2 {
    bottom: -10%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: #a5b4fc;
}

/* Floating Dashboard Preview */
.visual-card {
    position: relative;
    width: 90%;
    max-width: 800px;
    /* Large visual */
    max-height: 80vh;
    /* Constrain height */
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 24px;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.1);
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    transform: perspective(1000px) rotateY(-5deg) rotateX(2deg);
    transition: transform 0.5s ease;
    overflow: hidden;
    /* Ensure content obeys container */
}

.visual-card:hover {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}

/* Mock Dashboard Content inside Visual Card to look "Premium" */
.mock-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding-bottom: 20px;
}

.mock-title {
    font-size: 14px;
    font-weight: 700;
    color: #374151;
}

.mock-nav {
    display: flex;
    gap: 12px;
}

.nav-pill {
    width: 60px;
    height: 8px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 4px;
}

.mock-body {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
}

.mock-chart-area {
    background: white;
    border-radius: 16px;
    height: 180px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
    position: relative;
    overflow: hidden;
}

.mock-graph-line {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60%;
    fill: none;
    stroke: #818cf8;
    stroke-width: 3;
}

.mock-side-col {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mock-card-sm {
    background: white;
    height: 84px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
    display: flex;
    align-items: center;
    justify-content: center;
}

.trust-badge {
    position: absolute;
    bottom: 40px;
    background: rgba(255, 255, 255, 0.8);
    padding: 8px 16px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--text-muted);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(4px);
}

/* --- Responsive --- */
@media (max-width: 900px) {
    body {
        flex-direction: column;
        height: auto;
        /* Allow scroll on mobile */
        overflow-x: hidden;
        overflow-y: auto;
    }

    .left-panel {
        flex: none;
        width: 100%;
        height: auto;
        min-height: 100vh;
        /* Full screen form focus on mobile start */
        padding: 60px 24px;
        order: 1;
        /* Form first */
    }

    .right-panel {
        flex: none;
        width: 100%;
        height: 400px;
        /* Specific height for visual on mobile */
        order: 2;
        /* Visual second */
    }

    .visual-card {
        transform: scale(0.8);
        /* Shrink slightly */
        width: 100%;
        max-height: none;
    }

    .form-content {
        margin: 0 auto;
    }
}