/* 高優先度セレクタでフォーム全体にスタイル適用 */
body #wpmem_login_form,
body #wpmem_pwdreset_form,
body #wpmem_register_form,
body #wpmem_getusername_form {
  background: #ffffff;
  border: 1px solid #ccc;
  border-radius: 10px;
  padding: 30px 30px;
  width: 100%;
  max-width: 420px;
  margin: 50px auto;
  font-family: "Segoe UI", "Helvetica Neue", sans-serif;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  box-sizing: border-box;
}

body #wpmem_login_form legend,
body #wpmem_pwdreset_form legend,
body #wpmem_register_form legend,
body #wpmem_getusername_form legend {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 20px;
  margin-left: 16px;
  width:90%;
  color: #333;
  padding-bottom: 10px;
  border-bottom: 1px solid #e0e0e0;
}

body #wpmem_login_form label,
body #wpmem_pwdreset_form label,
body #wpmem_register_form label,
body #wpmem_getusername_form label {
  margin-left: 16px;
}

#wpmem_login_form .div_text,
#wpmem_pwdreset_form .div_text,
#wpmem_register_form .div_text,
#wpmem_getusername_form .div_text {
  margin:0 16px !important;
}
#wpmem_login_form .div_text input,
#wpmem_pwdreset_form .div_text input,
#wpmem_register_form .div_text input,
#wpmem_getusername_form .div_text input {
  width: 100%;
  box-sizing: border-box;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  min-width: 0;
}

/* ボタンとチェックボックス */
body #wpmem_login_form .button_div,
body #wpmem_pwdreset_form .button_div,
body #wpmem_register_form .button_div,
body #wpmem_getusername_form .button_div {
  margin-top: 20px;
  margin-right: 16px;
}

body #wpmem_login_form input[type="submit"],
body #wpmem_pwdreset_form input[type="submit"],
body #wpmem_register_form input[type="submit"],
body #wpmem_getusername_form input[type="submit"] {
  background: #0073aa !important;
  color: #fff !important;
  padding: 10px 24px !important;
  font-weight: bold !important;
  border: none !important;
  border-radius: 6px !important;
  cursor: pointer !important;
  transition: background 0.3s !important;
  font-size: 14px !important;
}

body #wpmem_login_form input[type="submit"]:hover,
body #wpmem_pwdreset_form input[type="submit"]:hover,
body #wpmem_register_form input[type="submit"]:hover,
body #wpmem_getusername_form input[type="submit"]:hover {
  background: #005f8d !important;
}

/* リンク */
body #wpmem_login_form .link-text,
body #wpmem_pwdreset_form .link-text,
body #wpmem_register_form .link-text,
body #wpmem_getusername_form .link-text {
  margin-top: 0px;
  margin-right: 10px;
  font-size: 13px !important;
  color: #666 !important;
  line-height: 1.6 !important;
  padding: 0;
}

body #wpmem_login_form .link-text a,
body #wpmem_pwdreset_form .link-text a,
body #wpmem_register_form .link-text a,
body #wpmem_getusername_form .link-text a {
  color: #0073aa !important;
  text-decoration: none !important;
}
body #wpmem_login_form .link-text a:hover,
body #wpmem_pwdreset_form .link-text a:hover,
body #wpmem_register_form .link-text a:hover,
body #wpmem_getusername_form .link-text a:hover {
  text-decoration: underline !important;
}
.button_div label{
  margin-left: 0 !important;
}

.entry-content #wpmem_login,
.entry-content #wpmem_pwdreset,
.entry-content #wpmem_register,
.entry-content #wpmem_getusername {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 40px auto;
  max-width: 100%;
}