.auth-page-v2,
.auth-page-v2 * {
    box-sizing: border-box;
    font-family: 'Poppins', 'Noto Sans KR', sans-serif;
}

.btn-member-login:disabled {
    background: #cfd6e4 !important;
    color: #8a94a8 !important;
    border-color: #cfd6e4 !important;
    cursor: not-allowed !important;
    pointer-events: none !important;
    box-shadow: none !important;
}

.auth-page-v2 {
    position: relative;
    padding: 24px 20px 24px;
    overflow: hidden;
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    background: #f4f9fb;
}

.auth-page-v2::before,
.auth-page-v2::after {
    display: none;
}

.auth-shell {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
}

.auth-stage {
    position: relative;
    min-height: auto;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    box-shadow: none;
    border-radius: 0;
    overflow: visible;
}

.auth-stage::before {
    display: none;
}

.auth-grid {
    position: relative;
    z-index: 2;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.auth-card {
    position: relative;
    width: 100%;
    max-width: 480px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.74);
    border: 1px solid rgba(255, 255, 255, 0.40);
    box-shadow:
        0 18px 40px rgba(80, 100, 140, 0.10),
        inset 0 1px 0 rgba(255, 255, 255, 0.70);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 30px 28px 24px;
    overflow: hidden;
}

.auth-card h3 {
    margin: 0;
    font-size: 28px;
    line-height: 1.2;
    font-weight: 800;
    color: #111827;
    letter-spacing: -0.03em;
}

.auth-subtitle {
    margin: 8px 0 20px;
    font-size: 13px;
    color: #6f7d92;
    font-weight: 400;
}

.auth-top-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.auth-top-tabs button {
    flex: 1;
    height: 42px;
    border-radius: 12px;
    border: 1px solid rgba(231, 237, 245, 0.9);
    background: rgba(248, 250, 255, 0.82);
    color: #6b7280;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: .2s ease;
}

.auth-top-tabs button.on {
    background: #1e4fff;
    border-color: #1e4fff;
    color: #fff;
    box-shadow: 0 10px 20px rgba(30, 79, 255, 0.22);
}

.auth-panel {
    display: none;
}

.auth-panel.on {
    display: block;
}

.auth-field {
    margin-bottom: 14px;
}

.auth-label {
    display: block;
    margin-bottom: 7px;
    font-size: 12px;
    font-weight: 700;
    color: #2f3a4d;
}

.auth-input,
.auth-select {
    width: 100%;
    height: 48px;
    border: 1px solid #dde5f1;
    background: rgba(244, 247, 252, 0.95);
    border-radius: 12px;
    padding: 0 14px;
    font-size: 14px;
    color: #111827;
    outline: none;
    transition: .2s ease;
    box-shadow: inset 0 1px 2px rgba(17, 24, 39, 0.03);
}

.auth-input:focus,
.auth-select:focus {
    border-color: #8ba7ff;
    box-shadow: 0 0 0 4px rgba(67, 104, 245, .08);
    background: rgba(255, 255, 255, 0.98);
}

.auth-row-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 14px 0;
    flex-wrap: wrap;
}

.auth-check {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-width: 0;
}

.auth-check-input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.auth-check-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    user-select: none;
}

.auth-check-box {
    position: relative;
    width: 18px;
    height: 18px;
    border: 1.5px solid #b8c3d6;
    border-radius: 4px;
    background: #fff;
    flex: 0 0 18px;
    transition: all .2s ease;
    box-shadow: inset 0 1px 1px rgba(17, 24, 39, 0.04);
}

.auth-check-box::after {
    content: "";
    position: absolute;
    left: 5px;
    top: 1px;
    width: 5px;
    height: 10px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg) scale(0.8);
    opacity: 0;
    transition: all .2s ease;
}

.auth-check-text {
    font-size: 12px;
    color: #4b5563;
    font-weight: 500;
    line-height: 1;
}

.auth-check-input:checked+.auth-check-label .auth-check-box {
    background: #1e4fff;
    border-color: #1e4fff;
    box-shadow: 0 4px 10px rgba(30, 79, 255, 0.18);
}

.auth-check-input:checked+.auth-check-label .auth-check-box::after {
    opacity: 1;
}

.auth-check-input:focus+.auth-check-label .auth-check-box {
    box-shadow: 0 0 0 4px rgba(67, 104, 245, .10);
}

.auth-inline-link {
    font-size: 12px;
    color: #4368f5;
    text-decoration: none;
    font-weight: 700;
    white-space: nowrap;
    margin-left: auto;
    line-height: 1.3;
}

.auth-social-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-bottom: 14px;
}

