body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 20px;
    box-sizing: border-box;
}

/* Container */
.container {
    position: relative;
    max-width: 850px;
    height: 500px;
    background-color: #f5f7f9;
    border-radius: 30px;
    margin: 0;
    overflow: hidden;
}

/* Left side of container */
.form-section {
    position: absolute;
    top: 0;
    width: 50%;
    height: 100%;
    transition: all 0.6s ease-in-out;
    left: 0;
    width: 50%;
    z-index: 2;
}

.form-container {
    position: absolute;
    top: 0;
    height: 100%;
    padding: 50px 40px;
    transition: all 0.6s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    width: 100%;
    text-align: center;
}

.form-container .ac-banner {
    width: 300px;
    height: auto;
    margin-bottom: 1rem;
    border-radius: 20px;
}

.form-container form {
    width:100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.form-container input {
    background-color: #e8f0ed;
    border: none;
    padding: 15px 20px;
    margin: 12px 0;
    width: 100%;
    border-radius: 15px;
    box-shadow: 
        inset 4px 4px 8px rgba(42, 127, 98, 0.3),
        inset -4px -4px 8px rgba(220, 240, 230, 0.8);
    transition: all 0.3s ease;
    color: rgba(20, 60, 45, 0.9);
    font-size: 1rem;
}

.form-container input:focus {
    box-shadow: 
        inset 6px 6px 12px rgba(42, 127, 98, 0.35),
        inset -6px -6px 12px rgba(220, 240, 230, 0.85);
    outline: none;
}

.signin-btn {
    background-color: #e8f0ed;
    color: #007a50;
    border: none;
    padding: 12px 45px;
    border-radius: 20px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
    width: auto;
    min-width: 185px;
    margin-bottom: .5rem;
}

.signin-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 
        10px 10px 20px rgba(42, 127, 98, 0.35),
        -10px -10px 20px rgba(42, 127, 98, 0.35);
}

.signin-btn:active {
    transform: scale(0.98);
    box-shadow: 
        inset 4px 4px 8px rgba(42, 127, 98, 0.3),
        inset -4px -4px 8px rgba(220, 240, 230, 0.8);
}


/* Right side of container */
.signup-section {
    left: 0;
    width: 50%;
    opacity: 0;
    z-index: 1;
}

.content-section {
    position: absolute;
    top: 0;
    left: 50%;
    width: 50%;
    height: 100%;
    overflow: hidden;
    background: #006241;
    transition: transform 0.6s ease-in-out;
    z-index: 100;
    box-shadow: 
        inset 8px 8px 16px rgba(0, 0, 0, 0.3),
        inset -8px -8px 16px rgba(255, 255, 255, 0.1);
}

.content-section .content {
    color: #fff;
    position: relative;
    left: -100%;
    height: 100%;
    width: 200%;
    transform: translateX(0);
    transition: transform 0.6s ease-in-out;
}

.content-panel {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 0 40px;
    text-align: center;
    top: 0;
    height: 100%;
    width: 50%;
    transform: translateX(0);
    transition: transform 0.6s ease-in-out;
}

.content-panel.content-right h3 {
    margin-top: -2rem !important;
}


.content-panel img {
    width: 140px;
    height: auto;
    border-radius: 75px;
}

.content-left {
    transform: translateX(-20%);
    left: 0;
}

.content-right {
    right: 0;
    transform: translateX(0);
}

/* Animation */
.container.right-panel-active .signin-section {
    transform: translateX(100%);
    opacity: 0;
}

.container.right-panel-active .signup-section {
    transform: translateX(100%);
    opacity: 1;
    z-index: 5;
}

.container.right-panel-active .content-section {
    transform: translateX(-100%);
}

.container.right-panel-active .content {
    transform: translateX(50%);
}

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

.container.right-panel-active .content-right {
    transform: translateX(20%);
}


.content-panel.content-right h3 {
    font-weight: bold;
    margin-top: 1rem;
}

.content-panel h3 {
    margin-top: -1rem;
}

.content-panel img {
    height: auto;
    border-radius: 50px 50px 40px 40px;
    padding-bottom: 1.5rem;
}

