@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: rgb(251 85 0 / 81%);
}

.wrapper {
    position: relative;
    width: 90%; /* Adjusted for responsiveness */
    max-width: 750px; /* Maximum width for larger screens */
    height: auto; /* Adjusted for responsiveness */
    min-height: 450px; /* Minimum height for smaller screens */
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 0 25px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    margin: 20px; /* Added margin for spacing */
}

.wrapper .form-box {
    position: relative; /* Changed to relative for responsiveness */
    width: 100%; /* Full width for smaller screens */
    height: auto; /* Adjusted for responsiveness */
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 20px; /* Added padding for spacing */
}

.wrapper .form-box.login {
    left: 0;
    padding: 0 20px; /* Adjusted padding for smaller screens */
}

.wrapper .form-box.login .animation {
    transform: translateX(0);
    transition: 0.7s ease;
    opacity: 1;
    filter: blur(0);
}

.wrapper.active .form-box.login .animation {
    transform: translateX(-120%);
    transition-delay: calc(0.1s * var(--data));
    opacity: 0;
    filter: blur(10px);
}

.wrapper .form-box.signup {
    right: 0;
    padding: 0 20px; /* Adjusted padding for smaller screens */
}

.wrapper .form-box.signup .animation {
    transform: translateX(120%);
    transition: 0.7s;
}

.wrapper.active .form-box.signup .animation {
    transform: translateX(0);
    transition-delay: calc(0.1s * var(--data));
}

.form-box h2 {
    font-size: 24px; /* Adjusted font size for smaller screens */
    color: #290e02;
    text-align: center;
}

.form-box .input-box {
    position: relative;
    width: 100%;
    height: 45px;
    margin: 20px 0; /* Adjusted margin for smaller screens */
}

.input-box input {
    width: 100%;
    height: 100%;
    background: transparent;
    border: none;
    outline: none;
    border-bottom: 2px solid #000;
}

.input-box label {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    color: #555;
    pointer-events: none;
    font-size: 14px; /* Adjusted font size for smaller screens */
    transition: 0.5s;
}

.input-box input:focus ~ label,
.input-box input:not(:placeholder-shown) ~ label {
    top: -5px;
    color: #000;
}

.input-box i {
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    color: #8b7a7a;
    font-size: 16px; /* Adjusted font size for smaller screens */
    transition: 0.5s;
}

.input-box input:focus ~ i,
.input-box input:not(:placeholder-shown) ~ i {
    color: #000;
}

.btn {
    position: relative;
    width: 100%;
    height: 45px;
    background: #290e02;
    color: #fff;
    border: none;
    outline: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
}

.form-box .reg-link {
    font-size: 14px; /* Adjusted font size for smaller screens */
    color: #555;
    text-align: center;
    margin: 20px 0 10px;
}

.reg-link p a {
    color: #000;
    text-decoration: none;
    font-weight: 600;
}

.reg-link p a:hover {
    text-decoration: underline;
}

