@import url('https://fonts.googleapis.com/css?family=Montserrat:400,800');
:root {
    --primary-color: #20ac71;
    --primary-dark: #1a8a5d;
    --bg-color-1: #f8f9fa;
    --bg-color-2: #e9ecef;
    --text-white: #ffffff;
}

body {
    margin: 0;
    padding: 0;
    /* Remove fixed height to allow scrolling */
    min-height: 100vh;
    transition: background-color 0.6s ease;
    font-family: 'Montserrat', sans-serif;
}

.auth-container {
    /* Remove fixed height to allow scrolling */
    min-height: 100vh;
    overflow-x: hidden;
}

.form-container {
    background-color: white;
    border-radius: 10px;
    /*box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);*/
    overflow: hidden;
    height: auto;
    width: 100%;
    margin: 10px auto;
    padding: 30px;
}

.form-body {
    padding: 0;
}

.form-body h3 {
    font-weight: 600;
}

.form-switch {
    text-align: center;
    margin-top: 15px;
}

.form-switch a {
    color: var(--primary-color);
    cursor: pointer;
    text-decoration: none;
    font-weight: 500;
}

.form-switch a:hover {
    text-decoration: underline;
}

.overlay-container {
    color: var(--text-white);
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: linear-gradient(to right, var(--primary-color), var(--primary-dark));
    height: 100%;
    width: 100%;
}

.overlay-content h2 {
    margin-bottom: 20px;
    font-weight: 600;
}

.overlay-content p {
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
}

.btn-outline-white {
    color: var(--text-white);
    border-color: var(--text-white);
}

.btn-outline-white:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--text-white);
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(32, 172, 113, 0.25);
}

/* Animation classes */
.panel {
    position: absolute;
    transition: all 0.6s ease-in-out;
    height: auto;
    width: 50%;
    padding: 0 20px;
}

.login-container {
    left: 0;
    z-index: 2;
}

.signup-container {
    left: 50%;
    z-index: 1;
    opacity: 0;
    pointer-events: none;
}

.overlay-panel {
    right: 0;
    width: 50%;
    height: 100vh;
    padding: 0;
}

.active {
    z-index: 5;
    opacity: 1;
    pointer-events: auto;
}

.inactive {
    z-index: 1;
    opacity: 0;
    pointer-events: none;
}

.move-left {
    transform: translateX(-100%);
}

.move-right {
    transform: translateX(100%);
}

.bg-change {
    background-color: var(--bg-color-2);
}

@media (max-width: 992px) {
    .overlay-panel {
        display: none;
    }
    
    .panel {
        width: 100% !important;
        padding: 0 15px;
        position: relative;
        left: 0 !important;
        transform: none !important;
        height: auto;
        margin-bottom: 40px;
    }
    
    .login-container, .signup-container {
        margin: 20px auto;
        max-width: 500px;
        position: relative !important;
        opacity: 1 !important;
        pointer-events: auto !important;
        display: none;
    }
    
    .login-container.active, .signup-container.active {
        display: block;
    }
    
    .move-left, .move-right {
        transform: none !important;
    }
    
    /* Adjust form elements for mobile */
    .signup-container .form-body {
        padding-bottom: 20px;
    }
    
    /* Remove fixed heights to allow natural scrolling */
    body, .auth-container {
        height: auto;
        overflow-x: hidden;
    }
}