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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: rgb(210, 210, 230);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* Main Container */
.container {
    position: relative;
    width: 100%;
    max-width: 900px;
    height: 550px;
    background: white;
    border-radius: 25px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

/* Form Container */
.form-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    transition: all 0.6s ease-in-out;
    opacity: 0;
    visibility: hidden;
}

.form-container.active {
    opacity: 1;
    visibility: visible;
}

/* Welcome Panel */
.welcome-panel {
    flex: 1;
    /* background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); */
    background-color: rgb(37, 99, 235);
    display: flex;
    align-items: center;
    justify-content: center;
    padding-right: 60px;
    position: relative;
    color: white;
}

/* Curved Edge Effect */
#loginContainer .welcome-panel::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100%;
    background: white;
    border-radius: 50% 0 0 50%;
    transform: translateX(50px);
}

#registerContainer .welcome-panel::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100px;
    height: 100%;
    background: white;
    border-radius: 0 50% 50% 0;
    transform: translateX(-50px);
}

.welcome-content {
    display: flex;
    flex-direction: column;
    align-items: center; 
    max-width: 300px;
}

.welcome-content h2 {
    font-size: 2.5rem;
    font-weight: 300;
    margin-bottom: 15px;
    line-height: 1.2;
}

.welcome-content a {
    color: white;
    font-size: 1rem;
    margin-bottom: 30px;
    opacity: 0.9;
    text-decoration: none;
}

.welcome-content a:hover {
    text-decoration: underline;
}

.form-panel {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 50px;
}

.form-content {
    width: 100%;
    max-width: 350px;
}

.form-content h2 {
    font-size: 2.2rem;
    color: #333;
    margin-bottom: 40px;
    text-align: center;
    font-weight: 400;
}

/* Submit Button */
.submit-button {
    width: 100%;
    padding: 18px;
    /* background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); */
    background-color: rgb(37, 99, 235);
    border: none;
    border-radius: 25px;
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 30px;
}

.submit-button {
    display: inline-block;
    padding: 18px 50px;
    background-color: rgb(37, 99, 235);
    color: white;
    border-radius: 25px;
    text-decoration: none; /* removes underline */
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    margin: 10px; /* optional spacing */
}

.submit-button:hover {
    background-color: rgb(25, 70, 180);
}

.submit-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.submit-button:active {
    transform: translateY(0);
}


@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        height: auto;
        min-height: 600px;
        max-width: 400px;
    }

    .form-container {
        flex-direction: column;
    }

    .welcome-panel {
        order: 2;
        min-height: 200px;
    }

    .welcome-panel::after {
        display: none;
    }

    .form-panel {
        order: 1;
        padding: 40px 30px;
    }

    .welcome-content h2 {
        font-size: 2rem;
    }

    .form-content h2 {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }

    .social-icons {
        gap: 12px;
    }

    .social-btn {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }

    #registerContainer .form-panel {
        order: 1;
    }

    #registerContainer .welcome-panel {
        order: 2;
    }
}

@media (max-width: 480px) {
    body {
        padding: 10px;
    }

    .form-panel {
        padding: 30px 20px;
    }

    .welcome-content {
        padding: 20px;
    }

    .welcome-content h2 {
        font-size: 1.8rem;
    }

    .form-content h2 {
        font-size: 1.6rem;
    }

    .input-field input {
        padding: 15px 45px 15px 18px;
    }

    .submit-button {
        padding: 15px;
        font-size: 1rem;
    }
}

/* Form Transition Animations */
.slide-in-right {
    animation: slideInRight 0.6s ease-out;
}

.slide-in-left {
    animation: slideInLeft 0.6s ease-out;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInLeft {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}
