/*Website designed by Daniel Strathearn (takeflight@flight-sim.co.uk). Copyright © DS Flight Simulator 2023. All rights reserved.*/

@import url(branding.css);

body {
    --color-primary: #b31616;
    --color-primary-dark: #990b0b;
    --color-secondary: #252c6a;
    --color-error: #cc3333;
    --color-success: #4bb544;
    --border-radius: 4px;

    margin: 0;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    background: url(../images/login-background.jpg);
    background-size: cover;
  	background-position: center;
}

.container {
    width: 450px;
    max-width: 450px;
    margin: 1rem;
    padding: 2rem;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.2);
    border-radius: var(--border-radius);
    background: #ffffff;
}

.container,
.form__input,
.form__button {
    font: 500 1.1rem 'Quicksand', sans-serif;
}

.form--hidden {
    display: none;
}

.form--visible {
    display: inherit;
}

.form > *:first-child {
    margin-top: 0;
}

.form > *:last-child {
    margin-bottom: 0;
}

.form__title {
    margin-bottom: 2rem;
    text-align: center;
}

.form__message {
    text-align: center;
    margin-bottom: 1rem;
}

.form__message--success {
    color: var(--color-success);
}

.form__message--error {
    color: var(--color-error);
}

.form__input-group {
    margin-bottom: 1rem;
}

.form__input {
    display: block;
    width: 100%;
    padding: 0.75rem;
    box-sizing: border-box;
    border-radius: var(--border-radius);
    border: 1px solid #dddddd;
    outline: none;
    background: #eeeeee;
    transition: background 0.2s, border-color 0.2s;
}

.form__input--checkbox {
    float: left;
    width: 20px;
    height: 20px;
    margin-top: 2px;
    margin-right: 10px;
}

.form__input:focus {
    border-color: var(--color-primary);
    background: #ffffff;
}

.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-radius);
    outline: none;
    cursor: pointer;
    background: var(--color-primary);
}

.form__button:hover {
    background: var(--color-primary-dark);
}

.form__button:active {
    transform: scale(0.98);
}

.form__text {
    text-align: center;
}

.form__link {
    color: var(--color-secondary);
    text-decoration: none;
    cursor: pointer;
}

.form__link:hover {
    text-decoration: underline;
}

h4  {
    text-align: center;
    line-height: auto;
}

br {
    line-height: 50%;   
}

@media screen and (min-width:901px) {
    .navbar {
        position: fixed;
        height: 50px;
        top: 7px;
        width: 99%;
    }
}

@media screen and (max-width:900px) {
    .navbar {
        position: fixed;
        height: 100px;
        top: 4px;
        width: 99%;
    }
}