/* Change autocomplete styles in WebKit */
input:-webkit-autofill,
input:-webkit-autofill:hover, 
input:-webkit-autofill:focus,
textarea:-webkit-autofill,
textarea:-webkit-autofill:hover,
textarea:-webkit-autofill:focus,
select:-webkit-autofill,
select:-webkit-autofill:hover,
select:-webkit-autofill:focus {
  -webkit-text-fill-color: white;
  -webkit-box-shadow: 0 0 0px 1000px rgb(63, 90, 114) inset;
  transition: background-color 5000s ease-in-out 0s;
}

body{
  margin: 0;
  padding: 0;
  font-family: sans-serif;
  background: rgb(63, 90, 114);
}
form {
  margin: 2em 0;
}
.box{
  width: 300px;
  padding: 40px;
  position: absolute;
  top: 200;
  left: 49%;
  transform: translate(-50%,0%);
  background: none;
  text-align: center;
}
.box2{
  width: 600px;
  padding: 40px;
  position: absolute;
  top: 200;
  left: 49%;
  transform: translate(-50%,0%);
  background: none;
}

.button {
  width: 100px;
  height: 30px;
  border-radius: 2px;
  font-size: 0.8em;
  color: white;
  background-color: #FF9F37;
  cursor:pointer;
  font-weight: bold;
  text-align: center;
}

.button2 {
  width: 100px;
  height: 30px;
  border-radius: 2px;
  font-size: 0.8em;
  color: white;
  background-color: white;
  cursor:pointer;
  font-weight: bold;
  text-align: center;
  color: #FF9F37;
}

/**
* Make the field a flex-container, reverse the order so label is on top.
*/
 
.field {
  display: flex;
  flex-flow: column-reverse;
  margin-bottom: 2em;
}
/**
* Add a transition to the label and input.
* I'm not even sure that touch-action: manipulation works on
* inputs, but hey, it's new and cool and could remove the 
* pesky delay.
*/
label, input {
  transition: all 0.2s;
  touch-action: manipulation;
  transform-origin: left;
  text-align: left;
}

input {
  font-size: 1.1em;
  border: 0;
  border-bottom: 2px solid #ccc;
  font-family: inherit;
  -webkit-appearance: none;
  border-radius: 0;
  padding: 0;
  cursor: text;
  background: none;
  color:white;
}

input:focus {
  outline: 0;
  border-bottom: 2px solid #FF9F37;
}

label {
  letter-spacing: 0.05em;
  color:white;
}
/**
* Translate down and scale the label up to cover the placeholder,
* when following an input (with placeholder-shown support).
* Also make sure the label is only on one row, at max 2/3rds of the
* field—to make sure it scales properly and doesn't wrap.
*/
input:placeholder-shown + label {
  cursor: text;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transform-origin: left;
  transform: translate(0,1.225rem) scale(0.9);
  text-align: left;
}
/**
* By default, the placeholder should be transparent. Also, it should 
* inherit the transition.
*/
::-webkit-input-placeholder {
  opacity: 10;
  transition: inherit;
}
/**
* Show the placeholder when the input is focused.
*/
input:focus::-webkit-input-placeholder {
   transform-origin: left;
  opacity: 0;
}
/**
* When the element is focused, remove the label transform.
* Also, do this when the placeholder is _not_ shown, i.e. when 
* there's something in the input at all.
*/
input:not(:placeholder-shown) + label,
input:focus + label {
  transform: translate(0, 0) scale(0.7);
  cursor: pointer;
}