.page-wrapper {
    background-color: #070712;
    width: 100%;
    min-height: 100svh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 227px 0 0 0;
}

.login-wrapper {
    padding-bottom: 313px;
}

.signup-wrapper {
    padding-bottom: 302px;
}

.terms-wrapper {
    padding-bottom: 167px;
}

.policy-wrapper {
    padding-bottom: 199px;
}

.complete-wrapper {
    padding-top: 366px;
    padding-bottom: 400px;
}

.reset-wrapper {
    padding-bottom: 498px;
}

.reset-form-wrapper {
    padding-bottom: 573px;
}

.login-container {
    max-width: 520px;
    width: 100%;
}

.login-inner {
    display: flex;
    flex-direction: column;
}

.complete-inner {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.login-inner-title {
    margin-bottom: 70px;
}

.login-inner-title p {
    font-weight: 700;
    font-size: 3.75rem;
    letter-spacing: -0.9px;
    color: white;
    text-transform: uppercase;
}

.reset-txt {
    margin-top: 20px;
    color: white;
    font-weight: 400;
    font-size: 1.125rem;
    letter-spacing: -0.27px;
}

.login-input-wrapper {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.login-input-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.login-input-container label {
    color: white;
    font-weight: 500;
    font-size: 1rem;
    letter-spacing: -0.24px;
}

.login-input-container input {
    background-color: #FFFFFF1A;
    border-radius: 10px;
    padding: 14.5px 20px;
    color: white;
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: -0.24px;
    border: none;
    width: 100%;
    height: 48px;
}

.login-input-container input::placeholder {
    color: #626273;
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: -0.24px;
}

.login-input-container input:focus {
    outline: 1px solid #673FFF;
}

.input-password {
    position: relative;
}

.input-password img {
    position: absolute;
    width: 30px;
    height: 30px;
    cursor: pointer;
    right: 20px;
    top: 9px;
}

.forgot-password {
    font-weight: 400;
    text-decoration: underline;
    font-size: 0.75rem;
    letter-spacing: -0.18px;
    color: #626273;
    margin-top: 10px;
    cursor: pointer;
}

.sign-btn-wrap {
    display: flex;
    margin-top: 70px;
    flex-direction: column;
    gap: 10px;
}

.sign-btn-wrap button {
    border: none;
}

.complete-btn-wrap {
    display: flex;
    margin-top: 70px;
    flex-direction: column;
    gap: 10px;
    justify-content: center;
    width: 100%;
    align-items: center;
}

.sign-btn {
    background-color: #1F1F29;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 300px;
    width: 100%;
    height: 48px;
    cursor: pointer;
}

.sign-btn p {
    color: #626273;
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.3px;
}

.sign-btn.active {
    background-color: #673FFF;
}

.sign-btn.active p {
    color: white;
}

.sign-go {
    display: flex;
    gap: 16px;
    align-items: center;
}

.back-sign-page {
    margin-top: 16px;
    color: #84849E;
    text-decoration: underline;
    letter-spacing: -0.21px;
    font-size: 0.875rem;
    font-weight: 400;
    cursor: pointer;
}


/* sign-go-wrap 클릭 이벤트용 CSS */
.sign-go-wrap {
    pointer-events: auto;
    z-index: 2;
    display: flex;
    align-items: center;
    cursor: pointer; /* 클릭 가능 표시 */
}
.sign-go-wrap img {
    width: 24px;
    height: 24px;
}
/* 내부 요소 클릭도 부모 이벤트로 전달 */
.sign-go-wrap * {
    pointer-events: none;
}

/*.sign-go-wrap {*/
/*    pointer-events: auto;*/
/*    z-index: 2;*/
/*    display: flex;*/
/*    align-items: center;*/
/*    cursor: pointer;*/
/*    img {*/
/*        width: 24px;*/
/*        height: 24px;*/
/*    }*/
/*}*/

.sign-go .not-account {
    color: #626273;
    font-size: 0.875rem;
    letter-spacing: -0.21px;
    font-weight: 400;
}

.sign-go .sign-go-text {
    font-weight: 500;
    color: #673FFF;
    font-size: 0.875rem;
    letter-spacing: -0.21px;
}

/* 모달 */
.modal-dim {
    width: 100%;
    height: 100%;
    background-color: #000;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 20;
    opacity: 0.2;
}

.modal-wrapper {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 30;
}

.modal-container {
    position: relative;
    border-radius: 10px;
}

.modal-container p {
    color: white;
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: -0.24px;
    text-align: center;
}

.modal-container img {
    position: absolute;
    top: 24px;
    right: 16px;
    width: 30px;
    height: 30px;
    cursor: pointer;
}

.modal-container::before {
    mask: linear-gradient(#fff, #fff) content-box, linear-gradient(#fff, #fff);
    mask-composite: exclude;
    content: "";
    position: absolute;
    padding: 1px;
    inset: 0;
    border-radius: 10px;
    z-index: 2;
    background: linear-gradient(105.86deg, rgba(226, 219, 253, 0.2) 2.84%, rgba(74, 74, 74, 0.2) 101.33%);
    pointer-events: none;
}

.modal-inner {
    border-radius: 10px;
    backdrop-filter: blur(20px);
    background: rgba(255, 255, 255, 0.1);
    padding: 34px 46px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    color: white;
    text-align: center;
    z-index: 1;
}

.modal-btn {
    background-color: #673FFF;
    cursor: pointer;
    border-radius: 6px;
    min-width: 260px;
    padding: 9px 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-btn p {
    color: white;
    font-size: 1.125rem;
    font-weight: 700;
    letter-spacing: -0.27px;
}

/* sign up */
.signup-code-wrap {
    display: flex;
    width: 100%;
    justify-content: space-between;
}

.signup-code-btn {
    background-color: #1F1F29;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 118px;
    height: 48px;
    cursor: pointer;
}

.signup-code-btn p {
    color: #626273;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: -0.24px;
}

/*
 버튼 활성 / 비활성 구분
 */
.disabled {
    pointer-events: none;
    opacity: 0.5;
    cursor: default;
}

.enabled {
    pointer-events: auto;
    opacity: 1;
    cursor: pointer;
}

.signup-again-wrap {
    display: flex;
    gap: 8px;
}

.signup-code-again {
    background-color: transparent;
    border-radius: 10px;
    border: 1px solid #673FFF;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 122px;
    height: 48px;
    cursor: pointer;
}

.signup-code-again p {
    color: white;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: -0.24px;
}

.signup-code-confirm {
    background-color: #673FFF;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 100px;
    height: 48px;
    cursor: pointer;
}

.signup-code-confirm p {
    color: white;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: -0.24px;
}

.signup-code-input {
    position: relative;
    width: 100%;
    margin-right: 16px;
}

.signup-code-input p {
    color: #673FFF;
    font-size: 0.75rem;
    line-height: normal;
    font-weight: 400;
    font-family: 'NotoSans', sans-serif;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.sign-terms-wrap {
    display: flex;
    gap: 16px;
    align-items: center;
    margin-bottom: 16px;
}

.sign-terms-wrap p {
    font-size: 0.875rem;
    font-weight: 400;
    color: #84849E;
}

.sign-terms-wrap span {
    text-decoration: underline;
    cursor: pointer;
}

.sign-terms-btn {
    width: 24px;
    height: 24px;
    cursor: pointer;
}

.sign-terms-btn img {
    width: 100%;
}

.password-condition {
    background-color: #FFFFFF1A;
    border-radius: 10px;
    padding: 10px;
    display: flex;
    flex-direction: column;
}

.password-condition-txt {
    display: flex;
    gap: 4px;
    align-items: center;
}

.password-condition-txt p {
    color: #84849E;
    font-weight: 400;
    font-size: 0.875rem;
    letter-spacing: -0.21px;
}

.password-condition-txt p.active {
    color: white;
}

.password-condition-img {
    width: 24px;
    height: 24px;
}

.password-condition-img img {
    width: 100%;
}

/* terms */
.terms-txt-wrap {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.terms-txt {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.terms-txt-title {
    color: white;
    font-size: 1.125rem;
    letter-spacing: -0.27px;
    font-weight: 600;
}

.terms-txt-content {
    color: #626273;
    font-size: 1rem;
    letter-spacing: -0.24px;
    font-weight: 400;
    line-height: 1.4;
}

/* complete */
.complete-img-wrap {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.complete-img-wrap::before {
    background: linear-gradient(105.86deg, rgba(226, 219, 253, 0.2) 2.84%, rgba(74, 74, 74, 0.2) 101.33%);
    mask: linear-gradient(#fff, #fff) content-box, linear-gradient(#fff, #fff);
    mask-composite: exclude;
    content: "";
    position: absolute;
    padding: 1px;
    inset: 0;
    border-radius: 50%;
    z-index: 2;
}

.complete-img-wrap .inner {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    width: 100%;
    height: 100%;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.complete-img {
    width: 34px;
    height: 34px;
}

.complete-img img {
    width: 100%;
}

.complete-wrap {
    flex-direction: column;
    display: flex;
    gap: 16px;
    justify-content: center;
    align-items: center;
}

.complete-txt {
    text-align: center;
    color: white;
    font-weight: 700;
    font-size: 3.125rem;
    letter-spacing: -0.75px;
}

/* 로딩 */
.loading-dim {
    width: 100%;
    height: 100%;
    background-color: #000;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 20;
    opacity: 0.2;
}

.loader-wrap {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 30;
    display: flex;
    justify-content: center;
    align-items: center;
}

.loader {
    transform: rotate(-90deg); /* 위에서 시작하게 */
}

.loading-ring {
    stroke-dasharray: 125.6;   /* 원 둘레 */
    stroke-dashoffset: 125.6;
    animation: fillRing 1.2s ease-in-out infinite;
}

@keyframes fillRing {
    0% {
        stroke-dashoffset: 125.6; /* 비어있음 */
    }
    100% {
        stroke-dashoffset: 0;     /* 다 차는 상태 */
    }
}

/*   반응형 769~1024px   */
@media (max-width: 1024px) {
    .page-wrapper {
        padding: 122px 16px 0 16px;
        align-items: flex-start;
        min-height: auto;
    }

    .signup-wrapper {
        padding-bottom: 147px;
    }

    .login-wrapper,
    .terms-wrapper,
    .reset-wrapper,
    .policy-wrapper {
        padding-bottom: 200px;
    }

    .complete-wrapper {
        padding-top: 266px;
        padding-bottom: 382px;
    }
}

/*   반응형 ~768px   */
@media (max-width: 768px) {
    .login-inner-title {
        margin-bottom: 50px;
    }

    .login-inner-title p {
        font-size: 2rem;
        letter-spacing: -0.48px;
    }

    .sign-btn-wrap {
        margin-top: 50px;
    }

    .sign-btn {
        max-width: none;
    }

    .modal-inner {
        gap: 30px;
        padding: 26px 40px 16px 40px;
    }
    .modal-btn {
        min-width: 170px;
    }

    .modal-container img {
        right: 10px;
    }

    .signup-code-wrap {
        flex-wrap: wrap;
        row-gap: 16px;
        justify-content: flex-end;
    }

    .signup-code-input {
        margin-right: 0;
    }

    .signup-code-btn {
        min-width: 93px;
        height: 37px;
    }

    .signup-code-btn p,
    .signup-code-again p,
    .signup-code-confirm p {
        font-size: 0.875rem;
        letter-spacing: -0.21px;
    }

    .signup-code-again {
        min-width: 94px;
        height: 37px;
    }

    .signup-code-confirm {
        min-width: 76px;
        height: 37px;
    }

    .complete-img-wrap {
        width: 46px;
        height: 46px;
    }

    .complete-txt {
        font-size: 1.625rem;
        letter-spacing: -0.39px;
    }

    .reset-txt {
        font-size: 1rem;
        letter-spacing: -0.24px;
    }
}