@import url('https://fonts.googleapis.com/css2?family=Figtree:ital,wght@0,300..900;1,300..900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Figtree", serif;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: #111f400a;
    /* background: linear-gradient(90deg, #e2e2e2, #c9d6ff); */
    /* background: linear-gradient(90deg, #111f405e, #ee6e2626); */
    /* background: #ee6e2626; */
}

.auth-container {
    position: relative;
    width: 850px;
    height: 550px;
    background: #fff;
    border-radius: 30px;
    box-shadow: 0 0 30px rgba(0, 0, 0, .2);
    overflow: hidden;
    display: flex;
    margin: 1em;
}

.auth-form {
    position: relative;
    width: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px;
    z-index: 2; 
}

.auth-form h1 {
    font-size: 36px;
    margin-bottom: 10px;
}

.auth-form p {
    font-size: 14.5px;
    margin-top: 15px;
}

.input-group {
    position: relative;
    margin: 30px 0;
}

.input-group input {
    width: 100%;
    padding: 13px 50px 13px 20px;
    background: #eee;
    border-radius: 8px;
    border: none;
    outline: none;
    font-size: 16px;
    font-weight: 500;
}

.input-group i {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
}

.forgot-password {
    margin-bottom: 15px;
}

.forgot-password a {
    font-size: 14.5px;
    color: #333;
}
.submit-btn {
    display: flex;
    width: 100%;
    height: 48px;
    background: #EE6E27;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-size: 16px;
    color: #fff;
    font-weight: 600;
    position: relative;
    justify-content: center;
    align-items: center;
}

.toggle-container {
    position: relative;
    width: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: #122040;
    padding: 40px;
    z-index: 1; 
}

.toggle-container::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: #122040;
    border-radius: 30px;
    top: 0;
    left: 0;
    z-index: -1; 
}
.welcome-panel {
    /* position: absolute; */
    /* width: 50%; */
    height: 100%;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: .6s ease-in-out;
}
.welcome-panel h1 {
    font-size: 36px;
    margin-bottom: 10px;
}

.welcome-panel p {
    font-size: 14.5px;
    margin-top: 15px;
}

.spinner {
    border: 2px solid #f3f3f3; /* Light grey */
    border-top: 2px solid #fff; /* White spinner */
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
    transform: translate(-50%, -50%);
    display: none;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@media screen and (max-width: 650px) {

    .auth-container {
        flex-direction: column;
        height: auto;
    }

    .auth-form,
    .toggle-container {
        width: 100%;
        padding: 20px;
    }

    .toggle-container::before {
        border-radius: 20px;
    }
}
