/* Password 欄位：pw_info icon 在 input 右側外面 */
.pw-field-wrap {
    position: relative;
}

.pw-field-wrap #pw {
    width: 100%;
}

.pw-field-wrap .pw_info {
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    padding-left: 6px;
}

.pw-field-wrap .pw_info img {
    display: block;
    height: 1.25em;
    width: auto;
    cursor: pointer;
}

.pw-note {
    line-height: 1.4rem
}

.pw_info .pwpop,
.pw_info .pwpop:hover,
.pw_info .pwpop:focus,
.pw_info .pwpop:active {
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
    padding: 0 !important;
    cursor: pointer;
    display: flex;
    align-items: center;
}

/* Tooltip */
.pw_info .pw_tooltip {
    display: none;
    position: absolute;
    left: 50%;
    bottom: calc(100% + 8px);
    transform: translateX(-50%);
    background: #333;
    color: #fff;
    border-radius: 4px;
    padding: 8px 12px;
    width: 260px;
    font-size: 0.85em;
    line-height: 1.4;
    z-index: 100;
    white-space: normal;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.pw_info .pw_tooltip strong {
    display: block;
    margin-bottom: 4px;
}

.pw_info .pw_tooltip p {
    margin: 0;
}

/* tooltip 小箭頭 */
.pw_info .pw_tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: #333;
}

/* 顯示狀態 */
.pw_tooltip.active {
    display: block;
}
