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

:root {
    --primary: #4F46E5;
    --primary-light: #818CF8;
    --secondary: #10B981;
    --text-primary: #1F2937;
    --text-secondary: #4B5563;
    --background: #ffffff;
    --background-alt: #F3F4F6;
    --border-color: #E5E7EB;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background-color: var(--background);
    color: var(--text-primary);
    line-height: 1.5;
}

.main {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    position: relative;
}

/* Hero Section */
.hero {
    padding: 2rem 4rem;
    background: linear-gradient(135deg, #4F46E5 0%, #818CF8 100%);
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    background: url('data:image/svg+xml,<svg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"><path d="M30 0L60 30L30 60L0 30L30 0Z" fill="rgba(255,255,255,0.1)"/></svg>') repeat;
    animation: moveBackground 20s linear infinite;
    opacity: 0.2;
}

@keyframes moveBackground {
    0% { transform: translate(0, 0); }
    100% { transform: translate(-50%, -50%); }
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 600px;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.features {
    margin-top: 3rem;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.feature-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    border-radius: 1rem;
    backdrop-filter: blur(10px);
}

.feature-item h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.feature-item p {
    font-size: 0.95rem;
    opacity: 0.8;
}

/* Auth Section */
.auth-section {
    background: var(--background);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

#chk {
    display: none;
}

.auth-container {
    max-width: 400px;
    margin: 0 auto;
    width: 100%;
    padding-top: 1rem;
}

.logo-container {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-logo {
    width: 200px;
    height: auto;
    margin: 0 auto;
    display: block;
    animation: fadeInDown 0.6s ease-out;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-tabs {
    display: flex;
    margin-bottom: 2rem;
    background: var(--background-alt);
    padding: 0.5rem;
    border-radius: 0.75rem;
}

.auth-tabs label {
    flex: 1;
    padding: 0.75rem;
    text-align: center;
    color: var(--text-secondary);
    cursor: pointer;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.auth-tabs label.active {
    background: var(--primary);
    color: white;
}

.signup, .login {
    opacity: 0;
    display: none;
    transform: translateX(100px);
    transition: all 0.3s ease;
}

.signup.active, .login.active {
    opacity: 1;
    display: block;
    transform: translateX(0);
}

input:not([type="checkbox"]) {
    width: 100%;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: all 0.3s ease;
}

input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

button {
    width: 100%;
    padding: 0.75rem 1.5rem;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

button:hover {
    background: var(--primary-light);
    transform: translateY(-1px);
}

button.guest-button {
    background: var(--secondary);
    margin-top: 1rem;
}

button.guest-button:hover {
    opacity: 0.9;
}

.terms {
    margin-top: 1rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
    text-align: center;
}

nav {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.3s ease;
    text-align: center
}

nav a:hover {
    color: var(--primary);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .main {
        grid-template-columns: 1fr;
        display: flex;
        flex-direction: column;
        min-height: auto;
    }

    .auth-section {
        order: 1;
        padding: 2rem 1.5rem;
        min-height: 100vh;
    }

    .hero {
        order: 2;
        padding: 3rem 1.5rem;
        text-align: center;
    }

    .hero-content {
        margin: 0 auto;
    }

    .features {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .feature-item {
        padding: 1.25rem;
    }
}

@media (max-width: 640px) {
    .hero h1 {
        font-size: 2rem;
        margin-bottom: 1rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .auth-section {
        padding: 1.5rem 1rem;
    }

    .auth-container {
        padding-top: 0.5rem;
    }

    .logo-container {
        margin-bottom: 1.5rem;
    }

    .auth-logo {
        width: 160px;
    }

    .auth-tabs {
        margin-bottom: 1.5rem;
    }

    .feature-item {
        padding: 1rem;
    }

    .feature-item h3 {
        font-size: 1.1rem;
    }

    input:not([type="checkbox"]) {
        padding: 0.625rem 0.875rem;
        margin-bottom: 0.875rem;
    }

    button {
        padding: 0.625rem 1.25rem;
    }

    nav {
        margin-top: 1.5rem;
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }
}