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

body{
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;

    padding: 20px;

    background: url(https://images.unsplash.com/photo-1579622322416-31f46a7f02ea?q=80&w=1170&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D);
    
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    font-family: Arial, Helvetica, sans-serif;
}

/* HEADING */

h1{
    font-size: clamp(2rem, 5vw, 4rem);
    color: red;

    margin-top: 40px;
    margin-bottom: 60px;

    border-bottom: 2px solid yellowgreen;
    border-radius: 20px;

    text-align: center;
    padding-bottom: 10px;
}

/* INPUT */

input{
    width: 100%;
    max-width: 400px;

    font-size: 1rem;

    padding: 12px;
    margin-bottom: 25px;

    border-bottom: 3px solid blue;
    border-left: 3px solid red;
    border-right: 3px solid red;
    border-top: 3px solid blue;

    border-radius: 10px;

    transition: all 0.3s ease;

    outline: none;
}

input:hover,
input:focus{
    border-left: 3px solid blue;
    border-right: 3px solid blue;
    border-bottom: 3px solid red;
    border-top: 3px solid red;

    background-color: aliceblue;
    color: grey;

    transform: scale(1.02);
}

/* BUTTON */

button {
  position: relative;

  width: 100%;
  max-width: 220px;

  padding: 0.8em 0.7em;

  font-family: Courier, monospace;
  font-size: 1rem;

  color: #4a4a4a;

  cursor: pointer;

  line-height: 1;

  background: transparent;

  border-radius: 0.77em;
  border: none;

  transition: transform 0.12s cubic-bezier(0.4, 0, 0.2, 1);

  transform-style: preserve-3d;
  isolation: isolate;
}

.glass-effect {
  position: absolute;
  inset: -0.45em;

  border-radius: 1rem;

  background: linear-gradient(
    165deg,
    rgba(0, 0, 0, 0.05),
    rgba(255, 255, 255, 0.2) 30%,
    rgba(255, 255, 255, 0.05) 80%,
    rgba(0, 0, 0, 0.02)
  );

  z-index: -3;

  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.9),
    inset 0 -1px 1px rgba(0, 0, 0, 0.15),
    0 0 20px 1px rgb(200 200 200 / 60%);

  transition: box-shadow 0.12s ease;
}

button::before {
  content: "";

  position: absolute;
  inset: -0.8em;

  background:
    radial-gradient(circle at top center,
    rgba(255, 200, 135, 0.6) 0%,
    transparent 50%),

    radial-gradient(circle at top left,
    rgba(102, 190, 240, 0.6) 0%,
    transparent 50%),

    radial-gradient(circle at top right,
    rgba(255, 100, 100, 0.6) 0%,
    transparent 50%),

    radial-gradient(circle at bottom center,
    rgba(147, 112, 190, 0.6) 0%,
    transparent 80%);

  border-radius: inherit;

  filter: blur(0.3em);

  opacity: 0.9;

  z-index: -2;

  transition: all 0.12s ease;
}

button::after {
  content: "";

  position: absolute;
  inset: 0;

  background: linear-gradient(#f0f0f0, #e0e0e0);

  border-radius: inherit;

  z-index: -1;
}

.button-text {
  position: relative;

  background: linear-gradient(#e0e0e0, #f0f0f0);

  padding: 0.85em 1.4em;

  border-radius: 999em;

  display: block;

  user-select: none;

  z-index: 2;

  transition: all 0.12s ease;

  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);

  text-align: center;
}

button:hover {
  transform: translateY(-2px);
}

button:hover .button-text {
  transform: scale(1.02);
}

button:active {
  transform: translateY(3px) scale(0.95);
}

/* SMALL DEVICES */

@media (max-width: 480px){

    h1{
        font-size: 2rem;
        margin-bottom: 40px;
    }

    input{
        font-size: 0.95rem;
    }

    button{
        max-width: 180px;
        font-size: 0.9rem;
    }
}