@charset "UTF-8";

label {
  font-weight: bold;
}

.login-wrap {
  text-align: center;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.login-ttl {
  font-size: 32px;
  font-weight: bold;
  margin-bottom: 30px;
}

.login-order {
  border: solid 2px #009d90;
  width: 300px;
  height: 400px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* 入力フィールドを含むコンテナに高さを設定 */
.input-container {
  position: relative;
  height: 90px; /* 入力フィールドとエラーメッセージの合計高さ */
  margin-bottom: 10px;
}

.login-order-item {
  margin: 10px 0;
  font-size: 16px;
  padding: 8px;
  width: 90%;
  border-radius: 4px;
  box-sizing: border-box;
}

/* エラーメッセージのスタイルを追加 */
.error {
  color: #ff0000;
  font-size: 12px;
  margin-top: 5px;
  position: absolute;
  width: 100%;
  text-align: center;
}

.login-order-item:focus {
  border-color: #009d90;
  outline: none;
}

.login-button {
  position: relative;
  color: #fff;
  font-size: 20px;
  background-color: #009d90;
  padding: 10px 20px;
  border-radius: 8px;
  margin-top: 30px;
}

.login-button:hover {
  background-color: #00b8a3;
}

.login-button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.login-button .spinner {
  display: none;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 20px;
  height: 20px;
  border: 3px solid #f3f3f3;
  border-top: 3px solid #3498db;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  100% {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(220, 220, 220, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.loading-content {
  text-align: center;
}

.loading-content .loading-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid #3498db;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 10px;
}

.loading-content p {
  color: #333;
  font-size: 16px;
  margin: 0;
}
