header a {
    display: block;
    width: 24px;
    height: 24px;
    position: absolute;
    left: 16px;
}

header h2 {
    width: 100%;
    text-align: center;
    color: #333;
    font-size: 18px;
}

.signup-form {
    padding: 24px 24px 40px;
}

.signup-form label {
    display: block;
    padding-bottom: 20px;
}

.signup-form label strong {
    padding: 0 0 8px 4px;
    color: #4E5968;
    font-size: 15px;
    font-weight: 600;
    display: block;
    line-height: 22.5px;
}

.signup-form label span {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    position: relative;
}

.signup-form label span input[type=text],
.signup-form label span input[type=password],
.signup-form label span input[type=email] {
    border: 1px solid #e0e0e0;
    height: 52px;
    line-height: 52px;
    padding: 0 16px;
    box-sizing: border-box;
    border-radius: 12px;
    width: 100%;
    color: #333;
    font-size: 15px;
}

.signup-form label span input[type=text]:focus,
.signup-form label span input[type=password]:focus,
.signup-form label span input[type=email]:focus {
    border-color: #cb3534;
    outline: none;
    /* 브라우저 기본 파란 외곽선 제거 */
}

.signup-form label span input[type=text]::placeholder,
.signup-form label span input[type=password]::placeholder,
.signup-form label span input[type=email]::placeholder {
    color: #e0e0e0;
}

.signup-form label span small {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    color: #333;
    font-size: 16px;
    background-color: #fafafa;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    text-align: center;
    padding: 0 16px;
    height: 52px;
    white-space: nowrap;
}

.signup-form label span .btn-certi,
.signup-form label span .btn-init {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 14px;
    background-color: #cb3534;
    border-radius: 12px;
    text-align: center;
    padding: 0 16px;
    height: 52px;
    white-space: nowrap;
    cursor: pointer;
}

.signup-form label.send {
    padding-bottom: 0;
}

.signup-form label.auth {
    padding-bottom: 0;
}

.signup-form label.auth>span:nth-of-type(1) {
    display: flex;
    margin-top: 8px;
    position: relative;
}

.signup-form label.auth>span:nth-of-type(1) .time {
    position: absolute;
    color: #ff5d5d;
    font-size: 14px;
    font-weight: 500;
    top: 50%;
    transform: translateY(-50%);
    right: 16px;
}

.signup-form label.auth>span:nth-of-type(2) {
    display: block;
    color: #ff5d5d;
    font-size: 13px;
    line-height: 25px;
    font-weight: normal;
    padding: 6px 0 0 4px;
}

.signup-form label.auth>span:nth-of-type(3) {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 8px;
}

.signup-form label.auth>span:nth-of-type(3) button {
    width: 100%;
    height: 44px;
    line-height: 44px;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    border-radius: 10px;
    cursor: pointer;
}

.signup-form label.auth>span:nth-of-type(3) button:nth-of-type(1) {
    border: 1px solid #e0e0e0;
    color: #666;
}

.signup-form label.auth>span:nth-of-type(3) button:nth-of-type(2) {
    border: 1px solid #e0e0e0;
    color: #fff;
    background-color: #cb3534;
}

.signup-form .pwd1 {
    padding-top: 16px;
}

.signup-form label span .show-pwd {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    color: rgb(153, 153, 153);
    font-size: 14px;
    border-radius: 12px;
    text-align: center;
    padding: 0 16px;
    height: 52px;
    white-space: nowrap;
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    right: 0;
}

.signup-form label ul {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    padding: 8px 0 0 0;
}

.signup-form label ul li {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: #999;
    font-weight: 400;
}

.signup-form label ul li.active {
    color: #cb3534;
    font-weight: 700;
}

.signup-form .agree {
    margin: 8px 0;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 32px;
}

.signup-form .agree input[type=checkbox] {
    width: 22px;
    height: 22px;
    padding: 0;
    margin: 0;
    accent-color: rgb(203, 53, 52);
}

.signup-form .agree dt {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: baseline;
    gap: 12px;
    font-size: 17px;
    font-weight: 700;
    color: #333;
    border-bottom: 1px solid #eee;
    padding-bottom: 16px;
    margin-bottom: 16px;
}

.signup-form .agree dd {
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: center;
    height: 30px;
    gap: 10px;
    font-size: 14px;
    font-weight: normal;
    margin-bottom: 14px;
}

.signup-form .agree dd input[type=checkbox] {
    width: 20px;
    height: 20px;
}

.signup-form .agree dd strong {
    font-weight: 400;
}

.signup-form .agree dd strong.necessary {
    color: #555;
    font-weight: 600;
}

.signup-form .agree dd strong.choice {
    color: #999;
}

.signup-form .agree dd button {
    position: absolute;
    height: 30px;
    padding: 0 12px;
    color: #888;
    border: 1px solid rgb(221, 221, 221);
    cursor: pointer;
    border-radius: 20px;
    right: 0;
    cursor: pointer;
    background-color: #fff;
}

.signup-form .agree dd:last-child {
    margin-bottom: 0;
}

.signup-form>button[type=submit] {
    width: 100%;
    height: 56px;
    line-height: 56px;
    color: #fff;
    border-radius: 12px;
    background-color: rgb(203, 53, 52);
    font-size: 18px;
    cursor: pointer;
    margin-top: 24px;
}

.signup-form>button[type=submit].inactive {
    opacity: 0.5;
}

.error {
    display: block;
    font-size: 14px;
    color: #cb3534;
    padding: 4px 2px;
}

.terms {
    position: absolute;
    bottom: 0;
    background-color: #fff;
    border-top-left-radius: 25px;
    border-top-right-radius: 25px;
    width: 100%;
    z-index: 11;
    padding: 24px;
    transition: transform 0.3s;
    transform: translateY(100%);
}

.terms.active {
    transform: translateY(0);
}

.terms h3 {
    font-size: 18px;
    color: #333;
    font-weight: bold;
    line-height: 28px;
    margin-bottom: 16px;
}

.terms p {
    font-size: 14px;
    color: #555;
    line-height: 24px;
    font-weight: 400;
}

.terms button:nth-of-type(1) {
    background-color: #cb3534;
    width: 100%;
    height: 48px;
    color: #fff;
    font-size: 15px;
    border-radius: 12px;
    cursor: pointer;
    margin-top: 24px;
}

.terms button:nth-of-type(2) {
    position: absolute;
    top: 20px;
    right: 20px;
    color: #999;
    font-size: 28px;
    font-weight: normal;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    cursor: pointer;
}