:root {
    --color__accent: #000;
  
    --field__background: #fff;
    --field__background--hover: #f0f0f0;
    --input__border: #aaa;
    --input__border--hover:#aaa;
    --label__color: #222;
  
    --font__size: 16px;
    --font__family: Roboto, Arial, sans-serif;
  }
  
  .floating {
    margin-bottom: 10px;
    background-color: var(--field__background);
    transition: background-color 0.2s ease;
    border-radius: 5px;
    
  }
  
  .floating:hover,
  .floating:focus-within {
    background-color: var(--field__background--hover);
  }
  
  .floating__input {
    /* padding: 1.8rem 1rem 0.6rem; */
    padding: 1.4rem 1rem 0.3rem 1rem;
    font-size: 1rem;
    /* border-bottom: 0.1rem solid var(--input__border); */
    border: 1px solid var(--input__border);
    transition: border-color 0.2s ease;
    caret-color: var(--color__accent);
    border-radius: 3px;
  }
  
  .floating:hover .floating__input {
    border-color: var(--input__border--hover);
  }
  
  .floating__input::placeholder {
    color: rgba(0, 0, 0, 0);
  }
  
  .floating__label {
    display: block;
    position: relative;
    max-height: 0;
    font-weight: 500;
    pointer-events: none;
  }
  
  .floating__label::before {
    color: var(--label__color);
    content: attr(data-content);
    display: inline-block;
    filter: blur(0);
    backface-visibility: hidden;
    transform-origin: left top;
    transition: transform 0.2s ease;
    left: 1rem;
    position: relative;
  }
  
  .floating__label::after {
    bottom: 1rem;
    content: "";
    height: 0.1rem;
    position: absolute;
    transition: transform 180ms cubic-bezier(0.4, 0, 0.2, 1),
      opacity 180ms cubic-bezier(0.4, 0, 0.2, 1), background-color 0.3s ease;
    opacity: 0;
    left: 0;
    top: 100%;
    margin-top: -0.1rem;
    transform: scale3d(0, 1, 1);
    width: 100%;
    background-color: var(--color__accent);
   

  }
  
  .floating__input:focus + .floating__label::after {
    transform: scale3d(1, 1, 1);
    opacity: 1;
  }
  
  .floating__input:placeholder-shown + .floating__label::before {
    transform: translate3d(0, -2.4rem, 0) scale3d(1, 1, 1);
    color: #555;
  }
  
  .floating__label::before,
  .floating__input:focus + .floating__label::before {
    transform: translate3d(0, -3rem, 0) scale3d(0.82, 0.82, 1);   
    color: #888;
    
  }
  
  .floating__input:focus + .floating__label::before {
    color: var(--color__accent);
  }

  input[type=email], input[type=password], input[type=text] {
    width: 100%;
  }
  input {
    background: none;
    /* border-width: 0; */
    /* display: block; */
    /* width: 100%; */
    font-weight: bold;
    outline: 0;
  }
  
  fieldset {
    padding: 3rem 2rem 1.5rem;
  }
  
  legend {
    padding: 0 0.5rem;
  }

  .hidden--visually {
    border: 0;
    clip: rect(1px 1px 1px 1px);
    clip: rect(1px, 1px, 1px, 1px);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
  }