@font-face {
    font-family: 'norsebold';
    src: url('../fonts/norsebold-webfont.woff2') format('woff2'),
         url('../fonts/norsebold-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;

}

:root {
    line-height: 1.5;
}
  
h1, h2, h3, h4, h5, figure, p, ol, ul {
    margin: 0;
}
  
ol[role="list"], ul[role="list"] {
    list-style: none;
    padding-inline: 0;
}
  
h1, h2, h3, h4, h5 {
    font-size: inherit;
    font-weight: inherit;
}
  
img {
    display: block;
    max-inline-size: 100%;
}

body {
    margin: 0;
    display: flex;
    flex-direction: column;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 
        'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 
        'Helvetica Neue', sans-serif;
}

.wrapper {
    display: flex;
    height: 100vh;
}

header {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    flex: 2;
    background-image: url('../images/marcela-laskoski-YrtFlrLo2DQ-unsplash.jpg');
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    width: 100%;
}

main {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 3;  
    gap: 20px;
    background-color: rgba(149, 36, 171, 0.02);
}

.form-header, .form-body, .form-submit, .engage {
    padding: 0 50px;
}

.title { 
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 400px 0;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 10px 0;
}

.logo {
    width: 50px;
}

.logo-title {
    color: white;
    font-family: 'norsebold';
    font-size: 4rem;
    margin-left: 10px;
}

.background-credit, .background-credit a {
    color: white;
    font-size: 0.7rem;
    text-align: center;
    margin-bottom: 7px;
}

h2 {
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 10px;
}

.form-body {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 30px;
    padding-right: 20%;
    padding-bottom: 20px;
    box-shadow: 3px 3px 5px lightgray;
}

.engage {
    margin: 0;
    padding: 20px 0 8px 50px;
}

.form-body, .engage {
    background-color: white;
}

label {
    flex: 1 1 40%;
    font-weight: 600;
}

input:focus {
    outline: 1.1px solid rgb(44, 160, 236);
    box-shadow: 3px 3px 5px lightgray;
}

input:user-invalid {
    outline: 1.1px solid red;
}

.password::after {
    display: block;
    content: ' (at least 6 characters)';
    font-size: 0.6rem;
    font-weight: 400;
    color: red;
}

span {
    display: block;
}

.form-submit {
    margin-top: 30px;
}

.submit-button {
    background-color: rgb(149, 36, 171);
    color: white;
    font-size: 1rem;
    padding: 10px 30px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
}

.login-question {
    font-size: 0.9rem;
}