@charset "utf-8";

:root {
  --primary-color: #821417;
  --secondary-color: #821417;
}

* {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}

html {
  /* background: linear-gradient(360deg, #fff, #fff, #76b8df); */
}
body {
  font-family: "Oswald", "Microsoft Yahei", "Noto Sans TC", sans-serif !important;
  padding: 15px;
  margin: 0px;
  width: 100%;
  height: 100vh;
  background-image: radial-gradient(at left top, #2fa7df, transparent 45%),
    radial-gradient(at left bottom, #7ac8ec, transparent 20%),
    radial-gradient(at right bottom, #56c4a7, transparent 50%);
}

#login {
  max-width: 900px;
  margin: 10vw auto 0 auto;
  display: flex;
  flex-direction: row-reverse;
  background-color: #fff;
  border-radius: 20px;
  overflow: hidden;
}

.title {
  position: relative;
  width: 400px;
  margin: 40px auto;
  font-size: 30px;
  font-weight: 700;
  padding-left: 108px;
  color: #000;
}

.title span {
  font-weight: 400;
  display: block;
}

.title::before {
  content: "";
  position: absolute;
  width: 96px;
  height: 96px;
  top: -10px;
  left: -10px;
  background-image: url("../images/logo.png");
  background-size: 96px;
  background-repeat: no-repeat;
  background-position: center, center;
}

#login-pic {
  width: 45%;
  aspect-ratio: auto 1 / 1.1;
  line-height: 0.8;
}

#login-pic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
}

#login-box {
  width: 55%;
  padding: 20px;
  font-size: 17px;
  font-weight: 700;
}

#login-box table {
  margin: 0 auto;
  width: 380px;
}

.input {
  width: 160px;
  padding: 10px;
  border: 0px;
  border-radius: 5px;
  background-color: #eee !important;
  transition: border-color 0.3s;
  outline: 0;
  font-weight: 700;
  color: #2c5234 !important;
}

.input:focus {
  box-shadow: -2px 3px 5px -4px rgba(0, 0, 0, 0.8) inset;
}

#footer {
  text-align: center;
  width: 100%;
  padding-top: 10px;
  padding-bottom: 20px;
  position: fixed;
  bottom: 0px;
  font-size: 13px;
}

@media only screen and (max-width: 900px) {
  .title {
    padding-left: 70px;
    margin-bottom: 10px;
  }

  .title::before {
    width: 70px;
    height: 70px;
    background-size: 70px;
  }
  #login {
    margin: 30px auto 0 auto;
    max-width: 550px;
    display: flex;
    flex-direction: column-reverse;
  }

  #login-pic {
    width: 100%;
    height: 200px;
  }

  #login-box {
    width: 100%;
  }

  .title {
    margin: 25px auto;
    font-size: 25px;
  }

  #login-box table {
    margin-bottom: 30px;
  }

  .input {
    width: 130px;
  }

  #footer {
    display: none;
  }
}

@media only screen and (max-width: 480px) {
  body {
    padding: 5px;
  }
  #login-box {
    padding: 10px;
    font-size: 14px;
  }
  #login-pic {
    height: 160px;
  }
  #login-box table {
    margin-bottom: 20px;
    width: 100%;
  }
  .input {
    width: 100px;
  }
}
