.login_container {
    width: 80%;
    margin: 160px auto 0;
}

form#swpm-login-form {
    margin: 0;
}

.swpm-login-widget-form input[type="text"],
.swpm-login-widget-form input[type="password"] {
    width: 100%;
}

.swpm-username-input,
.swpm-password-input {
    flex: 1;
}

.swpm-remember-me {
    text-align: center;
}

.login_container p {
    text-align: center;
}

.login_text_container {
    border-radius: 40px;
    margin-top: 50px;
    margin-bottom: 50px;
}

.login_text_container h5 {
    padding: 20px 0 20px 50px;
    border-radius: 50px;
    font-size: 20px;
}

.login_text_container p {
    text-align: left;
}

.login_cando_flex {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 40px;
    padding: 40px;
}

.login_cando_item {
    width: 45%;
}

.login_content {
    width: 100%;
    margin: 0 auto;
    margin: 40px auto 100px;
    display: flex;
    justify-content: center;
    gap: 30px;
}

.login_content_box {
    position: relative;
    width: 45%;
    padding: 80px 20px 20px;
    border-radius: 10px;
}

.login_content_img {
    width: 100%;
    margin: 0 auto;
}

.login_content_img img {
    width: 100%;
}

.login_content_box p:nth-of-type(1) {
    width: 100%;
    position: absolute;
    content: "";
    top: -10px;
    left: -15px;
    padding: 10px 20px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: bold;
}

.login_content p {
    text-align: left;
}
.login_registration_btn {
    width: 300px;
    margin: 50px auto;
    border-radius: 10px;
    padding: 20px 30px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #00498F;
    transition: 0.3s;
}

.login_registration_btn p {
    transition: 0.3s;
    margin: 0 !important;
}


.login_registration_btn:hover {
    background-color: #FFF;
}

.login_registration_btn:hover p {
    color: #00498F;
}


/*ログイン*/
.swpm-login-form-inner {
    width: fit-content;
    margin: 50px auto;
    background: none;
}

.swpm-login-form-inner .flex {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 15px;
}

.swpm-login-form-inner ul {
    list-style: none;
    margin-top: 20px;
}

.swpm-login-form-inner li > a > span {
    color: #898989;
}

.swpm-username-input input,
.swpm-password-input input {
    background-color: #FFF !important;
    border-radius: 10px;
    border: 1px solid rgba(0, 113, 189, 0.3);
    line-height: 2.5rem;
    padding: 0 10px;
}

.swpm-username-label,
.swpm-password-label {
    color: #0071BD;
    font-weight: bold;
    white-space: nowrap;
}

.btn_box {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 10px;
    width: fit-content;
    margin: 30px auto;
    text-align: center;
}

.btn_box .login_registration_btn {
    flex-grow: 1;
    margin: 0;
}

.swpm-login-form-submit {
    background-color: #0071BD;
    color: #FFF;
    padding: 20px 30px;
    display: block;
    width: 300px;
    border-radius: 10px;
    text-align: center;
    font-size: 18px;
    transition: 0.3s;
}

.swpm-login-form-submit span {
    display: block;
    font-size: 14px;
}

.swpm-login-form-submit:hover {
    background-color: #FFF;
    color: #0071BD;
}

input:-internal-autofill-selected {
    border: 1px solid #0071BD;
    background-color: #FFF !important;
}

::selection {
    border: 1px solid #0071BD;
}

.swpm-forgot-pass-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    margin-bottom: 60px;
    padding-bottom: 30px;
    border-bottom: 2px solid #0071BD;
}

.swpm-forgot-pass-link a {
    font-size: 14px;
}

div#swpm_message {
    width: calc(100% - 40px);
    max-width: 600px;
    margin: 160px auto 0;
}


@media screen and (max-width:1200px) {
    .login_content {
        flex-direction: column;
    }

    .login_content_box {
        width: 90%;
        height: auto;
        margin: 0 auto;
    }
}

@media screen and (max-width:1024px) {
    .login_cando_item {
        width: 100%;
    }
}
@media screen and (max-width:990px) {
    .login_container{
        width: 90%;
    }
    .login_content_box{
        width: 100%;
    }
}


@media screen and (max-width:768px) {
    .login_text_container h5 {
        padding: 20px;
        font-size: 16px;
    }
    .btn_box{
        flex-direction: column;
    }
    .login_content_box p:nth-of-type(1){
        left: -10px;
    }
}

