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

body {
    font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow: hidden;
    background: linear-gradient(135deg, #0f0c29 0%, #302b63 50%, #24243e 100%);
}

.container {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Animated Gradient Background with Blur Effect */
.gradient-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        #667eea 0%,
        #764ba2 25%,
        #f093fb 50%,
        #4facfe 75%,
        #00f2fe 100%
    );
    background-size: 400% 400%;
    animation: gradient 15s ease infinite;
    z-index: 1;
    opacity: 0.95;
    filter: blur(80px);
}

@keyframes gradient {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Floating orbs for extra visual appeal */
.gradient-bg::before {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.5) 0%, transparent 70%);
    border-radius: 50%;
    top: -100px;
    left: -100px;
    animation: float 20s infinite ease-in-out;
}

.gradient-bg::after {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(240, 147, 251, 0.4) 0%, transparent 70%);
    border-radius: 50%;
    bottom: -150px;
    right: -100px;
    animation: float 25s infinite ease-in-out reverse;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-30px);
    }
}

/* Content Wrapper */
.content-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

/* Form Container */
.form-container {
    position: absolute;
    top: 0;
    height: 100%;
    transition: all 0.6s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    z-index: 3;
    pointer-events: auto;
    left: 50%;
    transform: translateX(-50%);
}

.sign-in-container {
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    z-index: 2;
    opacity: 1;
    pointer-events: auto;
    transition: opacity 0.6s ease-in-out;
}

.sign-up-container {
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    opacity: 0;
    z-index: 1;
    pointer-events: none;
    transition: opacity 0.6s ease-in-out;
}

.container.right-panel-active .sign-in-container {
    opacity: 0;
    z-index: 1;
    pointer-events: none;
}

.container.right-panel-active .sign-up-container {
    opacity: 1;
    z-index: 5;
    pointer-events: auto;
}

/* Form Styling - Modern Card Design */
form {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 60px 40px;
    height: 100%;
    text-align: center;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    width: 90%;
    max-width: 450px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin: auto;
}

form h1 {
    font-weight: 800;
    margin-bottom: 8px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 2.5rem;
    letter-spacing: -0.5px;
}

form p {
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
    letter-spacing: 0.5px;
    margin: 15px 0 25px;
    color: #666;
}

.social-container {
    margin: 25px 0;
    display: flex;
    gap: 12px;
    justify-content: center;
}

.social {
    border: none;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 45px;
    width: 45px;
    color: #fff;
    transition: all 0.3s ease;
    text-decoration: none;
    background: linear-gradient(135deg, #667eea, #764ba2);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.social:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 15px 30px rgba(102, 126, 234, 0.5);
}

.social.github:hover {
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.social.google:hover {
    background: linear-gradient(135deg, #4facfe, #00f2fe);
}

.social.linkedin:hover {
    background: linear-gradient(135deg, #f093fb, #764ba2);
}

form input,
form textarea {
    background: linear-gradient(135deg, #f5f7fa 0%, #f9fafc 100%);
    border: 2px solid #e8ecf1;
    padding: 12px 16px;
    margin: 8px 0;
    width: 100%;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    color: #333;
}

form input::placeholder {
    color: #999;
}

form input:focus {
    outline: none;
    background: linear-gradient(135deg, #fff 0%, #fff 100%);
    border-color: #667eea;
    box-shadow: 0 0 20px rgba(102, 126, 234, 0.3);
    transform: translateY(-2px);
}

/* Password Input Wrapper */
.password-input-wrapper {
    position: relative;
    width: 100%;
}

.password-input-wrapper input {
    padding-right: 45px;
}

.password-toggle {
    position: absolute;
    right: 12px;
    top: 3px;
    background: none;
    border: none;
    cursor: pointer;
    color: #999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-size: 0;
    z-index: 10;
}

.password-toggle:hover {
    color: #667eea;
    background: rgba(102, 126, 234, 0.1);
}

.password-toggle svg {
    width: 18px;
    height: 18px;
}

form a {
    color: #667eea;
    text-decoration: none;
    font-size: 12px;
    margin: 12px 0;
    transition: all 0.3s ease;
    font-weight: 600;
}

form a:hover {
    color: #764ba2;
    text-decoration: underline;
}

form small {
    color: #999;
    font-size: 11px;
    margin: 12px 0;
    display: block;
    line-height: 1.4;
}

form button {
    border-radius: 12px;
    border: none;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    padding: 13px 40px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    cursor: pointer;
    margin-top: 15px;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
    position: relative;
    overflow: hidden;
}

form button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

form button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(102, 126, 234, 0.6);
}

form button:hover::before {
    left: 100%;
}

form button:active {
    transform: translateY(-1px);
}

/* Toggle Container - Removed, now using inline buttons */

/* Responsive Design */
@media (max-width: 768px) {
    .form-container {
        width: 100%;
    }

    .sign-in-container,
    .sign-up-container {
        width: 100%;
    }

    form {
        padding: 50px 30px;
        max-width: 100%;
        width: 95%;
        border-radius: 15px;
    }

    form h1 {
        font-size: 2rem;
    }

    form input,
    form textarea {
        padding: 11px 14px;
        font-size: 13px;
    }

    form button {
        padding: 11px 35px;
        font-size: 12px;
    }

    .social-container {
        gap: 10px;
    }

    .social {
        height: 40px;
        width: 40px;
    }
}

@media (max-width: 480px) {
    form {
        padding: 40px 20px;
    }

    form h1 {
        font-size: 1.8rem;
        margin-bottom: 5px;
    }

    form input,
    form textarea {
        padding: 10px 12px;
        font-size: 13px;
        margin: 6px 0;
    }

    form button {
        padding: 10px 30px;
        font-size: 11px;
    }

    .toggle-container {
        top: 15px;
        right: 15px;
    }

    .toggle-btn {
        padding: 8px 20px;
        font-size: 10px;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

form {
    animation: fadeIn 0.6s ease-in-out;
}

.toggle-panel button.hidden:hover {
    background: #fff;
    color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 255, 255, 0.3);
}

.toggle-panel button.hidden:active {
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 768px) {
    .form-container {
        width: 100%;
    }

    .sign-in-container,
    .sign-up-container {
        width: 100%;
    }

    .toggle-container {
        width: 100%;
        left: 0;
    }

    .toggle {
        width: 100%;
    }

    .toggle-panel {
        width: 100%;
    }

    form {
        padding: 0 30px;
    }

    form h1 {
        font-size: 1.8rem;
    }

    form input,
    form textarea {
        padding: 10px 12px;
        font-size: 13px;
    }

    form button {
        padding: 10px 35px;
        font-size: 11px;
    }

    .container.right-panel-active .toggle {
        transform: translateX(0);
    }

    .container.right-panel-active .toggle-container {
        transform: translateX(0);
    }

    @keyframes slideIn {
        0% {
            transform: translateX(0);
            opacity: 0;
        }
        100% {
            transform: translateX(0);
            opacity: 1;
        }
    }

    @keyframes slideOut {
        0% {
            transform: translateX(0);
        }
        100% {
            transform: translateX(0);
        }
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

form {
    animation: fadeIn 0.6s ease-in-out;
}
