/* life-savers-regular - latin */
@font-face {
    font-family: 'Life Savers';
    font-style: normal;
    font-weight: 400;
    src: url('./resources/fonts/life-savers-v18-latin-regular.eot'); /* IE9 Compat Modes */
    src: local(''),
         url('./resources/fonts/life-savers-v18-latin-regular.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
         url('./resources/fonts/life-savers-v18-latin-regular.woff2') format('woff2'), /* Super Modern Browsers */
         url('./resources/fonts/life-savers-v18-latin-regular.woff') format('woff'), /* Modern Browsers */
         url('./resources/fonts/life-savers-v18-latin-regular.ttf') format('truetype'), /* Safari, Android, iOS */
         url('./resources/fonts/life-savers-v18-latin-regular.svg#LifeSavers') format('svg'); /* Legacy iOS */
}
/* life-savers-700 - latin */
@font-face {
    font-family: 'Life Savers 700';
    font-style: normal;
    font-weight: 700;
    src: url('./resources/fonts/life-savers-v18-latin-700.eot'); /* IE9 Compat Modes */
    src: local(''),
         url('./resources/fonts/life-savers-v18-latin-700.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
         url('./resources/fonts/life-savers-v18-latin-700.woff2') format('woff2'), /* Super Modern Browsers */
         url('./resources/fonts/life-savers-v18-latin-700.woff') format('woff'), /* Modern Browsers */
         url('./resources/fonts/life-savers-v18-latin-700.ttf') format('truetype'), /* Safari, Android, iOS */
         url('./resources/fonts/life-savers-v18-latin-700.svg#LifeSavers') format('svg'); /* Legacy iOS */
}
/* life-savers-800 - latin */
@font-face {
    font-family: 'Life Savers 800';
    font-style: normal;
    font-weight: 800;
    src: url('./resources/fonts/life-savers-v18-latin-800.eot'); /* IE9 Compat Modes */
    src: local(''),
         url('./resources/fonts/life-savers-v18-latin-800.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
         url('./resources/fonts/life-savers-v18-latin-800.woff2') format('woff2'), /* Super Modern Browsers */
         url('./resources/fonts/life-savers-v18-latin-800.woff') format('woff'), /* Modern Browsers */
         url('./resources/fonts/life-savers-v18-latin-800.ttf') format('truetype'), /* Safari, Android, iOS */
         url('./resources/fonts/life-savers-v18-latin-800.svg#LifeSavers') format('svg'); /* Legacy iOS */
}

*,
*::before,
*::after {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
}

.container {
    display: flex;
    width: 100vw;
    font-family: sans-serif;
}



/* Left-side logo */

.left-image {
    background-image: url('./resources/tvbackground.jpg');
    background-size: cover;
    width: 40vw;
}

.logo-container {
    background-color: rgb(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    position: relative;
    top: 20vh;
    padding: 10px 0;
    height: auto;
}

.logo-container > img {
    width: 15%;
}

.logo-container > img,
.logo-container > h1 {
    opacity: 1;
}

h1 {
    color: white;
    font-family: 'Life Savers 800', sans-serif;
    font-size: 50px;
    letter-spacing: 0.02em;
}



/* Right-side form */

.right-form {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 60vw;
    background-color: rgb(128, 128, 0, 0.2);
    height: 100vh;
}

.middle-form,
.bottom-button {
    padding-left: 40px;
    padding-right: 40px;
}

.top-descriptor {
    padding: 0px 150px 50px 40px;
    margin-top: -20px;
}

.top-descriptor > p,
span,
.middle-form > p {
    font-family: 'American Typewriter', serif;
    font-size: 20px;
    font-weight: 600;
    letter-spacing: 0.01em;
    line-height: 27px;
}

span {
    font-style: italic;
}

.middle-form {
    display: flex;
    flex-direction: column;
    background-color: white;
    padding-top: 20px;
    padding-bottom: 20px;
    box-shadow: 0px 3px 5px rgba(0, 0, 0, 0.2);
}

form {
    display: grid;
    grid-gap: 0px 80px;
    grid-template-columns: repeat(2, 1fr);
    margin-top: 20px;
    margin-right: 200px;
}

.grid {
    display: flex;
    flex-direction: column;
    position: relative;
    padding-bottom: 25px;
    min-height: 40px;
}

label {
    font-size: 10px;
    letter-spacing: 0.08em;
    font-family: 'Gill Sans', sans-serif;
    padding-bottom: 1px;
}

input {
    width: 100%;
    border: 1px solid rgb(221, 221, 221);
    border-radius: 4px;
    padding: 5px 7px;
    min-height: 15px;
}

input:focus {
    box-shadow: 1px 3px 5px rgba(0, 0, 0, 0.2);
    outline: none;
}

#email:focus:invalid,
#phone:focus:invalid,
#password:focus:invalid,
#pw-confirm:focus:invalid {
    border: 1px solid rgb(214, 75, 0);
}

#email:focus:valid,
#phone:focus:valid,
#password:focus:valid,
#pw-confirm:focus:valid {
    border: 1px solid rgb(176, 207, 2);
}

.name-invalid {
    border: 1px solid rgb(214, 75, 0);
}

.name-valid {
    border: 1px solid rgb(176, 207, 2);
}

.error {
    font-size: 12px;
    position: absolute;
    top: 41px;
    color: rgb(214, 75, 0);
}


/* Right-side form-bottom */

.bottom-button {
    padding-top: 30px;
}

button {
    padding: 10px 40px;
    border-radius: 5px;
    margin-bottom: 15px;
    background-color: rgb(210, 105, 30);
    color: white;
    letter-spacing: 0.02em;
    border: 1px solid rgb(210, 105, 30);
    font-weight: 600;
    cursor: pointer;
    box-shadow: 1px 3px 5px rgba(0, 0, 0, 0.2);
}

button:hover {
    background-color: rgb(175, 88, 26);
    border: 1px solid rgb(175, 88, 26);
}

button:active {
    background-color: rgb(165, 85, 28);
    border: 1px solid rgb(136, 69, 21);
    -webkit-box-shadow: inset 2px 3px 8px rgba(0, 0, 0, 0.5);
    -moz-box-shadow: inset 2px 3px 8px rgba(0, 0, 0, 0.5);
    box-shadow: inset 2px 3px 8px rgba(0, 0, 0, 0.5);
}

.link {
    padding-top: 10px;
    display: flex;
    font-size: 14px;
}

a {
    text-decoration: none;
    padding-left: 5px;
    color: rgb(210, 105, 30);
    font-weight: bold;
}

a:hover {
    color: rgb(175, 88, 26);
}