/*Google Fonts*/
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@200;300;400;500;600;700;800&display=swap');

/*Resetting predefined styles*/
* {
    margin: 0;
    padding: 0;
    text-decoration: none;
    box-sizing: border-box;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
    -webkit-text-size-adjust: none;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html {
   height: 100vh;
}

input:-webkit-autofill,
input:-webkit-autofill:focus {
    transition: background-color 0s 600000s, color 0s 600000s;
}

/* Basic Styles*/
body {
    background: #f0f0f0;
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    overflow: hidden;
    height: 90svh;
    margin: auto;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    flex-flow: row wrap;
    -ms-flex-flow: row wrap;
}

.container {
    max-width: 1200px;
    margin: 0px auto;
}

@media screen and (max-width: 1200px) {
    .container {
        max-width: 970px;
    }
}

@media screen and (max-width: 992px) {
    .container {
        max-width: 750px;
    }
   
}

@media screen and (max-width: 767px) {
    .container {
        max-width: none;
    }
}

@media screen and (min-width: 768px) {
    body {
        height: 100svh;
    }
} 

/* ------Styling the form*--------*/

/* Clear Browser Eye */
input::-ms-reveal,
input::-ms-clear {
    display: none;
}

img {
    max-width: 100%;
    margin-bottom: 20px;
}

.formLogo {
    margin-bottom: 35px;
}

.formLogin {
    width: 28.125rem;
    height: 40.625rem;
    flex-shrink: 0;
    padding: 3.125rem 2.5rem;
    border-color: #878787;
    border: 0.5px solid;
    border-radius: 10px;
    background: #ffffff;
    color: #878787;
    box-shadow: 0 0.4px 0.4px rgba(128, 128, 128, 0.109), 0 1px 1px rgba(128, 128, 128, 0.155), 0 2.1px 2.1px rgba(128, 128, 128, 0.195), 0 4.4px 4.4px rgba(128, 128, 128, 0.241), 0 12px 12px rgba(128, 128, 128, 0.35);
}

@media screen and (max-width: 767px) {
    .formLogin {
        width: 21.875rem;
        height: 33.75rem;
    }
   
}

@media screen and (max-width: 440px) {
    .formLogin {
        width: 20.625rem;
        height: 32.5rem;
    }
}

@media screen and (max-width: 320px) {
    .formLogin {
        width: 18.75rem;
        height: 31.25rem;
    }
}

.formGroup {
    display: flex;
    margin-bottom: 35px;
    justify-content: space-between;
    position: relative;
}

@media screen and (max-width: 320px) {
    .formGroup {
        margin-bottom: 75px;
    }
}

.formInput {
    top: 0;
    left: 0;
    width: 100%;
    height: 50px;
    border: 0.6px solid #282828;
    border-radius: 6px;
    font-family: inherit;
    font-size: inherit;
    background: none;
    padding: 1rem;
    color: #020202;
    transition: border .4s ease-in-out;
}

@media screen and (max-width: 440px) {
    .formInput {
        height: 40px;
        font-size: 16px;
    }
}

@media screen and (max-width: 320px) {
    .formInput {
        height: 40px;
        font-size: 16px;
    }
}

.formInput:focus {
    outline: none;
    border: 2px solid #000000;
}

.formInput:hover {
    border: 1px solid #ababab;
}

label {
    position: absolute;
    top: 12px;
    left: 16px;
    padding: 0 0.5rem;
    color: #ababab;
    cursor: text;
    letter-spacing: 0.5px;
    background-color: #ffffff;
    pointer-events: none;
    transition: all 0.25s ease;
}

@media screen and (max-width: 440px) {
    label {
        top: 10px;
        font-size: 14px;
    }
}

.formInput:focus,
.formInput:not(:placeholder-shown),
.formInput:-webkit-autofill {
    background-color: #ffffff;
}

    .formInput:focus + label,
    .formInput:not(:placeholder-shown) + label,
    .formInput:-webkit-autofill + label {
        top: -0.5rem;
        font-size: 0.8rem;
        left: 0.8rem;
    }

@media screen and (max-width: 440px) {
    .formInput:focus + label,
    .formInput:not(:placeholder-shown) + label,
    .formInput:-webkit-autofill + label {
        top: -0.5rem;
        font-size: 0.7rem;
        left: 0.5rem;
    }
}

.formLogin .formGroup #toggleBtn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
}

@media screen and (max-width: 440px) {
    .formLogin .formGroup #toggleBtn {
        top: 5px;
    }
}

.formLogin .formGroup #toggleBtn::after {
    content: '\f070';
    font-family: fontAwesome;
}

.formLogin .formGroup #toggleBtn.hide::after {
    content: '\f06e';
    font-family: fontAwesome;
}

.formBtn {
    font-family: 'Montserrat', sans-serif;
    height: 50px;
    width: 100%;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 0.5px;
    border: none;
    border-radius: 6px;
    background: #000;
    outline: none;
    color: #fff;
    cursor: pointer;
    transition: background-color .4s ease-in-out;
}

@media screen and (max-width: 440px) {
    .formBtn {
        height: 40px;
    }
   
}

.formBtn:hover {
    background-color: #3c3b3b;
}

.formWarning {
    font-size: 14px;
    color: #d92424;
    display: block;
    text-align: center;
    margin-top: 10px;
}

/* -----Styling the form End-------*/
