form {
  margin: 40px auto;
}


label.floating{
  position: relative;
}
label.floating {
  font-size: 0.8rem;
  margin-bottom: 0rem;
  
}
label.floating.up {
  top: -6px;
  opacity: 1;
  margin-top: 15px;
}

 

:root {
  --color-black: hsl(0, 0%, 10%);
  --color-white: hsl(0, 0%, 100%);
  --color-light: hsl(187, 53%, 97%);
  --color-red: hsl(0, 90%, 60%);
  --color-green: hsl(131, 53%, 45%);
  --color-light-100: hsl(240, 2%, 93%);
  --color-light-200: hsl(220, 3%, 82%);
  --color-light-300: hsl(210, 3%, 73%);
  --color-light-400: hsl(216, 3%, 65%);
  --color-light-500: hsl(220, 3%, 56%);
  --shadow-small: 0 1px 3px 0 rgba(0, 0, 0, 0.1),
     0 1px 2px 0 rgba(0, 0, 0, 0.06);
  --shadow-medium: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
     0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-large: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
     0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

*,
*::before,
*::after {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  list-style: none;
  list-style-type: none;
  text-decoration: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

html {
  font-size: 100%;
  box-sizing: inherit;
  scroll-behavior: smooth;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  font-size: clamp(1rem, 2vw, 1.125rem);
  font-weight: 400;
  line-height: 1.5;
  color: var(--color-black);
  background: var(--color-light);
}

a,
button {
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  cursor: pointer;
  border: none;
  outline: none;
  background: none;
}

img,
video {
  display: block;
  max-width: 100%;
  height: auto;
  -o-object-fit: cover;
     object-fit: cover;
}

img {
  image-rendering: -webkit-optimize-contrast;
  image-rendering: -moz-crisp-edges;
  image-rendering: crisp-edges;
}

.container {
  max-width: 75rem;
  height: auto;
  margin: 0 auto;
  padding: 0 2rem;
}

.title {
  font-family: inherit;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 1rem;
  color: var(--color-black);
  text-transform: unset;
}

.btn {
  display: inline-block;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  text-align: center;
  vertical-align: middle;
  white-space: nowrap;
  -webkit-user-select: none;
     -moz-user-select: none;
      -ms-user-select: none;
          user-select: none;
  border: none;
  outline: none;
  border-radius: 0.25rem;
  text-transform: capitalize;
  transition: all 0.35s ease;
}
.btn-darken {
  width: 100%;
  height: auto;
  padding: 0.75rem 1.25rem;
  color: var(--color-white);
  background: var(--color-black);
  box-shadow: var(--shadow-medium);
}

.wrapper-column {
  max-width: 90%;
  height: auto;
  padding: 3rem 1.5rem;
  margin: 3rem auto 1rem;
  border-radius: 0.25rem;
  background: var(--color-white);
  box-shadow: var(--shadow-large);
}
@media only screen and (min-width: 425px) {
  .wrapper-column {
    max-width: 35rem;
    height: auto;
    padding: 2rem;
  }
}
.wrapper-header {
  text-align: center;
  vertical-align: middle;
}


.payment-method-icon {
  height: 70px;
  margin-top: -17px;

}
.form {
  display: grid;
  grid-template-areas: "firstname lastname" "email email" "password password" "submit submit";
  row-gap: 2.35rem;
  -moz-column-gap: 0.5rem;
       column-gap: 0.5rem;
  width: 100%;
  height: auto;
  margin-top: 2rem;
}
.form-control {
  position: relative;
  width: 100%;
  height: 3rem;
  margin: 0 auto;
}
.form-control:nth-child(1) {
  grid-area: firstname;
}
.form-control:nth-child(2) {
  grid-area: lastname;
}
.form-control:nth-child(3) {
  grid-area: email;
}
.form-control:nth-child(4) {
  grid-area: password;
}
.form-control:nth-child(5) {
  grid-area: submit;
}

.form-label {
  position: absolute;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  left: 0.75rem;
  top: 0.75rem;
  padding: 0 0.35rem;
  color: var(--color-light-500);
  background: var(--color-white);
  transition: all 0.35s ease;
}
.form-input {
  position: absolute;
  display: block;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 400;
  line-height: inherit;
  top: 0;
  left: 0;
  width: 100%;
  height: auto;
  padding: 0.75rem 1rem;
  z-index: 1;
  outline: none;
  border-radius: 0.25rem;
  border-width: 1.75px;
  border-style: solid;
  border-color: var(--color-light-300);
  color: var(--color-black);
  background-clip: padding-box;
  background-color: transparent;
  transition: all 0.35s ease-in-out;
}
.form-input::-moz-placeholder {
  display: none;
  opacity: 0;
  visibility: hidden;
}
.form-input:-ms-input-placeholder {
  display: none;
  opacity: 0;
  visibility: hidden;
}
.form-input::placeholder {
  display: none;
  opacity: 0;
  visibility: hidden;
}
.form-input:focus + .form-label {
  font-size: 0.875rem;
  font-weight: 400;
  top: -0.65rem;
  left: 0.75rem;
  z-index: 5;
}
.form-input:not(:-moz-placeholder-shown).form-input:not(:focus) + .form-label {
  font-size: 0.875rem;
  font-weight: 400;
  top: -0.65rem;
  left: 0.75rem;
  z-index: 5;
}
.form-input:not(:-ms-input-placeholder).form-input:not(:focus) + .form-label {
  font-size: 0.875rem;
  font-weight: 400;
  top: -0.65rem;
  left: 0.75rem;
  z-index: 5;
}
.form-input:not(:placeholder-shown).form-input:not(:focus) + .form-label {
  font-size: 0.875rem;
  font-weight: 400;
  top: -0.65rem;
  left: 0.75rem;
  z-index: 5;
}
.form-alert {
  position: absolute;
  display: block;
  font-size: 0.875rem;
  line-height: 1.5;
  left: 0;
  bottom: -1.5rem;
  opacity: 0;
  visibility: hidden;
  color: var(--color-black);
}
.form-check i {
  position: absolute;
  display: block;
  content: "";
  top: 0.65rem;
  right: 0.75rem;
  opacity: 0;
  visibility: hidden;
}

.form-control.invalid .form-input {
  border-color: var(--color-red);
}
.form-control.invalid .form-alert {
  opacity: 1;
  visibility: visible;
  color: var(--color-red);
}
.form-control.invalid .form-check i.ion-invalid {
  font-size: 1.2rem;
  opacity: 1;
  visibility: visible;
  color: var(--color-red);
}
.form-control.success .form-input {
  border-color: var(--color-green);
}
.form-control.success .form-check i.ion-success {
  font-size: 1.2rem;
  opacity: 1;
  visibility: visible;
  color: var(--color-green);
}