@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');
*{
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: "Inter", sans-serif;

}
:root{
    --surface-bg: #fff;
    --input-field: #fafafa;
    --input-border: #dfdfdf;
    --placeholer-text: #757575;
    --button-primary: #1e1e1e;
    --button-secondary: #dfdfdf;
    --stroke: #dfdfdf;
    --text-black: #1e1e1e;
    --text-white: #fafafa;
    --text-secondary: #757575;
    --base-black: #1e1e1e;
    --base-white: #fff;
    --primary-color: orangered;
}
body{
    color: var(--text-primary) ;
}
.main-container{
    height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: row;
}

/* Banner Container --------------------------------------- */
.banner-container{
    height: 100%;
    width: 60%;
    background-image: url("https://i.pinimg.com/1200x/2b/98/88/2b9888c054781328a6ffad2370ead6f4.jpg");
    background-position: center;
    background-size: cover;
}

/* Login Container --------------------------------------- */
.login-container{
    height: 100%;
    width: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 24px;
    /* padding: 0 60px; */
}
/* Header */
.login-container .header{
    margin-bottom: 16px;
}
.login-container .header p{
    font-size: 14px;
    color: var(--text-secondary);
    margin-top: 8px;
}
/* Form */
.form-container{
    display: flex;
    flex-direction: column; 
    gap: 16px;
    /* width: 100%; */
}
.user-input{
    display: flex;
    flex-direction: column;
}
.user-input label{
    font-size: 14px;
    margin-bottom: 8px;
}
.user-input input{
    height: 45px;
    width: 380px;
    padding: 0 12px;
    border: 1px solid var(--input-border);
    border-radius: 6px;
    background: var(--input-field);
    outline: none;
    font-size: 14px;
    z-index: 1;
    /* transition: all .1s ease; */
}
.user-input input:focus{
    /* border: 2px solid var(--placeholer-text); */
    outline: 2px solid var(--base-black);
    background: #f6f6f6;
}

/* Error Message */
.error-message {
    color: #e04747;
    /* background: #fff3f3; */
    padding: 4px;
    font-size: 12px;
    /* position: relative;
    top: -8px;
    z-index: 0; */
}

/* Submit Button */
.sumbit-button button{
    height: 45px;
    width: 100%;
    margin-top: 4px;
    margin-bottom: 16px;
    border: none;
    border-radius: 6px;
    color: var(--text-white);
    background: var(--button-primary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    box-shadow: 0px 16px 20px #00000020;
    transition: all .3s ease;
}
.sumbit-button button:hover{
    background: #272727;
}
.sumbit-button button:active{
    background: #000000;
}

/* Or Splitter */
.or-splitter{
    width: 100%;
    display: flex;
    flex-direction: row;
    gap: 8px;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    white-space: nowrap;
    color: var(--text-secondary);
    margin-bottom: 16px;
}
.or-splitter::before{
    width: 100%;
    content: "";
    border: 1px solid var(--stroke);
}
.or-splitter::after{
    width: 100%;
    content: "";
    border: 1px solid var(--stroke);
}

/* Alternate Login */
.alternate-login{
    display: flex;
    flex-direction: row;
    gap: 8px;
    justify-content: space-between;
    align-items: center;
}
.alternate-login button{
    height: 45px;
    width: 100%;
    border: 1px solid var(--button-secondary);
    background: var(--input-field);
    border-radius: 6px;
    cursor: pointer;
}

/* Register Account */
.register-account{
    text-align: center;
    margin: 8px 0;
    font-size: 14px;
}
.register-account a{
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 500;
}

/* ===================== RESPONSIVE ===================== */

@media (max-width: 900px) {
    .banner-container {
        width: 40%;
    }
    .login-container {
        width: 60%;
    }
}

@media (max-width: 600px) {

    .main-container {
        flex-direction: column;
    }

    .banner-container {
        display: none;
    }

    .login-container {
        width: 100%;
        height: 100%;
        padding: 48px 24px;
        justify-content: flex-start;
        overflow-y: auto;
    }

    .form-container {
        width: 100%;
    }

    .user-input input {
        width: 100%;
        min-width: unset;
    }

    .header h2 {
        font-size: 22px;
    }

    .header p {
        font-size: 13px;
    }

    .sumbit-button button {
        width: 100%;
    }

    .alternate-login button {
        font-size: 13px;
    }

}