/* パスワード表示/非表示ボタンのスタイル */
.password-input-container {
    position: relative;
    width: 100%;
}

.password-input-container .form-control {
    width: 100%;
    padding-right: 45px;
    box-sizing: border-box;
}

.password-toggle-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
    font-size: 18px;
    color: #666;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 4px;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.password-toggle-btn:hover {
    background-color: rgba(0, 0, 0, 0.08);
    color: #333;
}

.password-toggle-btn:focus {
    outline: 2px solid #007bff;
    outline-offset: 2px;
    background-color: rgba(0, 123, 255, 0.1);
}

.password-toggle-btn:active {
    background-color: rgba(0, 0, 0, 0.12);
}

.password-toggle-icon {
    display: block;
    user-select: none;
    pointer-events: none;
}

/* Font Awesomeが利用できない場合のフォールバック */
.password-toggle-icon:before {
    content: "👁";
    font-style: normal;
    font-variant: normal;
    text-rendering: auto;
    -webkit-font-smoothing: antialiased;
}

/* Font Awesomeが読み込まれている場合はフォールバックを無効化 */
.fa-solid.fa-eye:before {
    content: "\f06e";
}

.fa-solid.fa-eye-slash:before {
    content: "\f070";
}

/* Font Awesomeが利用できない場合の代替アイコン */
.password-toggle-icon.fallback-eye:before {
    content: "👁";
}

.password-toggle-icon.fallback-eye-slash:before {
    content: "🙈";
}
