:root {
    --text-color: rgb(171, 171, 171);
    --text-color-1: rgb(255, 255, 255);
    --placeholder-color:rgb(186, 186, 186);
    --text-font: roboto,Verdana, Geneva, Tahoma, sans-serif;
    --bg-color: whitesmoke;
    --image-size: 50px; 
}

*{
    /* outline: 2px solid red; */
}

p {
    margin: 0;
    color: var(--text-color-1);
    text-align: center;
    margin-bottom: 9%;
}

hr {
    background-color: var(--placeholder-color);
    width: 100%;
    margin-top: 3px;
    outline: 1px solid rgb(30, 100, 220);
    border: none;
    transition: background-color 0.5s ease;
}

.hr1{
    margin-bottom: 25px;
}

.hr2{
    margin-bottom: 10px;
}

body {
    margin:0;
    padding: 0;
    background-color: #121317;
}

/* #Icon*/

.socail-media-icons {
    width: var(--image-size);
}

.input-icon{
    width: 18px;
    margin: 10px;
}

#show-or-hide-password {
    width: 20px;
    margin: 6px;
    margin-bottom: 3px;
    margin-left: 25%;
}

#show-or-hide-password:hover {
    cursor: pointer;
}

/* #Login form */

.login-form {
    display: flex;
    font-family: var(--text-font);
    background-color: #181A1E;
    justify-content: center;
    box-sizing: border-box;
    min-height: 100vh;
    border-radius: 10px;
    padding-top: 3%;
    padding-bottom: 3%;
    margin: 0 auto;
}

.username-error {
    margin: 0;
}

#password-error {
    margin: 0;
}

form {
    display: flex;
    flex-direction: column;
    width: 90%;
    max-width: 350px;
}

.form-title {
    color: white;
    display: flex;
    justify-content: center;
    margin: 0;
    padding: 0;
    margin-bottom: 5%;
}

label {
    color: white;
}

input:focus {
    outline: none;
    box-shadow: none;
    background-color: transparent;
}

input[type="text"],  input[type="password"]{
    color: white;
    border:none;
    background-color: transparent;
    font-size: medium;
}

input:user-valid{
    color: rgb(0, 132, 185);
}

input:user-invalid{
    color:red;
}
.input-and-logo {
    display: flex;
    align-items: center;
}

::placeholder{
    color:var(--placeholder-color);
}

.input-field{
    display: flex;
    flex-direction: column;
    justify-items: center;
    margin: 0;
    padding: 0;
}

.input-field:focus-within hr {
    background-color: rgba(23, 173, 232, 1);
    height: 2px;
}

.forgot-password-link {
    text-align: right;
    text-decoration: none;
    color:var(--text-color)   
}

.login-btn {
    margin-top: 10%;
    text-align: center;
    padding: 7%;
    cursor: pointer;
    padding-top: 4.5%;
    padding-bottom: 4.5%;
    border-radius: 30px;
    border: none;
    margin-bottom: 10%;
    background-color: rgb(30, 100, 220);
    color: whitesmoke;
    box-shadow: 0 0 5px rgba(40, 40, 40, 0.285);
    transition: 0.2s ease;
}

.login-btn:hover {
    background-color: rgb(30, 115, 220);
}

.login-btn:active {
    opacity: 0.9;
    transform: translateY(4px) translateX(2px) scale(0.98);
    box-shadow: none;
}

.sign-up {
    display: flex;
    justify-content: center;
}

.signup-option {
    display: flex;
    width: 65%;
    align-items: center;
    justify-content: center;
    justify-content: space-between;
    margin-bottom: 25%;
}

.external-link {
    text-decoration: none;
    color:var(--text-color);
    text-align: center;
    margin-bottom: 5%;
}

/* #Responsiveness */

@media (min-width: 768px) {
    form {
        max-width: 400px;
    }

    .login-form {
        min-height: 500px;
        width: 100%;
        max-width: 350px;  
        padding: 20px;
        border-radius: 15px;
        display: flex;
        box-shadow: 0 0 12px rgba(9, 9, 9, 0.285);
    }

    .login-btn {
        padding: 12px 0;
        font-size: medium;
    }

    .signup-option {
        gap: 2%;
    }

    body {
        margin: 0;
        align-items: center;
        justify-content: center;
        height: 100vh;
        display: flex;
    }

    #show-or-hide-password {
        margin-left: 6px;
    }

}