@media screen and (max-width:500px) {
    .login_container p {
        text-align: left;
    }

    .login_container {
        width: 90%;
        margin: 100px auto 0;
    }

    .login_text_container {
        margin-bottom: 30px;
    }

    .login_cando_flex {
        gap: 20px;
    }

    .login_content {
        margin-top: 50px;
        margin-bottom: 30px;
        gap: 40px;
    }

    .login_content_box p:nth-of-type(1) {
        font-size: 14px;
    }

    .login_registration_btn {
        margin: 30px auto;
    }
}

/*---------------------------------------------------------
                新規登録画面
---------------------------------------------------------*/
.swpm-validate-form table {
    display: flex;
    justify-content: center;
    margin: 50px auto 0;
}

.swpm-validate-form table tr:not(.hidden) {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
}
.swpm-registration-widget-form input[type="text"],
.swpm-registration-widget-form input[type="password"] {
    border-radius: 5px;
    line-height: 2.5rem;
    padding: 0 10px;
}

.swpm-registration-username-row td:nth-of-type(1),
.swpm-registration-email-row td:nth-of-type(1),
.swpm-registration-password-row td:nth-of-type(1),
.swpm-registration-password-retype-row td:nth-of-type(1),
.swpm-registration-lastname-row td:nth-of-type(1),
.swpm-registration-firstname-row td:nth-of-type(1) {
    width: 150px;
}

.swpm-registration-username-row td:nth-of-type(2),
.swpm-registration-email-row td:nth-of-type(2),
.swpm-registration-password-row td:nth-of-type(2),
.swpm-registration-password-retype-row td:nth-of-type(2),
.swpm-registration-lastname-row td:nth-of-type(2),
.swpm-registration-firstname-row td:nth-of-type(2) {
    width: calc(100% - 170px);
}

/*登録ボタン*/
.swpm-registration-submit-section {
    padding: 20px 30px;
    margin: 32px auto;
    display: block;
    width: 300px;
    border-radius: 10px;
    text-align: center;
    font-size: 18px;
    transition: 0.3s;
}

@media screen and (max-width:600px) {
    .swpm-validate-form table tr {
        flex-direction: column;
        gap: 0;
    }

    .swpm-registration-username-row td:nth-of-type(1),
    .swpm-registration-email-row td:nth-of-type(1),
    .swpm-registration-password-row td:nth-of-type(1),
    .swpm-registration-password-retype-row td:nth-of-type(1),
    .swpm-registration-lastname-row td:nth-of-type(1),
    .swpm-registration-firstname-row td:nth-of-type(1) {
        width: 100%;
    }

    .swpm-registration-username-row td:nth-of-type(2),
    .swpm-registration-email-row td:nth-of-type(2),
    .swpm-registration-password-row td:nth-of-type(2),
    .swpm-registration-password-retype-row td:nth-of-type(2),
    .swpm-registration-lastname-row td:nth-of-type(2),
    .swpm-registration-firstname-row td:nth-of-type(2) {
        width: 100%;
    }
}

/*---------------------------------------------------------
                プロフィール編集
---------------------------------------------------------*/
.membership_profile {
    width: 80%;
    margin: 160px auto 100px;
}
@media screen and (max-width:1024px) {
    .membership_profile {
        width: 80%;
        margin: 100px auto 100px;
    }    
}
.swpm-profile-username-row td:nth-of-type(1),
.swpm-profile-email-row td:nth-of-type(1),
.swpm-profile-password-row td:nth-of-type(1),
.swpm-profile-password-retype-row td:nth-of-type(1),
.swpm-profile-firstname-row td:nth-of-type(1),
.swpm-profile-lastname-row td:nth-of-type(1),
.swpm-profile-phone-row td:nth-of-type(1),
.swpm-profile-street-row td:nth-of-type(1),
.swpm-profile-city-row td:nth-of-type(1),
.swpm-profile-state-row td:nth-of-type(1),
.swpm-profile-zipcode-row td:nth-of-type(1),
.swpm-profile-country-row td:nth-of-type(1),
.swpm-profile-company-row td:nth-of-type(1) {
    width: 160px;
}

.swpm-profile-username-row td:nth-of-type(2),
.swpm-profile-email-row td:nth-of-type(2),
.swpm-profile-password-row td:nth-of-type(2),
.swpm-profile-password-retype-row td:nth-of-type(2),
.swpm-profile-firstname-row td:nth-of-type(2),
.swpm-profile-lastname-row td:nth-of-type(2),
.swpm-profile-phone-row td:nth-of-type(2),
.swpm-profile-street-row td:nth-of-type(2),
.swpm-profile-city-row td:nth-of-type(2),
.swpm-profile-state-row td:nth-of-type(2),
.swpm-profile-zipcode-row td:nth-of-type(2),
.swpm-profile-country-row td:nth-of-type(2),
.swpm-profile-company-row td:nth-of-type(2) {
    width: calc(100% - 180px);
}

