* {
  box-sizing: border-box;  
}

html, body {
  margin: 0;
  padding: 0;
  font-family: "Roboto", sans-serif;
  font-optical-sizing: auto;
  font-style: normal;
}

html {
  background: url(background.webp) no-repeat center center fixed;
  -webkit-background-size: cover;
  -moz-background-size: cover;
  -o-background-size: cover;
  background-size: cover;
  font-size: 18px;
}

body {
  min-height: 100vh;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: 500;
  color: white;
}

main {
  display: flex;
  flex-direction: column;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 6px 6px rgba(0, 0, 0, 0.2), 0 0 20px rgba(0, 0, 0, 0.1);
}

#hero {
  flex: 1 1 400px;
  background: url(hero.webp) no-repeat center top;
  -webkit-background-size: cover;
  -moz-background-size: cover;
  -o-background-size: cover;
  background-size: cover;
}

#signup {
  padding-top: 1.5rem;
  flex: 1;
  display: flex;
}

#brand {
  width: 128px;
}

header {
  text-align: center;
}

h1 {
  font-size: 1.8rem;
  font-weight: 600;
  margin-top: 1rem;
  margin-bottom: 0.5rem;
}

h2 {
  font-size: 1.1rem;
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}

p {
  margin: 0;
}

form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

input {
  padding: 0.8rem 1rem;
  font-size: 1rem;
  border: none;
  border-radius: 12px;
}

input[type=email] {
  outline: none;
}

input[type=submit] {
  background-color: hsl(10, 69%, 52%);
  cursor: pointer;
  color: hsl(10, 69%, 98%);
  font-weight: 600;
}

input[type=submit]:hover {
  background-color: hsl(10, 69%, 55%);
  color: hsl(10, 69%, 99%);
  transform: translateY(-1px);
  box-shadow: 0 3px 3px rgba(0, 0, 0, 0.2), 0 0 10px rgba(0, 0, 0, 0.1);
}

#index {
  margin: 0rem;
  width: 100%;
  min-height: 800px;
}

#success {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-direction: column;
  padding: 1rem;
  max-width: 600px;
  text-align: center;
  max-height: min-content;
  gap: 1rem;
}

.liquid-glass-wrapper {
  position: relative;
  overflow: hidden;
  box-shadow: 0 6px 6px rgba(0, 0, 0, 0.2), 0 0 20px rgba(0, 0, 0, 0.1);
}

.liquid-glass-effect {
  position: absolute;
  z-index: 0;
  inset: 0;

  backdrop-filter: blur(3px);
  filter: url(#glass-distortion);
  overflow: hidden;
  isolation: isolate;
}

.liquid-glass-tint {
  z-index: 1;
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.25);
}

.liquid-glass-shine {
  position: absolute;
  inset: 0;
  z-index: 2;

  overflow: hidden;

  box-shadow: inset 2px 2px 1px 0 rgba(255, 255, 255, 0.5),
    inset -1px -1px 1px 1px rgba(255, 255, 255, 0.5);
}

.liquid-glass-content {
  z-index: 3;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: center;
  gap: 1rem;
  padding: 1rem;
}

@media (min-width: 769px) {
  body {
    height: 100vh;
    overflow-y: hidden;
  }

  main {
    flex-direction: row;
  }

  #index {
    width: 800px;
    min-height: 450px;
  }

  #signup {
    flex: 4;
    padding: 2rem;
  }

  #hero {
    flex: 3;
    background: url(hero.webp) no-repeat center center;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover;
  }

  #signup .liquid-glass-content {
    gap: 2rem;
  }

  #success {
    padding: 2rem;
  }
}
