#registForm {
    width: 100%;

    fieldset {
        position: relative;
        border: 1px solid var(--border-strong);
        border-radius: 3px;
        padding: 20px 26px;
        align-content: center;
        max-width: 800px;
        margin: 0 auto;

        > legend {
            position: absolute;
            top: -0.625rem;
            left: 1.25rem;
            padding: 0 5px;
            background: var(--bg-page);
            font-size: 1rem;
            font-weight: bold;
        }

        // 좌측 안내문구
        dl {
            dt {
                font-weight: bold;
                padding-bottom: 5px;
            }

            dd {
                font-size: 0.938rem;
            }
        }

        // 회원가입 창
        form {
            label {
                cursor: pointer;
                margin-bottom: 7px;
            }

            input[type="email"],
            input[type="password"] {
                margin-bottom: 15px;
            }

            input[type="password"] {
                letter-spacing: 1px;

                &:last-child {
                    margin-bottom: 0;
                }
            }

            p {
                padding-bottom: 5px;
            }

            section {
                &:nth-of-type(2n+1) {
                    flex: 0 0 57%;
                    max-width: 57%;
                }

                &:nth-of-type(2n) {
                    flex: 0 0 43%;
                    max-width: 43%;

                    label {
                        small {
                            padding-right: 5px;
                        }

                        button {
                            color: var(--text-link);

                            &:hover {
                                text-decoration: underline;
                                color: var(--text-link-hover);
                            }
                        }
                    }
                }
            }
        }

        hr {
            margin: 20px 0;
        }
    }
}

@media (max-width: 420px) {
    #registForm {
        fieldset {
            padding: 1rem 0 0 0;
            border: none;

            > legend {
                position: initial;
                padding: initial;
                font-size: 1rem;
                font-weight: bold;
            }

            > form {
                padding: 0;
            }
        }
    }
}

@media (max-width: 660px) {
    #registForm {
        fieldset {
            form {
                section {
                    &:nth-of-type(2n+1) {
                        flex-basis: 100%;
                    }

                    &:nth-of-type(2n) {
                        flex-basis: 100%;
                    }
                }
            }
        }
    }
}