.content-panel p {
    padding-bottom: .5rem;
}

.forgot-password {
    color: #667;
    text-decoration: none;
    margin-top: 15px;
    font-size: 0.9rem;
}

.forgot-password:hover {
    color: #006441;
}


.content-panel h3 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    margin-top: 0;
}

.content-panel p {
    font-size: 1rem;
}

.btn-mobile-signup, .btn-mobile-signin {
    display: none;
}

.signup-btn {
    background-color: #2a7f62;
    color: #fff;
    border: none;
    padding: 12px 45px;
    border-radius: 20px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
    width: auto;
    min-width: 185px;
    margin-bottom: .5rem;
    box-shadow: 0 0 15px rgba(42, 127, 98, 0.5);
}

.signup-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 0 20px rgba(42, 127, 98, 0.6);
}

.signup-btn:active {
    transform: scale(0.98);
    box-shadow: 0 0 10px rgba(42, 127, 98, 0.4);
}

.signup-prompt {
    color: #666;
    font-size: 1rem;
}

/* Mobile Responsiveness */
@media screen and (max-width: 768px) {
    .container {
        max-width: 90%;
        height: auto;
        min-height: 500px;
        margin: 2rem auto;
        box-shadow: 
            12px 12px 24px rgba(0, 0, 0, 0.25),
            -12px -12px 24px rgba(255, 255, 255, 0.1);
        background: #fff;
    }

    .form-section {
        position: relative;
        width: 100%;
        height: auto;
        min-height: 450px;
        transition: none;
        border-radius: 30px;
        overflow: hidden;
    }

    .signin-section {
        display: block;
        opacity: 1;
    }

    .signup-section {
        display: none;
        opacity: 0;
    }

    .content-section {
        display: none;
    }

    .btn-mobile-signup, .btn-mobile-signin {
        display: block;
    }

    .form-container {
        padding: 30px 20px;
        position: relative;
        opacity: 1;
        transform: none;
        transition: none;
    }

    .form-container h3 {
        font-size: 1.75rem;
        margin-bottom: 20px;
    }

    /* Mobile Animation Adjustments */
    .container.right-panel-active .signin-section {
        display: none;
        opacity: 0;
        transform: none;
    }

    .container.right-panel-active .signup-section {
        display: block;
        opacity: 1;
        transform: none;
        background: linear-gradient(145deg, #00916a, #006441);
        border-radius: 59px;
        box-shadow: inset 16px 16px 25px #00462e,
                    inset -16px -16px 25px #00ae72;
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
    }

    .container.right-panel-active .signup-section .form-container {
        opacity: 1;
    }

    .container.right-panel-active .signup-section h3,
    .container.right-panel-active .signup-section input::placeholder,
    .container.right-panel-active .signup-section .btn-custom {
        color: white;
    }

    .container.right-panel-active .signup-section input {
        background-color: rgba(255, 255, 255, 0.1);
        color: white;
        box-shadow:  8px 8px 16px #b3b3b3,
        -8px -8px 16px #f8f8f8;
    }

    .container.right-panel-active .signup-section .btn-custom {
        background-color: #007a50;
        color: #fff;
        box-shadow: 3px 3px 10px rgba(0, 80, 50, 0.2),
                    -5px -5px 10px rgba(255, 255, 255, 0.1);
    }

    .signup-prompt {
        color: #666 !important;
        font-size: 1rem;
    }


    .container.right-panel-active .signup-section .btn-custom:active {
        background-color: #007a50;
        color: #fff;
        box-shadow:         inset 4px 4px 8px rgba(0, 0, 0, 0.3),
        inset -4px -4px 8px rgba(255, 255, 255, 0.1);
    }
    .container.right-panel-active .signup-section .btn-mobile-signin {
        background-color: #007a50;
        color: #fff;
        box-shadow: 3px 3px 10px rgba(0, 80, 50, 0.2),
                    -5px -5px 10px rgba(255, 255, 255, 0.1);
    }


    .container.right-panel-active .signup-section .signup-prompt {
        color: white !important;
        margin-bottom: 1rem;
    }

    .container.right-panel-active .signup-section input[type="tel"] {
        background-color: rgba(255, 255, 255, 0.1);
        color: white;
        box-shadow: inset 3px 3px 6px rgba(0, 0, 0, 0.2),
                    inset -3px -3px 6px rgba(255, 255, 255, 0.1);
    }

    .container.right-panel-active .signup-section input[type="tel"]::placeholder {
        color: rgba(255, 255, 255, 0.8);
    }

    .container.right-panel-active .signup-section .phone-link {
        color: rgba(255, 255, 255, 0.9);
    }

    .container.right-panel-active .signup-section .phone-link:hover {
        color: white;
        background: rgba(255, 255, 255, 0.2);
    }

    .container.right-panel-active .signup-section .bottom-left {
        position: relative;
        bottom: auto;
        left: auto;
        margin-top: 1rem;
        text-align: center;
    }
}

/* Additional adjustments for very small screens */
@media screen and (max-width: 480px) {
    .container {
        margin: 1rem auto;
        min-height: 450px;
    }

    .form-section {
        min-height: 400px;
    }

    .form-container {
        padding: 20px 15px;
    }

    .form-container input {
        padding: 10px 12px;
    }

    .form-container h3 {
        font-size: 1.5rem;
    }

    .ac-banner {
        width: 150px;
        margin-bottom: 15px;
        border-radius: 20px;
    }
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(3px);
}

/* Add a new class for when modal is shown */
.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    position: relative;
    background-color: #e8f0ed;
    margin: 0 auto;
    max-width: 450px;
    width: 90%;
    border-radius: 30px;
    border: none;
    box-shadow: 
        -2px 4px 8px rgba(42, 127, 98, 0.15);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-10%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal .form-container {
    padding: 30px;
    position: relative;
}

.modal input {
    background-color: #e8f0ed;
    border: none;
    padding: 15px 20px;
    margin: 12px 0;
    width: 100%;
    border-radius: 15px;
    box-shadow: 
        inset 3px 3px 6px rgba(42, 127, 98, 0.2),
        inset -3px -3px 6px rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
    color: rgba(20, 60, 45, 0.9);
    font-size: 1rem;
}

.modal input:focus {
    box-shadow: 
        inset 4px 4px 8px rgba(42, 127, 98, 0.25),
        inset -4px -4px 8px rgba(255, 255, 255, 0.9);
    outline: none;
}

.modal .btn-secondary {
    background-color: #2a7f62;
    color: #fff;
    border: none;
    padding: 12px 45px;
    border-radius: 20px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    width: auto;
    min-width: 185px;
    margin-bottom: .5rem;
    box-shadow: 0 0 15px rgba(42, 127, 98, 0.5);
}

.modal .btn-secondary:hover {
    background-color: #358f72;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 10px 10px 20px rgba(42, 127, 98, 0.5),
                -5px -5px 15px rgba(220, 240, 230, 0.9);
}

.modal .btn-secondary:active {
    transform: scale(0.98);
    box-shadow: 
        inset 4px 4px 8px rgba(0, 0, 0, 0.3),
        inset -4px -4px 8px rgba(255, 255, 255, 0.3);
}

.modal h3 {
    color: rgba(20, 60, 45, 0.9);
    font-weight: 600;
}

.modal .form-label {
    color: rgba(20, 60, 45, 0.9);
    font-weight: 500;
    font-size: 1rem;
}

.signin-ghost-btn {
    background-color: #2a7f62;
    color: #fff;
    border: none;
    padding: 12px 45px;
    border-radius: 20px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
    width: auto;
    min-width: 185px;
    margin-bottom: .5rem;
    box-shadow: 0 0 15px rgba(42, 127, 98, 0.5);
}

.signin-ghost-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 0 20px rgba(42, 127, 98, 0.6);
}

.signin-ghost-btn:active {
    transform: scale(0.98);
    box-shadow: 0 0 10px rgba(42, 127, 98, 0.4);
}

/* Mobile Optimizations */
@media screen and (max-width: 768px) {
    .modal-content {
        width: 95%;
        margin: 0 15px;
    }
}