@charset "utf-8";
.updateMail-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);
}
#updateMail {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 100%;
  background-color: var(--main-bg);
}

.updateMail-title {
    height: 210px;
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--main-text-color);
}
.updateMail-title h2 {
    font-family: 'Montserrant',sans-serif;
    font-size: 25px;
    font-weight: bold;
    margin-top: 20px;
    margin-bottom: 5px;
}
.updateMail-title p {
    font-size: 14px;
    margin-top: 10px;
    margin-bottom: 50px;
}

.updateMail-user {
    margin-top: 10px;
    background-position: center center;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    font-size: 13px;
    color: #e737db;
    font-weight: bold;
    text-shadow: none;
}
.updateMail-form {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 100%;
    padding: 20px;
    background-color: var(--main-bg);
    padding-top: 50px;
    padding-bottom: 50px;
    border-radius: 10px;
}
.update-mail {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40%;
    max-width: 90%;
    margin-top: 20px;
    margin-left: auto;
    margin-right: auto;
    border-radius: 10px;
    padding-top: 20px;
    padding-bottom: 20px;
    background-color: var(--update-mail-bg);

}
.updateMail-input-box {
    justify-content: center;
    align-items: center;
    width: 90%;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    margin-bottom: 30px;
}
.updateMail-input-label {
    font-weight: bold;
    color: #2a2a2a;
    padding-bottom: 10px;
}

#oldEmail{
    width: 100%;
    padding: 10px;
    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);;
}

#newEmail{
    width: 100%;
    padding: 10px;
    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);
}

/*
.button {
    box-sizing: border-box;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    margin-left: 50px;
    margin-right: 50px;
}
    */


.text-danger {
    color:rgb(235, 29, 29);
    margin-top: 10px;
    font-size: 20px;
}
.updateMail-button-box {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 100%;
    margin-top: 50px;
    margin-bottom: 50px;
    gap:30px
}
/* 処理中ポップアップのスタイル */
.popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #fff;
  padding: 20px 40px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
  z-index: 9999;
  text-align: center;
  border-radius: 8px;
}

.popup.hidden {
  display: none;
}

/* スピナーアニメーション */
.spinner {
  width: 40px;
  height: 40px;
  margin: 0 auto 10px;
  border: 4px solid #ccc;
  border-top: 4px solid #4caf50;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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



@media (max-width:800px) {
    .updateMail-main {
        width: 100%;
        max-width: 100%;
    }
    .updateMail-title {
        height: 250px;
        padding-top: 20px;
        padding-bottom: 20px;
    }
    .updateMail-title h2 {
        font-size: 20px;
        margin-top: 10px;
        margin-bottom: 5px;
    }
    .updateMail-title p {
        font-size: 12px;
        margin-top: 5px;
        margin-bottom: 30px;
    }
    .updateMail-user {
        font-size: 12px;
        margin-top: 5px;
    }
    .updateMail-form {
        width: 100%;
        max-width: 100%;
        padding: 20px;
        padding-top: 30px;
        padding-bottom: 30px;
    }
    .update-mail {
        width: 98%;
        max-width: 100%;
        margin-top: 20px;
        padding-top: 20px;
        padding-bottom: 20px;
        padding-left: 5px;
        padding-right: 5px;
        border-radius: 10px;
    }
    .updateMail-input-box {
        width: 100%;
        margin-bottom: 20px;
    }
    .updateMail-input-label {
        font-size: 15px;
    }
    #oldEmail, #newEmail {
        width: 100%;
        padding: 10px;
        font-size: 13px;
        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);
    }
    .text-danger {
        font-size: 16px;
        margin-top: 10px;
    }
    .updateMail-button-box {
        flex-direction: column;
        gap: 30px;
    }
    .updateMail-button-box a, .updateMail-button-box button {
        width: 100%;
        max-width: 200px;
        padding: 10px;
        font-size: 16px;
    }


}