.wrapper .info-text {
    position: absolute;
    width: 50%;
    height: 100%;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.wrapper .info-text.login {
    right: 0;
    text-align: right;
    padding: 0 40px 180px 150px;
}


.wrapper .info-text.signup {
    text-align: center; /* Centered text for smaller screens */
    padding: 0 20px 20px; /* Adjusted padding for smaller screens */
    pointer-events: none;
}

.wrapper .info-text.signup .animation {
    transform: translateX(-120%);
    transition: 0.7s ease;
}

.wrapper.active .info-text.signup .animation {
    transform: translateX(0);
    transition-delay: calc(0.1s * var(--data));
}

.info-text h2 {
    font-size: 24px; /* Adjusted font size for smaller screens */
    line-height: 1.4;
    text-transform: uppercase;
    color: #fff;
}

.info-text p {
    font-size: 14px; /* Adjusted font size for smaller screens */
    color: #fff;
}

.wrapper .info-text.login .animation {
    transform: translateX(0);
    transition: 0.7s ease;
    opacity: 1;
    filter: blur(0);
}

.wrapper.active .info-text.login .animation {
    transform: translateX(120%);
    transition-delay: calc(0.1s * var(--data));
    opacity: 0;
    filter: blur(10px);
}

.wrapper .bg-animate {
    position: absolute;
    top: -4px;
    right: 0;
    width: 100%; /* Adjusted for responsiveness */
    height: 100%; /* Adjusted for responsiveness */
    background: #290e02;
    transform: rotate(10deg) skewY(40deg);
    transform-origin: bottom right;
    transition: 1.5s ease;
}

.wrapper.active .bg-animate {
    transform: rotate(0deg) skewY(0deg);
    transition-delay: 0.5s;
}

.wrapper .bg-animate2 {
    position: absolute;
    top: 100%;
    left: 0; /* Adjusted for responsiveness */
    width: 100%; /* Adjusted for responsiveness */
    height: 100%; /* Adjusted for responsiveness */
    background: #fff;
    transform: rotate(0deg) skewY(0deg);
    transform-origin: bottom left;
    transition: 1.5s ease;
}

.wrapper.active .bg-animate2 {
    transform: rotate(-11deg) skewY(-41deg);
    transition-delay: 1.2s;
}

/* Circular Background */
.circle-background {
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
    padding: 20px; /* Adjusted padding for smaller screens */
    margin-top: -30px; /* Adjusted margin for smaller screens */
}

.login-image {
    width: 100%; /* Adjusted for responsiveness */
    height: auto;
    object-fit: cover;
    max-width: 100%; /* Ensures the image doesn't exceed its container */
}

/* Login Header */
.login-header {
    position: relative;
    text-align: center;
    font-size: 16px; /* Adjusted font size for smaller screens */
    color: #fff;
    background: #fb5500;
    padding: 20px; /* Adjusted padding for smaller screens */
    border-radius: 50%;
    box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.3);
    width: 80px; /* Adjusted width for smaller screens */
    height: 80px; /* Adjusted height for smaller screens */
    margin: 0 auto;
    background-image: url('/img/123img.png');
    background-size: 110px, cover;
    background-position: center;
}

/* Powered By Text */
.powered-by {
    margin-top: 90px; /* Adjusted margin for smaller screens */
    padding: 10px; /* Adjusted padding for smaller screens */
    text-align: center;
}

.powered-by-text {
    font-size: 12px; /* Adjusted font size for smaller screens */
    color: #555;
    margin: 5px 0; /* Adjusted margin for smaller screens */
}

/* Media Queries for Responsiveness */
@media (min-width: 768px) {
    .wrapper {
        height: 450px; /* Fixed height for larger screens */
    }


    .wrapper .form-box {
        position: absolute;
        width: 50%;
        height: 75%;
        padding: 0 40px; /* Adjusted padding for larger screens */
    }

    .wrapper .form-box.login {
        padding: 0 60px 0 40px;
    }

    .wrapper .form-box.signup {
        padding: 0 40px 0 60px;
    }

    .form-box h2 {
        font-size: 32px; /* Adjusted font size for larger screens */
    }

    .input-box label {
        font-size: 16px; /* Adjusted font size for larger screens */
    }

    .input-box i {
        font-size: 18px; /* Adjusted font size for larger screens */
    }

    .info-text h2 {
        font-size: 36px; /* Adjusted font size for larger screens */
    }

    .info-text p {
        font-size: 16px; /* Adjusted font size for larger screens */
    }

    .login-header {
        font-size: 24px; /* Adjusted font size for larger screens */
        width: 90px; /* Adjusted width for larger screens */
        height: 90px; /* Adjusted height for larger screens */
    }

    .powered-by {
    margin-top: 370px; /* Adjusted margin for smaller screens */
    padding: 10px; /* Adjusted padding for smaller screens */
    text-align: left;
    margin-left:2%;
}

    /* Enhanced Image Responsiveness for Larger Screens */
    .circle-background {
        padding: 10%; /* Adjusted padding for larger screens */
    }

    .login-image {
        margin-top:170%;
        margin-left:-30%;
        width: 200%; /* Adjusted width for larger screens */
        max-width: 250px; /* Maximum width for larger screens */
    }
}