@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');

:root{
    --red: hsl(4, 100%, 67%);
    --blue-800: hsl(234, 29%, 20%);
    --blue-700: hsl(235, 18%, 26%);
    --grey: hsl(0, 0%, 58%);
    --white: hsl(0, 0%, 100%);

    --font-family: 'Roboto', sans-serif;
    --font-size: 16px;
    --font-weight-medium: 400;
    --font-weight-bold: 700;
}

p{
    margin: 0;
}
body {
    font-family: var(--font-family);
    font-size: var(--font-size);
    font-weight: var(--font-weight-medium);
    color: var(--blue-700);
    margin: 0;
    padding: 0;

    width: 100%;
    height: 100%;
    background-color: var(--blue-800);

    display: grid;
}
main{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    
    place-self: center;
    
    background-color: var(--white);
    max-width: 25rem;
    min-height: 100vh;
    border-radius: 1rem;
}
.topImage{
    width: 100%;

}

form{
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 1rem;

    gap: 1rem;
}
h1{
    font-size: 2rem;
    font-weight: var(--font-weight-bold);
    color: var(--blue-800);

    margin: 0;
}

ul{
    list-style: none;
    padding: 0;
    margin: 0;
}

li{
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

form > label{
    display: flex;
    flex-direction: column;
    gap: 0.5rem;

    font-weight: var(--font-weight-bold);
    color: var(--blue-800);
    font-size: 0.8rem;
}

input[type="text"]{
    padding: 0.5rem;
    border: 1px solid var(--grey);
    border-radius: 8px;
    font-size: 1rem;
    height: 2rem;
}

button{
    padding: 0.5rem;
    border: none;
    border-radius: 8px;
    background-color: var(--blue-800);
    color: var(--white);
    font-weight: var(--font-weight-bold);
    font-size: 0.9rem;
    cursor: pointer;

    height: 3rem;
}

button:hover{
    background-color: var(--red);
    box-shadow: 0 10px 30px var(--red);
}

.success-message{
    position: absolute;
    inset: 0;
    width: auto;
    height: auto;
    background-color: var(--white);

    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;

    padding: 4rem 1.5rem 2rem 1.5rem;
    gap: 1rem;

}
.success-message > button{
    margin-top: auto;

    width: 100%;
}
.errorMessage{
    color: var(--red);
    font-weight: var(--font-weight-bold);
    font-size: 0.8rem;
}
#displayUserEmail{
    color: var(--blue-800);
    font-weight: var(--font-weight-bold);
}
.hidden {
    display: none;
}
.attribution { font-size: 11px; text-align: center; }
.attribution a { color: hsl(228, 45%, 44%); }


@media (min-width: 700px) {
  body {
    background-color: var(--blue-800);
    min-height: 100vh;
    
  }

  main{
    background-color: var(--white);
    width: 60%;
    min-width: 40rem;
    flex-direction: row-reverse;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    padding: 1rem;
    min-height: auto;
  }

  form{
    width: 50%;
    height: 100%;
  }

  .success-message{
    place-self: center;
    position: static;
    width: 20rem;
    height: 20rem;
    background-color: var(--white);

    border-radius: 1rem;

    padding: 2.5rem;
    gap: 1rem;
    }
    .success-message > h1{
        font-size: 2.5rem;
        
    }
}