body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Floating Gradient Circles */
.gradient-circle {
    position: fixed;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    animation: float-gentle 12s ease-in-out infinite;
    pointer-events: none;
    z-index: -1;
}

.gradient-circle-1 {
    top: -10rem;
    right: -10rem;
    width: 24rem;
    height: 24rem;
    background: rgba(169, 85, 247, 0.4);
    animation-duration: 14s;
}

.gradient-circle-2 {
    bottom: -10rem;
    left: -10rem;
    width: 20rem;
    height: 20rem;
    background: rgba(255, 0, 85, 0.35);
    animation-duration: 16s;
    animation-delay: 2s;
}

.gradient-circle-3 {
    top: 50%;
    left: 50%;
    width: 18rem;
    height: 18rem;
    background: rgba(0, 191, 255, 0.3);
    animation-duration: 18s;
    animation-delay: 4s;
}

/* Main Content */
.auth-wrapper {
    position: relative;
    z-index: 10;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}

.auth-container {
    padding-top: 8rem;
    max-width: 1200px;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

/* Left Content */
.auth-content {
    text-align: center;
    opacity: 0;
    animation: fade-in-left 1.4s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}

.auth-title {
    font-size: 2.5rem;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    font-family: 'Tilt Neon', cursive;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.auth-subtitle {
    font-size: 1.1rem;
    color: var(--muted-foreground);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.features {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
}

.feature-box {
    background: var(--card);
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
    opacity: 0;
}

.feature-box:nth-child(1) { animation-delay: 0.3s; }
.feature-box:nth-child(2) { animation-delay: 0.5s; }
.feature-box:nth-child(3) { animation-delay: 0.7s; }

.feature-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(169, 85, 247, 0.15), transparent);
    transition: left 1s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.feature-box:hover::before {
    left: 100%;
}

.feature-box:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(169, 85, 247, 0.2);
}

.feature-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 0.5rem;
    transition: color 0.5s ease;
}

.feature-text {
    font-size: 0.9rem;
    color: var(--muted-foreground);
}

/* Auth Card */
.auth-card {
    background: rgba(255, 255, 255, 0.3);
    [data-theme="dark"] & {
        background: rgba(28, 31, 34, 0.6);
    }
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 1.5rem;
    padding: 2.5rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
    opacity: 0;
    animation: fade-in-right 1.4s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
    animation-delay: 0.3s;
}

.auth-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent), var(--secondary));
    background-size: 200% 100%;
    animation: gradientSlide 3s linear infinite;
}

@keyframes gradientSlide {
    0% { background-position: 0% 0%; }
    100% { background-position: 200% 0%; }
}

.form-box {
    display: none;
    animation: fade-in-up 0.6s ease;
}

.form-box.active {
    display: block;
}

.form-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.form-subtitle {
    color: var(--muted-foreground);
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

.input-group {
    margin-bottom: 1.5rem;
}

.input-label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--foreground);
    font-weight: 600;
}

.input-field {
    width: 100%;
    padding: 0.9rem 1rem;
    background: var(--muted);
    border: 2px solid var(--border);
    border-radius: 0.75rem;
    color: var(--foreground);
    font-size: 1rem;
    transition: all 0.4s cubic-bezier(0.22, 0.61, 0.36, 1);
    outline: none;
}

[data-theme="dark"] .input-field {
    color-scheme: dark;
}

.input-field:focus {
    background: var(--card);
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(169, 85, 247, 0.1);
    transform: translateY(-2px);
}

.input-field::placeholder {
    color: var(--muted-foreground);
}

.role-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.role-btn {
    padding: 1rem;
    background: var(--muted);
    border: 2px solid var(--border);
    border-radius: 0.75rem;
    color: var(--foreground);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.role-btn:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(169, 85, 247, 0.2);
}

.role-btn.selected {
    background: rgba(169, 85, 247, 0.1);
    border-color: var(--primary);
    color: var(--primary);
}

.submit-btn {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border: none;
    border-radius: 0.75rem;
    color: white;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.6s cubic-bezier(0.22, 0.61, 0.36, 1);
    box-shadow: 0 10px 25px rgba(169, 85, 247, 0.3);
}

.submit-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(169, 85, 247, 0.5);
}

.toggle-text {
    text-align: center;
    margin-top: 1.5rem;
    color: var(--muted-foreground);
    font-size: 0.95rem;
}

.toggle-link {
    color: var(--primary);
    cursor: pointer;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.toggle-link:hover {
    color: var(--accent);
    text-decoration: underline;
}

/* Responsive */
@media (min-width: 768px) {
    .auth-container {
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
    }
    
    .auth-content {
        text-align: left;
    }
    
    .auth-title {
        font-size: 3.5rem;
    }
    
    .auth-subtitle {
        font-size: 1.2rem;
    }
}

@media (max-width: 767px) {
    .features {
        gap: 1rem;
    }
    
    .role-buttons {
        grid-template-columns: 1fr;
    }
    
    .auth-card {
        padding: 2rem 1.5rem;
    }
}