.auth-social-btn {
    width: 100%;
    height: 44px;
    border-radius: 10px;
    border: 1px solid #e7ebf2;
    background: rgba(255, 255, 255, 0.92);
    color: #374151;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.auth-social-icon {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #f4f7fc;
    color: #1e4fff;
    font-size: 11px;
    font-weight: 800;
}

.auth-submit {
    width: 100%;
    height: 48px;
    border: 1px solid #1e4fff;
    border-radius: 10px;
    background: linear-gradient(180deg, #2c63ff 0%, #1447ef 100%);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 14px 22px rgba(30, 79, 255, 0.18);
}

.auth-bottom-note {
    margin-top: 10px;
    text-align: center;
    font-size: 12px;
    color: #738196;
    font-weight: 500;
}

.auth-bottom-note a {
    color: #1e4fff;
    text-decoration: none;
    font-weight: 700;
}

.auth-guest-btn {
    width: 100%;
    height: 44px;
    margin-top: 10px;
    border: 1px solid #e5eaf2;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.92);
    color: #4b5563;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.auth-turnstile-box {
    width: 100%;
}

.cf-human-wrap {
    width: 100%;
}

.cf-human-label {
    margin: 0 0 8px;
    font-size: 14px;
    line-height: 1.4;
}

.cf-human-box {
    display: flex;
    flex-direction: row !important;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: nowrap;
    overflow: hidden;
}

.cf-human-left {
    display: block !important;
    align-items: center;
    gap: 8px;
    min-width: 0;
    flex: 1 1 auto;
}

.cf-human-left .cf-turnstile {
    flex: 0 0 auto;
    max-width: 320px;
    transform-origin: left center;
}

.cf-human-status {
    font-size: 13px;
    color: #6b7280;
    white-space: nowrap;
    /* ✅ Checking... 줄바꿈 방지 */
    flex: 0 0 auto;
}

.cf-human-right {
    flex: 0 0 auto;
    text-align: right;
    white-space: nowrap;
    /* ✅ CLOUDFLARE 줄바꿈 방지 */
}

.cf-human-brand {
    font-size: 11px;
    font-weight: 700;
    line-height: 1.2;
}

.cf-human-sub {
    font-size: 10px;
    color: #6b7280;
    line-height: 1.2;
    white-space: nowrap;
}

.cf-password-wrap,
#user_pw {
    position: relative;
}

.cf-eye-btn {
    top: 15px;
    position: absolute;
    right: 10px;
}

/* 모바일에서 살짝 축소해서 한 줄 유지 */
@media (max-width: 480px) {
    .cf-human-box {
        gap: 8px;
        padding: 8px 10px;
    }

    .cf-human-left .cf-turnstile {
        transform: scale(0.92);
    }

    .cf-human-status {
        font-size: 12px;
    }

    .cf-human-brand {
        font-size: 10px;
    }

    .cf-human-sub {
        font-size: 9px;
    }
}

.auth-phone-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr 1fr;
    gap: 8px;
}

@media screen and (max-width: 768px) {
    .auth-page-v2 {
        padding: 16px 12px;
        min-height: auto;
    }

    .auth-card {
        max-width: 100%;
        padding: 20px 14px 16px;
        border-radius: 16px;
    }

    .auth-card h3 {
        font-size: 28px;
    }

    .auth-social-row,
    .auth-phone-grid {
        grid-template-columns: 1fr;
    }

    .auth-row-between {
        align-items: center;
        justify-content: space-between;
        gap: 10px;
    }

    .auth-check {
        flex: 1 1 auto;
    }

    .auth-inline-link {
        flex: 0 0 auto;
        margin-left: auto;
        font-size: 11px;
    }

    /* .auth-turnstile-box {
        padding: 10px 10px 12px;
    } */

    .cf-human-box {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .cf-human-left {
        width: 100%;
        display: block;
    }

    .cf-human-left .cf-turnstile {
        transform: scale(0.92);
        transform-origin: left top;
        width: 300px;
        max-width: none;
    }

    .cf-human-status {
        display: block;
        margin-top: 6px;
    }

    .cf-human-right {
        width: 100%;
        text-align: left;
        padding-left: 2px;
        min-width: 0;
    }
}

@media screen and (max-width: 380px) {
    .auth-card {
        padding: 18px 12px 14px;
    }

    /* .auth-turnstile-box {
        padding: 8px 8px 10px;
    } */

    .cf-human-left .cf-turnstile {
        transform: scale(0.86);
        transform-origin: left top;
        width: 300px;
        max-width: none;
    }

    .auth-row-between {
        align-items: flex-start;
    }

    .auth-inline-link {
        width: 100%;
        margin-left: 0;
        text-align: right;
    }
}