/* 
Start of Josh Comeau's CSS reset 
https://www.joshwcomeau.com/css/custom-css-reset/ 
*/

/* 1. Use a more-intuitive box-sizing model */
*,
*::before,
*::after {
    box-sizing: border-box;
}

/* 2. Remove default margin */
*:not(dialog) {
    margin: 0;
}

/* 3. Enable keyword animations */
@media (prefers-reduced-motion: no-preference) {
    html {
        interpolate-size: allow-keywords;
    }
}

body {
    /* 4. Add accessible line-height */
    line-height: 1.5;
    /* 5. Improve text rendering */
    -webkit-font-smoothing: antialiased;
}

/* 6. Improve media defaults */
img,
picture,
video,
canvas,
svg {
    display: block;
    max-width: 100%;
}

/* 7. Inherit fonts for form controls */
input,
button,
textarea,
select {
    font: inherit;
}

/* 8. Avoid text overflows */
p,
h1,
h2,
h3,
h4,
h5,
h6 {
    overflow-wrap: break-word;
}

/* 9. Improve line wrapping */
p {
    text-wrap: pretty;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    text-wrap: balance;
}

/*
  10. Create a root stacking context
*/
#root,
#__next {
    isolation: isolate;
}

/* End of Josh Comeau's CSS reset */

:root {
    --slate-color: #f9fafb;
    --focus-blue: #4269d7;
    --button-green: #596D48;
    --default-border: #E5E7EB;
    --invalid-red: #c74a4a;
}

body {
    min-height: 100vh;
    display: flex;
}

header {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 25rem;
    background-image: url("./assets/syadza-salsabyla-5o2yCPPQq64-unsplash.jpg");
    background-size: cover;
    flex-shrink: 0;
}

.banner {
    display: flex;
    background-color: rgba(0, 0, 0, 0.7);
    align-items: center;
    justify-content: center;
    padding: 1rem;
    color: white;
    margin-top: 10rem;
}

.banner h1 {
    font-family: "Shadows Into Light", system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    text-transform: uppercase;
    font-size: 5rem;
}

.banner img {
    width: 100px;
    height: auto;
}

.credits {
    text-align: center;
    background-color: rgba(0, 0, 0, 0.7);
    padding: 0.5rem;
}

.credits,
.credits a,
.credits a:link,
.credits a:visited {
    color: white;
    text-decoration: none;
}

main {
    font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    background-color: var(--slate-color);
    padding-bottom: 4rem;
}

.introduction {
    background-color: var(--slate-color);
    padding: 8rem 10rem 3rem 2rem;
}

.introduction p {
    font-weight: 600;
    font-size: 1.4rem;
}

.introduction p:last-of-type {
    margin-top: 1.5rem;
}

.account {
    background-color: var(--slate-color);
}

.account form {
    background-color: white;
    display: flex;
    flex-direction: column;
    padding: 1rem 10rem 3rem 2rem;
    gap: 1rem;
    box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
}

.account form .row {
    display: flex;
    gap: 5rem;
}

.account form .row p {
    display: flex;
    flex-direction: column;
}

.account form .row label {
    font-size: 0.7rem;
    text-transform: uppercase;
    font-weight: bold;
    color: rgba(0, 0, 0, 0.6);
}

.account form .row input {
    padding: 0 0.5rem;
    outline: none;
    border: 2px solid var(--default-border);
    border-radius: 5px;
}

.account form .row input:focus {
    border: 2px solid var(--focus-blue);
    box-shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px;
}

.account form .row input:not(:placeholder-shown):invalid {
    border: 2px solid var(--invalid-red);
}

.actions {
    margin: 2rem 10rem 0 2rem;
}

.actions button {
    background-color: var(--button-green);
    color: white;
    border-radius: 10px;
    padding: 0.5rem 2rem;
}

.log-in {
    margin-top: 1rem;
}

.log-in a,
.log-in a:visited {
    color: var(--button-green);
    text-decoration: none;
    font-weight: bold;
}