@import url('https://fonts.googleapis.com/css2?family=Rubik&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Rubik', sans-serif;
    scroll-behavior: smooth;
}


body {
    background: var(--primary-color);
}


html {
    font-size: 62.5%;
}

:root {

    --primary-color: black;
    --secondary-color: #b6b6b6;

}

::-webkit-scrollbar {
    width: 1rem;
}

::-webkit-scrollbar-track {

    background: var(--secondary-color);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 1.2rem;
    transition: all 0.3sec ease;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

section {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    width: 100%;
}

form {

    background: var(--secondary-color);
    padding: 2rem;
    width: 40%;
    border-radius: 1.7rem;
    box-shadow: rgba(0, 0, 0, 0.25) 0px 14px 28px, rgba(0, 0, 0, 0.22) 0px 10px 10px;
}

form h2 {
    font-size: 27px;
    text-align: center;
    margin: 0px 0 30px;
}

form .form-group {
    margin-bottom: 15px;
    position: relative;
}

form label {
    display: block;
    font-size: 15px;
    margin-bottom: 7px;
}

form input,
form select {
    height: 45px;
    padding: 10px;
    width: 100%;
    font-size: 15px;
    outline: none;
    background: #fff;
    border-radius: 1rem;
    border: 2px solid #525252;

}

form input:focus,
form select:focus {
    border-color: #9a9a9a;

}

form input.error,
form select.error {

    border-color: red;
    background: #f9f0f1;
}

form small {
    font-size: 14px;
    margin-top: 5px;
    display: block;
    color: red;
}

form .password i {
    position: absolute;
    right: 0px;
    height: 45px;
    top: 28px;
    font-size: 13px;
    line-height: 45px;
    width: 45px;
    cursor: pointer;
    color: #939393;
    text-align: center;
}

.submit-btn {
    margin-top: 30px;
}

.submit-btn input {
    color: white;
    border: none;
    height: auto;
    font-size: 16px;
    padding: 13px 0;
    border-radius: 1rem;
    cursor: pointer;
    font-weight: 500;
    text-align: center;
    background: hsl(206, 100%, 40%);
    transition: 0.2s ease;
    box-shadow: rgba(0, 0, 0, 0.25) 0px 14px 28px, rgba(0, 0, 0, 0.22) 0px 10px 10px;
}

.submit-btn input:hover {
    background: rgb(45, 177, 230);
}



@media (max-width:950px) {

    form {
        width: 60%;
    }
}


@media (max-width:640px) {

    form {
        width: 70%;
    }
}

@media (max-width:470px) {

    form {
        width: 80%;
    }
}

@media (max-width:400px) {

    form {
        width: 90%;
    }
}

@media (max-width:300px) {

    form {
        width: 95%;
    }
}