@charset "utf-8";

.login-main {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    background-color:var(--main-bg) ;
}
.login-title {
    height: 200px;
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-shadow: 1px 1px 10px #716e6d;
}
.login-title h1 {
    font-family: 'Montserrant',sans-serif;
    font-size: 32px;
    font-weight: bold;
    color: var(--main-text-color);
}
.login-title p {
    font-size: 14px;
    margin-top: 15px;
    color: var(--main-text-color);
}


.login-form {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    width: 100%;
    max-width: 100%;
    margin-top: 25px;

    padding: 30px;
    border-radius: 10px;
    background-color:var(--main-bg) ;
}
.login-box {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 60%;
    max-width: 60%;
    margin-top: 30px;
    margin: auto;
    /*
    margin-left: auto;
    margin-right: auto;
    */
    background: var(--login-box-color);
    border-radius: 10px;
    box-shadow: 0px 2px 42px -10px rgba(175, 175, 175, 0.8);
    padding-top: 50px;
    padding-bottom: 50px;
}

.login-input-label {
    font-weight: bold;
    color: #2a2a2a;
    padding: 20px;
    padding-bottom: 5px;
}

.login-input-box {
    width: 95%;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    margin: 20px;
}
.login-button-box {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    width: 60%;
    max-width: 60%;
    margin-top: 30px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 100px;
    gap:10px;
}



#username {
    height: 35px;
    width:95%;
    padding: 15px;
    margin: 20px;
    margin-top: 5px;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 6px;
    box-sizing: border-box;
    box-shadow: 3px 6px 23px -8px rgba(232, 174, 232, 0.8);;
}

#password {
    height: 35px;
    width: 95%;
    max-width: 100%;
    padding: 15px;
    margin: 20px;
    margin-top: 5px;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 6px;
    box-sizing: border-box;
    box-shadow: 3px 6px 23px -8px rgba(232, 174, 232, 0.8);;
}

input:focus {
    border-color: hsl(202, 62%, 71%);
    outline: none;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
}

/* =============================
   ログインボタン共通
   ============================= */
.login-submit-button {
  width: 100%;
  padding: 14px 0;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: bold;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  background-color: var(--button-bg);
  color: var(--button-text);
}

/* Hover */
.login-submit-button:hover {
    background-color: var(--button-hover-bg);
    color: var(--button-hover-tex);
    text-decoration: none;
}

/* Active */
.login-submit-button:active {
  transform: scale(0.97);
}

/* Disabled */
.login-submit-button:disabled {
  background-color: #ccc;
  color: #666;
  cursor: not-allowed;
}

/* =============================
   Error 状態
   ============================= */
.login-submit-button.is-error {
  background-color: #e74c3c;
}

.login-submit-button.is-error:hover {
  background-color: #c0392b;
}

/* =============================
   Shake Animation
   ============================= */
@keyframes shake {
  0% { transform: translateX(0); }
  20% { transform: translateX(-6px); }
  40% { transform: translateX(6px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(4px); }
  100% { transform: translateX(0); }
}

.shake {
  animation: shake 0.4s;
}


.new-resist1,
.new-resist2 {
    display: inline-block;
    margin-top: 10px;
    font-size: 1rem;
    color: var(--main-text-color);
    font-weight: 600;
    text-decoration: none;
    position: relative; /* 疑似要素の位置を相対的にするために必要 */
    transition: color 0.3s ease; /* 文字色の変更にアニメーションを追加 */
}

.new-resist1:hover,
.new-resist2:hover {
    color: #e37a7a; /* ホバー時の文字色 */
}

.new-resist1::after,
.new-resist2::after {
    content: ""; /* 疑似要素を使用 */
    position: absolute;
    top: 80%; /* 初期位置: 文字の中ほど */
    left: 0;
    border-radius: 10px;
    height: 1px; /* 下線の高さ */
    width: 100%; /* 下線の幅を100%に */
    background-color: #e37a7a; /* 下線の色 */
    opacity: 0; /* 初期状態で透明 */
    transform: translateY(-80%); /* 文字の中ほどから開始 */
    transition: all 0.3s ease; /* 全ての変更にアニメーションを適用 */
}

.new-resist1:hover::after,
.new-resist2:hover::after {
    top: 100%; /* 下線の位置を文字の下部へ移動 */
    opacity: 1; /* 不透明に変更 */
    transform: translateY(0); /* 通常の位置に移動 */
}

/* メディアクエリでレスポンシブ対応 */
@media (max-width:800px) {
    .login-form {
        width: 95%;
        max-width: 100%;
        padding: 5px;
    }
    .login-box {
        width: 100%;
        max-width: 100%;
        padding: 15px;
    }
    .login-title h1 {
        font-size: 24px;
    }
    .login-title p {
        font-size: 12px;
    }
    .login-input-label {
        font-size: 14px;
    }
    .login-input-box {
        width: 100%;
        margin: 0;
        padding: 0;
        padding: 0 !important;
    }

    .login-button-box {
        width: 100%;
        max-width: 100%;
        gap: 30px;

      }
    .login-submit-button {
        width: 100%;
        max-width: 100%;
        margin-bottom: 10px;
    }
    .new-resist1,
    .new-resist2 {
        font-size: 20px;
        margin-top: 5px;
  }
}