.swpm-edit-profile-form input[type="text"],
.swpm-edit-profile-form input[type="password"],
.swpm-edit-profile-form select {
    border-radius: 5px;
    line-height: 2.5rem;
    padding: 0 10px;
}

.swpm-profile-password-row p,
.swpm-profile-password-retype-row p {
    font-size: 14px;
}
input.swpm-edit-profile-submit{
    margin: 32px auto 0;
}

@media screen and (max-width:600px) {
    .membership_profile {
        width: 90%;
    }
    .swpm-profile-username-row td:nth-of-type(1),
    .swpm-profile-email-row td:nth-of-type(1),
    .swpm-profile-password-row td:nth-of-type(1),
    .swpm-profile-password-retype-row td:nth-of-type(1),
    .swpm-profile-firstname-row td:nth-of-type(1),
    .swpm-profile-lastname-row td:nth-of-type(1),
    .swpm-profile-phone-row td:nth-of-type(1),
    .swpm-profile-street-row td:nth-of-type(1),
    .swpm-profile-city-row td:nth-of-type(1),
    .swpm-profile-state-row td:nth-of-type(1),
    .swpm-profile-zipcode-row td:nth-of-type(1),
    .swpm-profile-country-row td:nth-of-type(1),
    .swpm-profile-company-row td:nth-of-type(1) {
        width: 100%;
    }

    .swpm-profile-username-row td:nth-of-type(2),
    .swpm-profile-email-row td:nth-of-type(2),
    .swpm-profile-password-row td:nth-of-type(2),
    .swpm-profile-password-retype-row td:nth-of-type(2),
    .swpm-profile-firstname-row td:nth-of-type(2),
    .swpm-profile-lastname-row td:nth-of-type(2),
    .swpm-profile-phone-row td:nth-of-type(2),
    .swpm-profile-street-row td:nth-of-type(2),
    .swpm-profile-city-row td:nth-of-type(2),
    .swpm-profile-state-row td:nth-of-type(2),
    .swpm-profile-zipcode-row td:nth-of-type(2),
    .swpm-profile-country-row td:nth-of-type(2),
    .swpm-profile-company-row td:nth-of-type(2) {
        width: 100%;
    }
}

/*---------------------------------------------------------
                パスワードリセット
---------------------------------------------------------*/
.swpm-pw-reset-widget-form {
    width: 100%;
}
.content_wrapper:has(.swpm-pw-reset-widget-form) {
    margin: 160px auto 100px;
    width: 80%;
}
#swpm-pw-reset-form {
    width: fit-content;
    margin: 0 auto;
}
#swpm-pw-reset-form.flex {
    display: flex;
    align-items: center;
    gap: 20px;
}
#swpm-pw-reset-form input[type="text"] {
    width: 100%;
    border-radius: 5px;
    line-height: 2.5rem;
    padding: 0 10px;
}
#swpm-pw-reset-form .swpm-login-form-submit {
    margin: 32px auto 0;
}
.swpm-login-widget-logged {
    margin-bottom: 100px;
    text-align: center;
}
.swpm-login-widget-logged div {
    display: flex;
    gap: 30px;
    margin-bottom: 10px;
}
.swpm-login-widget-logged div.swpm-edit-profile-link {
    display: inline-block;
    margin: 20px 20px 0 0;
}
.swpm-login-widget-logged div.swpm-logged-logout-link {
    display: inline-block;
    margin: 20px 0 0 0;
}
.swpm-login-widget-logged div.swpm-edit-profile-link a,
.swpm-login-widget-logged div.swpm-logged-logout-link a {
    padding: 20px 30px;
    display: block;
    width: 300px;
    border-radius: 10px;
    text-align: center;
    font-size: 18px;
    transition: 0.3s;
}
.swpm-login-widget-logged div.swpm-edit-profile-link a:hover {
    background: #fff;
    color: #00498F;
}
.swpm-login-widget-logged div.swpm-logged-logout-link a:hover {
    background: #fff;
    color: #0071BD;
}
.swpm-ty-page-registration-logged-in {
    width: 80%;
    margin: 160px auto;
}
@media screen and (max-width: 1024px){
    .content_wrapper:has(.swpm-pw-reset-widget-form) {
        width: 90%;
        margin: 100px auto 100px;
    }
}
@media screen and (max-width: 600px){
    #swpm-pw-reset-form .flex {
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
    }
}

.swpm_error {
    margin: 20px 0;
    color: red;
}
.swpm_error ul {
    color: #000;
}