* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', sans-serif;
}


/* Loader Styles */
#page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: white;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}

.loader-wrapper {
    position: relative;
    width: 120px;
    height: 120px;
}

.loader-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 6px solid transparent;
    border-top: 6px solid #00a157;
    border-bottom: 6px solid #00a157;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

#loader-img {
    width: 60px;
    height: 50px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* <--------> */



body,
html {
    height: 100%;
    background-color: #f9f9f9;
}

.container {
    display: flex;
    height: 100vh;
}

.carousel {
    flex: 1;
    position: relative;
    overflow: hidden;
}

.carousel-slide {
    height: 100%;
    width: 100%;
    background-size: cover;
    background-position: center;
    position: absolute;
    top: 0;
    left: 0;
    transition: opacity 1s ease-in-out;
}

.carousel-slide:not(.active) {
    opacity: 0;
    pointer-events: none;
}

.caption {
    position: absolute;
    bottom: 40px;
    left: 40px;
    color: white;
    font-weight: 600;
    max-width: 500px;
}

.caption p {
    background-color: #0202023b;
    color: white;
    font-weight: 600;
    font-size: 20px;
    margin-bottom: 20px;
    padding: 20px;
    border-radius: 10px;
}

.caption h4 {
    font-weight: bold;
}

.rating {
    margin-top: 10px;
    letter-spacing: 2px;
}

.signup-form {
    flex: 1;
    background-color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    box-shadow: 4px 4px 8px rgba(0, 0, 0, 0.3);

}

.form-wrapper {
    width: 100%;
    max-width: 400px;
}


.form-wrapper {
    background: linear-gradient(135deg, #00a157, #ffffff, #00a157);
    background-size: 300% 300%;
    animation: gradientAnimation 5s ease infinite;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 25px rgba(0, 0, 0, 0.6);
    /* Black soft shadow */
}


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

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}



.logo-container {

    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;

}

.logo {

    width: 100px;
    height: 80px;


}


h2 {
    font-size: 28px;
    margin: 20px 0 10px;
}

.highlight {
    position: relative;
    color: black;
}

.highlight::after {
    content: '';
    position: absolute;
    bottom: 3px;
    left: 0;
    width: 100%;
    height: 6px;
    background: #21c55d;
    z-index: -1;
}

p {
    margin-bottom: 30px;
    color: #666;
}

.social-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.social-buttons button {
    flex: 1;
    padding: 10px;
    border: 1px solid #ccc;
    background: #f8f8f8;
    cursor: pointer;
}

.google i {
    color: #ea4335;
    margin-right: 6px;
}

.facebook i {
    color: #1877f2;
    margin-right: 6px;
}

.divider {
    text-align: center;
    margin: 20px 0;
    position: relative;
}

.divider::before,
.divider::after {
    content: "";
    height: 1px;
    width: 40%;
    background: #ccc;
    position: absolute;
    top: 50%;
}

.divider::before {
    left: 0;
}

.divider::after {
    right: 0;
}

.divider span {
    background: white;
    padding: 0 10px;
    font-size: 14px;
    color: #777;
}

form input {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 6px;
}

.password-wrapper {
    position: relative;
}

.toggle-password {
    position: absolute;
    right: 10px;
    top: 13px;
    cursor: pointer;
    color: #aaa;
}

.checkbox {
    font-size: 14px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.submit-btn {
    background: #00a157;
    color: white;
    border: none;
    width: 100%;
    padding: 12px;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
}

.signin-link {
    text-align: center;
    margin-top: 20px;
}

.signin-link a {
    color: #21c55d;
    text-decoration: none;
}


/* ================== MEDIA QUERIES ================== */

/* For Tablets (768px - 992px) */
@media (max-width: 992px) {
    .container {
        flex-direction: column;
        height: auto;
    }

    .carousel {
        height: 300px;
        /* Fixed height for tablets */
        flex: none;
        /* Prevents disappearing */
    }

    .signup-form {
        padding: 30px;
    }

    .caption {
        left: 20px;
        bottom: 20px;
        max-width: 80%;
    }

    .caption p {
        font-size: 16px;
        padding: 15px;
    }
}

/* For Small Tablets (576px - 768px) */
@media (max-width: 768px) {
    .carousel {
        height: 250px;
        /* Smaller but still visible */
    }

    .signup-form {
        padding: 20px;
    }

    .form-wrapper {
        max-width: 350px;
    }

    .logo {
        width: 80px;
        height: 60px;
    }

    h2 {
        font-size: 24px;
    }
}

/* For Mobile Phones (Below 576px) */
@media (max-width: 576px) {
    .carousel {
        height: 200px;
        /* Still visible on mobile */
    }

    .caption {
        left: 10px;
        bottom: 10px;
    }

    .caption p {
        font-size: 14px;
        padding: 10px;
        margin-bottom: 10px;
        /* Adjusted spacing */
    }

    .social-buttons {
        flex-direction: column;
    }

    .form-wrapper {
        padding: 15px;
    }

    .submit-btn,
    form input {
        padding: 10px;
    }
}
