* {
    box-sizing: border-box;
}

body {
    background: #f6f5f7;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    font-family: sans-serif;
    height: 100vh;
    margin: 0;
    padding: 20px 0;
    overflow-x: hidden;
}

.form-title {
    font-weight: bold;
    margin: 0;
    font-size: 30px;
}

p {
    font-size: 16px;
    margin: 20px 0 30px;
    line-height: 21px;
}

span {
    font-size: 12px;
}

a {
    color: #4A00E0;
    font-size: 12px;
    text-decoration: none;
    margin: 15px 0;
}

.button, button {
    border-radius: 50px;
    border: 1px solid #08a046;
    background: linear-gradient(to right, #165171, #08a046);
    color: #FFFFFF;
    font-size: 12px;
    font-weight: bold;
    padding: 12px 45px;
    text-transform: uppercase;
    transition: transform 80ms ease-in;
    cursor: pointer;
}

button:active {
    transform: scale(0.95);
}

button:focus {
    outline: none;
}

button.ghost {
    background-color: transparent;
    border-color: #FFFFFF;
}

.formnew {
    background-color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 0 50px;
    height: 100%;
    text-align: center;
}

input, select {
    background-color: #DDDDDD;
    border: none;
    border-radius: 50px;
    padding: 10px 15px;
    margin: 8px 0;
    width: 100%;
    font-family: inherit;
}

.input-group {
    display: flex;
    width: 100%;
    align-items: center;
    margin: 8px 0;
    position: relative;
}

.input-group input, .input-group select {
    margin: 0;
}

.password-toggle {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #727272;
    z-index: 10;
    font-size: 16px;
}

.container.auth-container {
    background-color: #FFFFFF;
    border-radius: 10px;
    box-shadow: 0 14px 28px rgba(0,0,0,0.7);
    position: relative;
    overflow: hidden;
    width: 90%;
    max-width: 1000px;
    min-height: 600px;
}

.form-container {
    position: absolute;
    top: 0;
    height: 100%;
    transition: all 0.6s ease-in-out;
    background-color: #FFFFFF;
}

.sign-in-container {
    left: 0;
    width: 50%;
    z-index: 2;
}

.social-container {
    margin: 20px 0;
}

.social-container a.social {
    border: 1px solid #DDDDDD;
    border-radius: 50%;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    margin: 0 5px;
    height: 40px;
    width: 40px;
    transition: background-color 0.3s ease;
    color: #333;
    font-size: 16px;
}

.social-container a.social:hover {
    background-color: #f9f9f9;
    color: #00b92d;
}

.overlay-container {
    position: absolute;
    top: 0;
    left: 50%;
    width: 50%;
    height: 100%;
    overflow: hidden;
    transition: transform 0.6s ease-in-out;
    z-index: 100;
}

.overlay {
    background: linear-gradient(to right, #165171, #08a046);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: 0 0;
    color: #FFFFFF;
    position: relative;
    left: -100%;
    height: 100%;
    width: 200%;
    transform: translateX(0);
    transition: transform 0.6s ease-in-out;
}

.overlay-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;
}

.overlay-left {
    transform: translateX(-20%);
}

.overlay-right {
    right: 0;
    transform: translateX(0);
}

.mobile-toggle-button {
    display: none;
    background-color: transparent;
    border: none;
    color: #4A00E0;
    font-size: 14px;
    font-weight: bold;
    padding: 10px 0;
    margin-top: 20px;
}

.forgot-password-link,
.back-to-sign-in-link {
    margin: 15px 0;
}

.country-dd {
    width: 100%;
    padding: 8px 40px 8px 12px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("https://cdn-icons-png.flaticon.com/128/2722/2722987.png");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 20px;
    height: 36px;
}

.input-group1 {
    display: flex;
    align-items: center;
    gap: 8px;
}

.mt-60 {
    margin-top: 20px;
}

.form-container.sign-in-container.register-scroll {
    overflow-y: auto;
    overflow-x: hidden;
    max-height: 85vh;
}

@media (max-width: 768px) {
    body {
        padding: 10px 0;
    }

    .formnew {
        padding: 0 20px;
    }

    .container.auth-container {
        width: 95%;
        max-width: none;
        min-height: 610px;
    }

    .password-toggle {
        top: 43%;
    }

    .overlay-container {
        display: none;
    }

    .form-container {
        width: 100% !important;
        left: 0 !important;
        transform: none !important;
        position: absolute;
        height: 100%;
        min-height: 500px;
        padding: 0 10px;
    }

    .sign-in-container {
        opacity: 1;
        z-index: 1;
    }

    .mobile-toggle-button {
        display: block;
    }

    .mt-60 {
        margin-top: 60px !important;
    }
}
