/* RESET */
* {
  box-sizing: border-box;
}
:root {
  font-size: 1.25rem;
  --color-accent-dark: #6BA9E6;
  --color-accent-text: hsl(220, 50%, 50%);
  --color-text: #000;
  --color-background: #D8F4FF;
  --color-card-background: #fff;
  --color-card-border: #ccc;
  --color-input-background: #E9E9E9;
  --color-input-text: #888;
}
input,
button {
  border: none;
  color: var(--color-text);
  font-size: 1rem;
  flex: 1 0 auto;
  height: 2em;
  margin: 3px 0;
  outline: none;
  padding: 1px 1em;
  text-align: left;
  transition: border 0.1s ease-out;
  width: 100%;
}
input {
  background: var(--color-input-background);
  border-radius: 0.25em;
}
input:-webkit-autofill {
  box-shadow: 0 0 0px 999px var(--color-input-background) inset;
}
button {
  background: var(--color-accent-dark);
  border-radius: 1em;
  color: #fff;
  cursor: pointer;
  text-align: center;
}
button:active {
  background: #ccc;
}

/* BASE STYLE */
html {
  height: 100%;
}
#potal-login {
  background: var(--color-background);
  color: var(--color-text);
  display: flex;
  flex-flow: column nowrap;
  height: 100%;
  justify-content: center;
  margin: 0 auto;
  max-width: 512px;
  text-align: center;
}
#potal-login .login-card{
  background: var(--color-card-background);
  border: 2px solid var(--color-card-border);
  border-radius: 0.5em;
  margin: 0 0.5em;
  padding: 2em 2em 4em;
}
#potal-login header {
  margin: 0.5em auto 1.5em;
  padding: 0;
  width: 80%;
}
#potal-login header h1 {
  margin: 0;
}
#potal-login header img {
  vertical-align: middle;
  width: 100%;
}
#potal-login form{
  align-items: center;
  display: flex;
  flex-flow: column nowrap;
  gap: 1rem;
  margin: 0 auto 0.5rem;
  padding: 0 0.5rem;
  text-align: left;
  width: 100%;
}
#potal-login .input_wrapper {
  position: relative;
  width: 100%;
}
#potal-login .input_wrapper label {
  color: var(--color-input-text);
  display: block;
  font-size: 1em;
  left: 1em;
  margin: 0;
  pointer-events: none;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}
#potal-login .input_wrapper input:not(:placeholder-shown) ~ label {
  opacity: 0;
}
#potal-login button[type=submit] {
  margin-top: 1em;
}
