body {
    overflow: hidden;
}

/* 브라우저 기본 패스워드 토글 버튼 제거 */
input[type="password"]::-ms-reveal,
input[type="password"]::-ms-clear {
    display: none;
}

/* Edge/Chrome의 패스워드 토글 버튼 제거 */
input[type="password"]::-webkit-credentials-auto-fill-button,
input[type="password"]::-webkit-password-reveal {
    display: none !important;
}

/* 커스텀 토글 버튼 스타일 */
#togglePassword {
    cursor: pointer;
    padding: 0.375rem 0.75rem;
    text-decoration: none;
}

#togglePassword:hover {
    opacity: 0.7;
}

#togglePassword:focus {
    outline: none;
    box-shadow: none;
}

/* Firefox를 위한 추가 스타일 */
input[type="password"] {
    -moz-appearance: none;
    -webkit-appearance: none;
    appearance: none;
}

#togglePassword {
    cursor: pointer;
    padding: 0.375rem 0.75rem;
}

#togglePassword:hover {
    opacity: 0.7;
}

#togglePassword:focus {
    outline: none;
    box-shadow: none;
}

.login-bar {
    width: 1px;
    height: 12px;
    background: var(--ct-secondary-color) !important;
}

/* ===== common ===== */

/* login 관련 공통 레이아웃 규정 */

.login_bg {
    position: fixed;
    aspect-ratio: 1 / 1;
    top: -210vh;
    left: 50%;
    transform: translateX(-50%);
    height: 300vh;
    background: radial-gradient(closest-side, var(--ptbwa-ds-color-purple-400) 0%, var(--ptbwa-ds-color-purple-200) 70%, rgba(255, 255, 255, 0) 100%);
    clip-path: inset(210vh calc(150vh - 50vw) 0px);
    pointer-events: none;
    z-index: -1;
}

.login_wrap {
    position: relative;
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    width: 100%;
    height: 100%;
    gap: 16px;
}

.login_form_text_box {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    max-width: 400px;
    width: 100%;
    gap: 8px;
}

.login_form_text_box h3 {
    font-size: 32px;
    font-weight: 600;
    color: #111928;
    margin: 0;
    text-align: center;
}

.login_form_text_box p {
    font-size: 16px;
    font-weight: 400;
    line-height: 1.4;
    letter-spacing: -0.3px;
    color: #111928;
    margin-bottom: 0;
    text-align: center;
}

.login_form_common_wrap {
    position: relative;
    display: block;
    padding: 22px 18px;
    box-shadow: 0 0 12px 4px rgba(120, 120, 120, 0.14);
    border-radius: 20px;

    max-width: 400px;
    width: calc(100% - 32px);
    background-color: #fff;
}

.login_form_common_wrap .login_form_logo {
    position: relative;
    display: block;
    max-width: 189px;
    margin: 8px auto 28px;
}

.login_form_common {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 0;
}

.login_simple_wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.login_simple_text {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    width: 100%;
}

.login_simple_text .bar {
    width: 100%;
    height: 1px;
    background-color: #F3F4F6;
}

.login_simple_text>span {
    white-space: nowrap;
    font-weight: 400;
    font-size: 14px;
    line-height: 22px;
    text-align: center;
    color: #4B5563;
}

.login_simple_btn {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 32px;
}

.login_btn {
    position: relative;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    border: none;

    background-color: var(--ptbwa-ds-color-action-primary);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    height: 44px;
    width: 100%;
    cursor: pointer;
    margin-bottom: 12px;
}


.login_simple_btn button {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-bottom: 0;
}

.login_btn:hover {
    background-color: var(--ptbwa-ds-color-purple-800);
}

.login_btn:active {
    background-color: var(--ptbwa-ds-color-purple-900);
}

.login_btn.login_google_btn {
    background-color: #fff;
    border: 1px solid var(--ptbwa-ds-color-border-default);
    color: #111928;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

.login_btn.login_kakao_btn {
    background-color: #FEE500;
    color: #111928;
    transition: background-color 0.15s ease;
}

.login_btn.login_naver_btn {
    background-color: #03C75A;
    color: #111928;
    transition: background-color 0.15s ease;
}

.login_btn.login_google_btn:hover {
    background-color: #F8F9FA;
    border-color: #D2D5D9;
}

.login_btn.login_kakao_btn:hover {
    background-color: #FDD800;
}

.login_btn.login_naver_btn:hover {
    background-color: #02B350;
}

.login_btn.login_google_btn:active {
    background-color: #F1F3F4;
}

.login_btn.login_kakao_btn:active {
    background-color: #FBC500;
}

.login_btn.login_naver_btn:active {
    background-color: #019943;
}

.login_linked_btn_wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.login_linked_btn_wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.login_linked_btn_box {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin-left: 20px;
}

.login_linked_btn_box .login-bar {
    height: 3px;
    background-color: #cacaca !important;
    width: 3px;
    border-radius: 50%;
}

.login_linked_btn_box a {
    color: #a5a5a5;
    font-weight: 400;
    font-size: 14px;
    transition: color 0.3s ease-in-out;
}

.login_linked_btn_box a:hover {
    color: #111928;
}

.login_linked_text_btn {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.login_linked_text_btn p {
    font-size: 16px;
    font-weight: 400;
    color: #3b3b3b;
}

.login_linked_text_btn a {
    color: var(--ptbwa-ds-color-action-primary);
    font-weight: 600;
    text-decoration: underline;
    font-size: 15px;
}

.login_checkbox_list {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 8px 4px;
}

.login_checkbox_list label {
    font-size: 15px;
    font-weight: 400;
    color: #111928;
}

.login_checkbox_list label a {
    font-weight: 600;
}

.login_checkbox_list .form-check {
    gap: 8px;
    align-items: flex-start;
}

.login_checkbox_list .form-check input[type="checkbox"] {
    margin-top: 1px;
}

/* authcode 단계 전용 (원본 authcode.jsp) */
#step-authcode .otp-container {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
    width: min(360px, 100% - 24px);
    margin: 16px auto;
    padding: 0 4px;
    box-sizing: border-box;
}

#step-authcode .otp-input {
    width: 100%;
    height: 56px;
    text-align: center;
    font-size: 24px;
    line-height: 56px;
    border: 1px solid #ced4da;
    border-radius: 16px;
    box-sizing: border-box;
    font-weight: 600;
}

@media (max-width: 360px) {
    #step-authcode .otp-container {
        width: calc(100% - 24px);
        gap: 8px;
    }

    #step-authcode .otp-input {
        height: 48px;
        font-size: 20px;
        line-height: 48px;
    }
}

/* custom */
.password-viewbtn {
    font-size: 16px;
}

/* ===== Fade Up (최초 렌더링 시 아래에서 위로 서서히 나타나는 진입 애니메이션) ===== */
.fade-up {
    display: none;
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.fade-up.active {
    display: block;
    opacity: 1;
    transform: translateY(0px);
}