/* TNTNPay Login Plugin Styles */
.tntnpay-auth-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Apple SD Gothic Neo', 'Noto Sans KR', sans-serif;
}

.tntnpay-card {
    width: 100%;
    max-width: 420px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    padding: 36px 40px;
}

/* 로고 */
.tntnpay-logo {
    text-align: center;
    margin-bottom: 24px;
}
.tntnpay-logo img {
    max-height: 50px;
    width: auto;
}
.tntnpay-site-name {
    font-size: 22px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
}

/* 탭 */
.tntnpay-tabs {
    display: flex;
    border-bottom: 2px solid #f0f0f0;
    margin-bottom: 24px;
}
.tntnpay-tab {
    flex: 1;
    background: none;
    border: none;
    padding: 10px 0;
    font-size: 15px;
    font-weight: 500;
    color: #999;
    cursor: pointer;
    position: relative;
    transition: color 0.2s;
}
.tntnpay-tab::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #3182f6;
    transform: scaleX(0);
    transition: transform 0.2s;
}
.tntnpay-tab.active {
    color: #3182f6;
}
.tntnpay-tab.active::after {
    transform: scaleX(1);
}
.tntnpay-auth-wrap .tntnpay-tab:hover {
    background: #3182f6 !important;
    color: #fff !important;
    border-radius: 6px !important;
}
.tntnpay-auth-wrap .tntnpay-tab:hover::after {
    display: none !important;
}

/* 탭 컨텐츠 */
.tntnpay-tab-content {
    display: none;
}
.tntnpay-tab-content.active {
    display: block;
}

/* 소셜 버튼 */
.tntnpay-social-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

/* 공통 버튼 */
.tntnpay-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 13px 20px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    text-decoration: none;
    transition: opacity 0.15s, transform 0.1s;
}
.tntnpay-btn:hover {
    opacity: 0.88;
    transform: translateY(-1px);
    text-decoration: none;
}
.tntnpay-btn:active {
    transform: translateY(0);
}

/* 카카오 버튼 */
.tntnpay-btn--kakao {
    background: #FEE500;
    color: #1a1a1a;
}

/* 네이버 버튼 */
.tntnpay-btn--naver {
    background: #03C75A;
    color: #fff;
}

/* 기본 버튼 */
.tntnpay-btn--primary {
    background: #3182f6;
    color: #fff;
}
.tntnpay-btn--full {
    width: 100%;
    margin-top: 4px;
}

/* 소셜 아이콘 */
.tntnpay-social-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}
.tntnpay-naver-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    font-size: 14px;
    font-weight: 900;
    line-height: 1;
}

/* 구분선 */
.tntnpay-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 20px 0;
    color: #bbb;
    font-size: 13px;
}
.tntnpay-divider::before,
.tntnpay-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #eee;
}

/* 폼 */
.tntnpay-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.tntnpay-form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.tntnpay-form-group label {
    font-size: 14px;
    font-weight: 500;
    color: #333;
}
.tntnpay-form-group label .required {
    color: #e53e3e;
}
.tntnpay-form-group input {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    color: #1a1a1a;
    background: #fafafa;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}
.tntnpay-form-group input:focus {
    outline: none;
    border-color: #3182f6;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(49, 130, 246, 0.12);
}
.tntnpay-form-group input.is-error {
    border-color: #e53e3e;
}

/* 비밀번호 입력 래퍼 */
.tntnpay-input-wrap {
    position: relative;
}
.tntnpay-input-wrap input {
    padding-right: 44px;
}
.tntnpay-toggle-pw {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    color: #aaa;
    display: flex;
    align-items: center;
}
.tntnpay-toggle-pw svg {
    width: 18px;
    height: 18px;
}
.tntnpay-toggle-pw:hover {
    color: #666;
}

/* 비밀번호 강도 */
.tntnpay-password-strength {
    height: 4px;
    border-radius: 2px;
    background: #eee;
    overflow: hidden;
    margin-top: 6px;
    transition: all 0.3s;
}
.tntnpay-password-strength .bar {
    height: 100%;
    border-radius: 2px;
    transition: width 0.3s, background 0.3s;
}

/* 알림 */
.tntnpay-notice {
    padding: 12px 14px;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 4px;
}
.tntnpay-notice--error {
    background: #fff5f5;
    color: #c62828;
    border: 1px solid #ffcdd2;
}
.tntnpay-notice--success {
    background: #f0fff4;
    color: #276749;
    border: 1px solid #c6f6d5;
}

/* 아웃라인 버튼 */
.tntnpay-auth-wrap .tntnpay-btn--outline {
    background: #3182f6 !important;
    color: #fff !important;
    border: none !important;
    padding: 0 16px !important;
    white-space: nowrap !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    border-radius: 8px !important;
    flex-shrink: 0 !important;
    height: 48px !important;
    line-height: 1 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    transition: opacity 0.15s !important;
    min-width: 100px !important;
}
.tntnpay-auth-wrap .tntnpay-btn--outline:hover {
    opacity: 0.85 !important;
    background: #3182f6 !important;
    color: #fff !important;
}
.tntnpay-auth-wrap .tntnpay-btn--outline:disabled {
    opacity: 0.45 !important;
    cursor: not-allowed !important;
}

/* 전화번호 + 버튼 가로 배열 */
.tntnpay-auth-wrap .tntnpay-phone-row {
    display: flex !important;
    flex-direction: row !important;
    gap: 8px !important;
    align-items: stretch !important;
    width: 100% !important;
}
.tntnpay-auth-wrap .tntnpay-phone-row input {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    width: auto !important;
}

/* SMS 타이머 */
.tntnpay-timer {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 13px;
    font-weight: 600;
    color: #e53e3e;
    pointer-events: none;
}
.tntnpay-timer.is-done {
    color: #aaa;
}

/* 인증 완료 상태 */
.tntnpay-verified-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: #276749;
    font-weight: 600;
    margin-top: 6px;
}

/* 반응형 */
@media (max-width: 480px) {
    .tntnpay-card {
        padding: 28px 20px;
        border-radius: 12px;
        box-shadow: none;
        border: 1px solid #f0f0f0;
    }
}
