/* CSS Document */
.login {
  background: #222; }

.agreement {
  background: #fff; }

.box {
  color: #222; }

.box img {
  display: block;
  margin: 0 auto;
  max-width: 90%; }

.login #container {
  margin: 0;
  background: #222;
  position: relative; }

#login {
  padding: 30px 0 0;
  font-size: 1.6rem;
  width: 480px;
  max-width: 100%;
  margin: 30px auto;
  border: 1px solid #0071bb;
  display: block;
  box-sizing: border-box; }

#login h1 {
  font-size: 2rem;
  padding: .5em;
  text-align: center; }

#login form {
  padding: 40px 10px; }

#login p {
  clear: both;
  padding: 0 10px;
  margin: 0 auto;
  display: block;
  text-align: left; }

#login p.pass_forget {
  clear: both;
  padding: 0 10px;
  margin: 0 auto;
  display: block;
  text-align: center; }

#login a {
  clear: both;
  padding: 10px;
  margin: 0 auto 20px;
  display: inline-block;
  text-align: center;
  color: #666;
  text-decoration: underline; }

#login input {
  font-size: 1.8rem;
  padding: 10px 10px 10px;
  -webkit-appearance: none;
  display: block;
  width: 100%;
  border: none;
  border-bottom-color: currentcolor;
  border-bottom-style: none;
  border-bottom-width: medium;
  border-radius: 0;
  border-bottom: 1px solid #757575;
  background: rgba(0, 113, 187, 0.1);
  box-sizing: border-box; }

#login input:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 1000px rgba(0, 113, 187, 0.1) inset;
  -webkit-text-fill-color: #000 !important;
  caret-color: #E9E9F4;
  font-size: 1.8rem; }

#login input:focus {
  outline: none; }

.group {
  position: relative;
  margin-bottom: 45px; }

/* Label */
#login label {
  font-size: 1.8rem;
  font-weight: normal;
  position: absolute;
  pointer-events: none;
  top: -25px;
  left: -2px;
  color: #4a89dc; }

/* Underline */
.bar {
  position: relative;
  display: block;
  width: 100%; }

.bar:before, .bar:after {
  content: '';
  height: 2px;
  width: 0;
  bottom: 1px;
  position: absolute;
  background: #4a89dc;
  transition: all 0.2s ease; }

.bar:before {
  left: 50%; }

.bar:after {
  right: 50%; }

/* active */
#login input:focus ~ .bar:before, #login input:focus ~ .bar:after {
  width: 50%; }

/* Highlight */
.highlight {
  position: absolute;
  height: 60%;
  width: 100px;
  top: 25%;
  left: 0;
  pointer-events: none;
  opacity: 0.5; }

/* active */
#login input:focus ~ .highlight {
  animation: inputHighlighter 0.3s ease; }

/* Animations */
@keyframes inputHighlighter {
  from {
    background: #4a89dc; }
  to {
    width: 0;
    background: transparent; } }
#login .error {
  color: #c00;
  font-weight: bold; }

#login button {
  margin: 0 auto;
  color: #fff;
  font-size: 2rem;
  padding: 10px 3em;
  text-align: center;
  font-family: 'Noto Sans JP', sans-serif;
  display: block;
  border-radius: 30px;
  background: #4a89dc;
  border: 0 none; }
