body{
    /* Allows us to refrence this colours throughout the stylesheet */
    --color-error: #c3333c;
    --color-success: #4bb544;

    margin: 0;
    height: 100vh;
    display: flex;
    align-items: center;
    /* Ensures items/buttons are all in the center of the page */
    justify-content: center;
    font-size: 18px;
    /* Need to gray out the background slightly later on */
    /* vecteezy, & GankGroup. (n.d.). Travel background with Airplane and Sky with Cloud [Background]. https://www.vecteezy.com/vector-art/4261818-travel-background-with-airplane-and-sky-with-cloud-vector-illustration */
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url(../img/traveling.jpg);
    background-size: cover;
}

.container{
    width: 400px;
    max-width: 400px;
    margin: 1rem;
    padding: 2rem;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.2);
    border-radius: var(--border-radiuse);
    background: #ffffff;
}

/* Targets each element and sets the font */
.container,
.form__input,
.form__button{
    font: 500 1rem 'Quicksand', Arial;
}

/* Used with javascript in order to swap between two states */
.form--hidden{
    display: none;
}

/* Ensures the padding is equal */
.form > *:first-child{
    margin-top: 0;
}
.form > *:last-child{
    margin-bottom: 0;
}

.form__title{
    text-align: center;
} 

.form__message{
    text-align: center;
    margin-bottom: 1rem;
}

/* Targets the success and error messages and sets the colour variable */
.form__message--success{
    color: var(--color-success);
}

.form__message--error{
    color: var(--color-error);
}

/* Creates space between the buttons */
.form__input-group{
    margin-bottom: 1rem;
}

/* Styles the input buttons */
.form__input{
    display: block;
    width: 100%;
    padding: 0.75rem;
    box-sizing: border-box;
    border-radius: var(--border-radiuse);
    border: 1px solid #dddddd;
    outline: none;
    background: #eeeeee;
    /* Allows there to be a change on the text box when it is in use */
    transition: background 0.2, border-color 0.2;
}

.form__input:focus{
    border-color: #4e7ac2;
    background: #ffffff;
}

/* Changes the box highlight to show the error color instead */
.form__input--error{
    color: var(--color-error);
    border-color:var(--color-error) ;
}

.form__input--error-message{
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: var(--color-error);
}

.form__button{
    width: 100%;
    padding: 1rem 2rem;
    font-weight: bold;
    font-size: 1.1rem;
    color: #ffffff;
    border: none;
    border-radius: var(--border-radiuse);
    outline: none;
    cursor: pointer;
    background: #67a1fe;
}

/* Changes the state of the button when the user hovers over it */
.form__button:hover{
    /* change this later */
    background: #4e7ac2;
}

.form__button:active{
    transform: scale(0.98);
}

/* Text for links not aligning to center needs to be fixed */
.form__text{
    text-align: center;
}

.form__link{
    /* temp color */
    color: blue;
    text-decoration: none;
    /* Used to change the state of the cursor to help show the user the links can be clicked on */
    cursor: pointer;
}


/* When hovering over the links they will now become underlined */
/* Automatically the Forgot password link is underlined need to fix this */
.form__link:hover{
    text-decoration: underline;
}

.nav_position{
    position: fixed; /* or absolute */
    top: 0;
    left: 0; /* Adjust if necessary */
    width: 100%;
    padding: 10px 20px;

}

/* This is needed due to how the styling sets all content within the center of the page */
.navbar {
    overflow: hidden;
    background-color: #323031;
    font-family: Arial;
    /* Add the following properties to make navbar stick to the top */
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000; /* Adjust as needed */
}