:root {
  --primary-color: #00abe6;
  --white-color: #fff;
  --red-color: #ff0000;

  --font-size: 16px;
  --label-font-weight: 600;
  --loading-bg-color: rgba(230, 233, 236, 0.66);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
}

.j-login-container {
  margin: 0 auto;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  background-color: #eaf6fa;
  background-image: url(https://www.jugaa.jp/images/top_background1.png),
    url(https://www.jugaa.jp/images/top_background2.png);
  background-repeat: no-repeat, no-repeat;
  background-position: 100% 20%, 0% 60%;
  padding-top: 75px;
  padding-bottom: 75px;
}

.page-container {
  margin: 0 auto;
  min-height: 100vh;
  display: flex;
  justify-content: space-between;
  flex-direction: column;
  background-color: #f7f7f7;
}

.page-container > main {
  min-height: 70vh;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.page-container .jugaa-loading-box {
   opacity: 1;
}

.page-container > footer {
  min-height: 5em;
  text-align: center;
}

.j-main-content {
  background: var(--white-color);
  border-radius: 10px;
  width: 920px;
  padding: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.j-form-container {
  font-size: var(--font-size);
  width: 420px;
  text-align: left;
}

.j-2factor-form-container {
  font-size: var(--font-size);
  width: 500px;
  text-align: left;
}

.j-2factor-form-container > form > .j-form-item {
  width: 420px;
  justify-self: center;
  margin-left: auto;
  margin-right: auto;
}

.j-form-item {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  align-items: flex-start;
}

.j-form-item > label {
  font-weight: var(--label-font-weight);
  margin-bottom: 10px;
}

.j-form-item input {
  border: 1px solid #cdd6dd;
  width: 100%;
  height: 40px;
  padding-left: 20px;
  outline: none;
}

.j-action {
  width: 100%;
  display: flex;
  justify-content: center;
}

.j-link > a {
  color: var(--primary-color);
}
.j-link {
  width: 420px;
  margin-top: 20px;
}

.j-action {
  margin-top: 40px;
}
.j-action > button {
  display: block;
  border-radius: 24px;
  border: 1px solid var(--primary-color);
  background-color: var(--primary-color);
  color: var(--white-color);
  text-decoration: none;
  padding: 0 20px;
  font-weight: var(--label-font-weight);
  height: 36px;
  line-height: 36px;
  cursor: pointer;
}

.j-logo {
  margin-bottom: 40px;
  display: inline-flex;
}

.j-logo > .j-service-name {
  font-weight: var(--label-font-weight);
  font-size: 24px;
  margin-left: 24px;
}

.j-error,
.j-error-message {
  color: var(--red-color);
}

.j-error {
  font-size: 12px;
}
.j-error-message {
  text-align: center;
}

.jugaa-loading-box {
  position: absolute;
  top: 0px;
  left: 0px;
  z-index: 1000;
  margin: 0px;
  padding: 0px;
  width: 100%;
  height: 100%;
  border: none;
  background-color: rgba(230, 233, 236, 0.66);
  cursor: wait;
  opacity: 0;
  transition: opacity 0.4s;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  color: #00abe6;
  min-height: 130px;
}

.jugaa-loading-box > .loading-text {
  font-weight: 600;
  font-size: 16px;
  margin-top: 10px;
}

.jugaa-loading-box > .jugaa-spinner {
  width: 70px;
  height: 70px;
  transform: rotate(360deg);
  transform-origin: center;
  animation: loading-rotation 0.8s linear infinite;
}

@keyframes loading-rotation {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.home-wrapper {
  height: 200px;
  justify-content: center;
  align-items: center;
  display: flex;
  flex-direction: column;
  margin-top: 100px;
}

.home-wrapper .logo {
  margin-bottom: 36px;
}

.home-wrapper .logout-wrapper {
  margin-top: 18px;
  text-align: center;
}

.home-wrapper .current-user {
  box-shadow: 0 0 4px rgb(0 0 0 / 40%);
  background-color: #fff;
  padding: 24px;
}
